Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix animation record ui crash after a non numerical text input #615

Merged
merged 1 commit into from
Nov 6, 2024

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
@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.

2 participants