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

Call PointCloud::clear() in GridCell Display will cause a crash when using nvidia graphics cards #1660

Open
tsukione opened this issue Aug 26, 2021 · 3 comments
Labels

Comments

@tsukione
Copy link

tsukione commented Aug 26, 2021

Either Disable GridCell or click reset button will cause the rviz crash

gdb bt:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `rviz -d /home/mdc/h00586960/MDC_Application_Visualizer/rviz_plugin/share/rviz_p'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000041eb0a90 in ?? ()
[Current thread is 1 (Thread 0x7fcef3055840 (LWP 27459))]
(gdb) bt
#0  0x0000000041eb0a90 in  ()
#1  0x00007fceaa894027 in  ()
    at /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.460.91.03
#2  0x00007fceaa4cf310 in  ()
    at /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.460.91.03
#3  0x00007fcea818c91a in Ogre::GLRenderSystem::_render(Ogre::RenderOperation const&) () at /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#4  0x00007fceedf9fba9 in Ogre::SceneManager::renderSingleObject(Ogre::Renderable*, Ogre::Pass const*, bool, bool, Ogre::HashedVector<Ogre::Light*> const*) ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#5  0x00007fceedf420a9 in Ogre::QueuedRenderableCollection::acceptVisitorDescending(Ogre::QueuedRenderableVisitor*) const ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#6  0x00007fceedf42191 in Ogre::QueuedRenderableCollection::acceptVisitor(Ogre::QueuedRenderableVisitor*, Ogre::QueuedRenderableCollection::OrganisationMode) const () at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#7  0x00007fceedf8c1fc in Ogre::SceneManager::renderBasicQueueGroupObjects(Ogre::RenderQueueGroup*, Ogre::QueuedRenderableCollection::OrganisationMode) ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#8  0x00007fceedf8c02e in Ogre::SceneManager::renderVisibleObjectsDefaultSequence() () at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#9  0x00007fceedfa1bfb in Ogre::SceneManager::_renderScene(Ogre::Camera*, Ogre::Viewport*, bool) () at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
---Type <return> to continue, or q <return> to quit---
#10 0x00007fceeddb0d2a in Ogre::Camera::_renderScene(Ogre::Viewport*, bool) ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#11 0x00007fceedf5d47a in Ogre::RenderTarget::_updateViewport(Ogre::Viewport*, bool) () at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#12 0x00007fceedf5d28b in Ogre::RenderTarget::_updateAutoUpdatedViewports(bool) () at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#13 0x00007fceedf5d00e in Ogre::RenderTarget::updateImpl() ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#14 0x00007fceedf5da34 in Ogre::RenderTarget::update(bool) ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#15 0x00007fceedf464df in Ogre::RenderSystem::_updateAllRenderTargets(bool) ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#16 0x00007fceedf83a4a in Ogre::Root::_updateAllRenderTargets() ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#17 0x00007fceedf83b30 in Ogre::Root::renderOneFrame() ()
    at /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#18 0x00007fcef2d2c8d8 in rviz::VisualizationManager::onUpdate() ()
    at /opt/ros/melodic/lib/librviz.so
#19 0x00007fcef1e99555 in QMetaObject::activate(QObject*, int, int, void**) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fcef1ea5fc7 in QTimer::timeout(QTimer::QPrivateSignal) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007fcef1ea6328 in QTimer::timerEvent(QTimerEvent*) ()
---Type <return> to continue, or q <return> to quit---
   -linux-gnu/libQt5Core.so.5
#22 0x00007fcef1e9a07b in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007fcef247f83c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007fcef2487104 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007fcef1e6a8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007fcef1ec2d2e in QTimerInfoList::activateTimers() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007fcef1ec34f1 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007fceeaffd537 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fceeaffd770 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fceeaffd7fc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fcef1ec388f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007fcef1e6890a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007fcef1e719b4 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x0000559913b7ddcf in main ()

nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.91.03    Driver Version: 460.91.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 165...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   51C    P0    14W /  N/A |    859MiB /  3911MiB |     31%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       512      G   rviz                              415MiB |
|    0   N/A  N/A     14201      G   /usr/lib/xorg/Xorg                235MiB |
|    0   N/A  N/A     14493      G   /usr/bin/gnome-shell              205MiB |
+-----------------------------------------------------------------------------+

Your environment

  • OS Version: Ubuntu 18.04
  • ROS Distro: [Melodic]
  • RViz, Qt, OGRE, OpenGl version as printed by rviz:
[ INFO] [1630054721.574693671]: rviz version 1.13.18
[ INFO] [1630054721.574736958]: compiled against Qt version 5.9.5
[ INFO] [1630054721.574746524]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1630054721.577764252]: Forcing OpenGl version 0.
[ INFO] [1630054721.915039505]: Stereo is NOT SUPPORTED
[ INFO] [1630054721.915087991]: OpenGL device: GeForce GTX 1650 Ti/PCIe/SSE2
[ INFO] [1630054721.915109476]: OpenGl version: 4.6 (GLSL 4.6).
@tsukione tsukione changed the title Call PointCloud::clear() in GridCell Display will case a crash when using nvidia graphics cards Call PointCloud::clear() in GridCell Display will cause a crash when using nvidia graphics cards Aug 26, 2021
@rhaschke
Copy link
Contributor

Cannot reproduce yet. Could you please provide a bag file or data generator to actually display some data?
I guess, if there was no data displayed yet, it will not crash? Can you confirm this?

@rhaschke
Copy link
Contributor

I was able to reproduce a crash, even without any further interaction. It seems only related to nvidia cards, i.e. a rendering issue, which probably won't fix (we don't have an opengl expert amongst the maintainers).
Is that issue new or did you observe that in previous rviz releases already?

@tsukione
Copy link
Author

Just newly discovered issue, this is my first time try to use GridCell Display

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants