ros-visualization / rviz

ROS 3D Robot Visualizer
BSD 3-Clause "New" or "Revised" License
817 stars 462 forks source link

Rviz crashes trying to load mesh in plugin after reset #908

Open jitrc opened 9 years ago

jitrc commented 9 years ago

http://docs.ros.org/indigo/api/rviz_plugin_tutorials/html/tool_plugin_tutorial.html plant flag twice, reset and try planting flag twice more, it crashes showing it cannot find the resouece package://rviz_plugin_tutorials/media/flag.dae


[1439668555.838213851]: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource package://rviz_plugin_tutorials/media/flag.dae in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreResourceGroupManager.cpp (line 756) Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Ogre::FileNotFoundException' what(): OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource package://rviz_plugin_tutorials/media/flag.dae in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreResourceGroupManager.cpp (line 756) Aborted (core dumped)

wjwwood commented 9 years ago

Hmm, seems like the plugin is not handling reset correctly. Though I'm not sure how that would affect the resource management. Thanks for the report, but I don't have time to look into it at the moment. If you figure out anything else please let us know. Perhaps someone will have time to look into it.

I'll mark it as untargeted for now.

zfxw0206 commented 8 years ago

I have the same issue. Does anybody know how to fix it?

jitrc commented 8 years ago

Unfortunately I also did not get the time to fix it. But as a workaround disabled using a dae file as a resource to show the flagged position. On Oct 1, 2015 3:44 PM, "zfxw0206" notifications@github.com wrote:

I have the same issue. Does anybody know how to fix it?

— Reply to this email directly or view it on GitHub https://github.com/ros-visualization/rviz/issues/908#issuecomment-144868752 .

cellard0or commented 7 years ago

I am currently experiencing the exact same problem (using Xenial) using not a dae file but a Ogre::SceneManager::PT_SPHERE. Did anyone have new insights about this issue?