-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
The problem of deconstruction order for Class VisualizationFrame. Wild pointers cause the program to crash #1683
Comments
Did you analyze the backtrace of your segfault? Is it accessing the already deleted scene graph? Could you provide a link to your source or - even better - a minimal toy example demonstrating the segfault? |
My plug-in is written like this: class NodeManager : rviz::Panel void NodeManager::onInitialize() NodeManager::~NodeManager() |
Dear, rhaschke |
I'm waiting for you to provide a compiling minimal code example. Also, I asked for a backtrace. Thanks. |
Hopefully fixed via b0b5c34. |
I developed a panel plug-in using rviz. The plug-in uses the interface during initialization and creates the corresponding ogre:: scenenode.
When I deconstruct my plug-in, I need to destroy the corresponding model node. use sceneManager in vis_manager_ interface destroySceneNode.
But when I close rviz, the core dump will be generated in rviz.
Segmentation fault (core dumped)
I checked the source code of rviz. If modify code here, it could be solve.
rviz\src\rviz\src\rviz\visualization_frame.cpp
(https://github.com/ros-visualization/rviz/blob/melodic-devel/src/rviz/visualization_frame.cpp)
If there is any better way to fix it, maybe we could have a discuss here.
Environment
OS Version: Ubuntu 18.04
ROS Distro: Melodic
RViz, Qt, OGRE, OpenGl version as printed by rviz:
The text was updated successfully, but these errors were encountered: