-
Notifications
You must be signed in to change notification settings - Fork 466
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
Crash when quickly toggling robot_description_property in RobotStateDisplay #1657
Comments
I suspect that the |
I'm still wondering if there is anything multi-threaded going on here? I can see that |
I shortly looked into the code this morning and didn't see anything related to threading. The backtrace doesn't make sense to me. rviz/src/rviz/properties/property_tree_widget.cpp Lines 122 to 128 in 2d4003d
Looks like you corrupted your stack beforehand. Did you run with |
gives the same results. The stack trace did not contain the bogus tf2 this time, I agree that this is most like due to memory being corrupted already I'll check out ASAN |
Any new insights, @simonschmeisser ? |
Not yet unfortunately, will try ASAN |
We changed some code path in our software apparently and can now quite easily reproduce this. The problem is that a queued connection is used here:
and that the I could not figure out why this is a delayed connection instead of a direct connection, it was changed in It seems that the ui freezes while reloading the robot description if I make this a direct instead of a queued connection |
This comment was marked as outdated.
This comment was marked as outdated.
Ok, I was off with the previous it seems. Output of a succesful reload is
when it crashes it goes only till after the second "Links". So I need to search for "Alpha" instead.
RobotLinks do get created and destroyed with each reload and set the hidden property here rviz/src/rviz/robot/robot_link.cpp Line 290 in 6a234b4
we have 7 links without any geometry in a typical cell so this matches well |
I have a
RobotStateDisplay
that I use as a preview for an URDF text editor. When clicking somewhat quickly on the reload button it crashes. The reload button basically changes the robot_description on the param server and then callsto trigger a reload. I saw crashes a while ago when a Qt Quick Controls bug would emit the signal of a button twice and thus called update very rapidly. But now a collegue showed me that simply semi-rapidly clicking also leads to a crash after a while.
The backtrace is unfortunately very non-descript:
basically it seems that hiding invalidates some parts of the property tree that are later accessed in the slot
Your environment
[ INFO] [1629822612.423814117]: rviz version 1.14.8
[ INFO] [1629822612.423847305]: compiled against Qt version 5.12.10
[ INFO] [1629822612.423854628]: compiled against OGRE version 1.9.0 (Ghadamon)
The text was updated successfully, but these errors were encountered: