Skip to content

Conversation

@Flova
Copy link
Member

@Flova Flova commented Nov 5, 2024

Normally this is handled, but a race condition happened, because the text field might be updated by the routine that is responsible for entering the live joint states from the robot if it is in the torqueless mode regardless if the joint is in this mode or not. This somehow prevented the exception from being caught properly and then resulted in a stack overflow of QT. This commit fixes this by not calling the textfield_update every time a joint state is received. Instead, we manually update the working values dict if the joint is in the recording / torqueless mode.

Checklist

  • Run colcon build
  • Write documentation
  • Test on your machine
  • Test on the robot
  • Create issues for future work
  • Triage this PR and label it

… value is entered.

Normally this is handled, but a race condition happened, because the text field might be updated by the routine that is responsible for entering the live joint states from the robot if it is in the torqueless mode regardless if the joint is in this mode or not. This somehow prevented the exception from being catched properly and then resulted in a stack overflow of QT.  This commit fixes this by not calling the textfield_update every time a joint state is received. Instead we manually update the working values dict if the joint is in the recoding / torqueless mode.
@Flova Flova added motion bug Something isn't working labels Nov 5, 2024
@Flova Flova self-assigned this Nov 5, 2024
@Flova Flova requested review from 00lake00, HR05, ayin21 and jaagut November 5, 2024 16:50
@bit-bots bit-bots deleted a comment from coderabbitai bot Nov 5, 2024
@Flova Flova merged commit 93f937a into main Nov 6, 2024
3 checks passed
@Flova Flova deleted the fix/record_rqt_input_sanitation_crash branch November 6, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working motion

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants