-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
RViz segfaults when adding MotionPlanning plugin #1456
Comments
Thanks for reporting this issue.
I don't expect that Ogre is to blame here, because we use this Ogre version for more than 6 years.
|
I just tested it in ROS kinetic, Ubuntu 16.04:
The issue appeared there as well.
It always happens if certain types of displays are active and subscribed to a topic (so far I reproduced it with Polygon and PoseArray). Then it appears every time.
Any specific version or commit you would like me to test? |
|
I now tested 1.13.5 and 1.13.3 (on the melodic system, with git checkout and build from source). Both versions have the bug
I wouldn't say so. This publish command can be used to reproduce the bug (one triangle at 10 hz):
If I add the polygon display first, and then the MotionPlanning plugin, the segfault happens. If I add the MotionPlanning plugin first, and then the polygon display, everything works fine
It also appeared with address 0x1060. Do you think this is more than a coincidence?
I will see if I can do that later |
I cannot reproduce the issue locally, having a TF, Polygon, and MotionPlanning display - in this order. |
Sorry for the delay, I didn't have access to the computers over the weekend.
The command
|
This is normal. The MotionPlanning display receives all its information from topics published by the move_group node. If there is nothing published (w/o a move_group), the corresponding OpenGL commands to draw something are not issued.
There are some background threads running during display setup, but we didn't observe any issues in the past with them. |
We have seen some issues with nvidia cards and Ogre 1.9.0 that were resolved with Ogre 1.9.1. |
I tried to compile Ogre and then compile rviz against that, but I can't find versions that fit together. I e.g. tried noetic-devel and Ogre 1.12.2, but that did not work. Which versions/branches of ogre and rviz exactly are compatible? |
Sorry, looks like I broke the public noetic-devel branch recently. Could you try https://github.com/rhaschke/rviz/tree/noetic-devel instead? This should work with v1.12.2. |
Ok, it was a real pain and needed some hacks, but I finally managed to get OGRE 1.12.2 and the noetic-devel branch to work together. Assuming everything linked correctly, I can report that the bug still occurs. Here is valgrind's output:
And the versions:
So here the problem occurs in |
Thanks for hinting at |
I start with this config (please change ending back to |
The bug does not appear if I reduce the publishing rate of the polygon (e.g. 0.2, once every 5 secs). That could hint towards a concurrency issue. |
When adding moveit's MotionPlanning plugin, rviz crashes with a segmentation fault. This seems to happen only if certain other types of displays are active (e.g. Polygon and PoseArray).
Here an example output of valgrind:
And another one:
From what I can tell, the problem seems to be in the ManualObject of OGRE. More displays that use this may be affected. Maybe this is a concurrency problem and a lock is needed?
Your environment
The text was updated successfully, but these errors were encountered: