[osg-users] How to debug this SIGSEGV

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Fri May 22 23:30:30 PDT 2020


remove or hide some nodes (setting nodemask to 0) from your scenegraph until you find the one causing the issue.

Use a StateSetHandler to turn on or off rendering features.

Make sure the opengl context is current every time you update/render the scene graph.

Capture osg logging.

Looks like it happens during the rendering of a VBO in a osg::Geometry.

Sent from my iPhone

> On May 22, 2020, at 10:59 PM, Brett Gossage <bgossagen at gmail.com> wrote:
> 
> 
> Build in debug mode.  Run it under valgrind:   valgrind  <your app>  arg1 arg2 ...
> 
> Go through the steps necessary to duplicate the error.
> 
> You'll get a call stack output to the console with the origin of the error. (hopefully)
> 
> Good luck.
> 
> 
> 
> 
> 
> 
>> On Fri, May 22, 2020 at 4:53 PM Erik Hensens <hensens at gmail.com> wrote:
>> Hello! I am totally at a loss and I hope someone can help me. I've got a Gtk application running on Ubuntu that uses osgGtk to display the scene. The crash does not happen every time I do the same operation, only sometimes. As you can see, the crash is in libosg. I guess that I'm doing something wrong in an Osg call somewhere and the crash is just happening asynchronously? Either way I have absolutely no idea how to approach fixing this crash. Please help me! Here's a typical backtrace. Does anyone have any ideas? Thank you all so much in advance!
>> 
>> - Erik
>> 
>> #0  0x00007fffd2e90eea in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
>> #1  0x00007fffd2d2f5e0 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
>> #2  0x00007fffd2e9ddb0 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
>> #3  0x00007ffff55af488 in osg::Geometry::drawImplementation(osg::RenderInfo&) const () from /usr/lib/x86_64-linux-gnu/libosg.so.100
>> #4  0x00007ffff47d1380 in osgUtil::RenderLeaf::render(osg::RenderInfo&, osgUtil::RenderLeaf*) () from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
>> #5  0x00007ffff47cb695 in osgUtil::RenderBin::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&) () from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
>> #6  0x00007ffff47cb6d4 in osgUtil::RenderBin::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&) () from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
>> #7  0x00007ffff47d6ed7 in osgUtil::RenderStage::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&) () from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
>> #8  0x00007ffff47d5cd2 in osgUtil::RenderStage::drawInner(osg::RenderInfo&, osgUtil::RenderLeaf*&, bool&) () from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
>> #9  0x00007ffff47d7c7f in osgUtil::RenderStage::draw(osg::RenderInfo&, osgUtil::RenderLeaf*&) () from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
>> #10 0x00007ffff47dfdb7 in osgUtil::SceneView::draw() () from /usr/lib/x86_64-linux-gnu/libosgUtil.so.100
>> #11 0x00007ffff443545f in osgViewer::Renderer::cull_draw() () from /usr/lib/x86_64-linux-gnu/libosgViewer.so.100
>> #12 0x00007ffff55cfd49 in osg::GraphicsContext::runOperations() () from /usr/lib/x86_64-linux-gnu/libosg.so.100
>> #13 0x00007ffff446c6c4 in osgViewer::ViewerBase::renderingTraversals() () from /usr/lib/x86_64-linux-gnu/libosgViewer.so.100
>> #14 0x0000000000a7c73e in osgViewer::ViewerGtk::on_graphics_window_expose_event (widget=0x31134b0, event=0x7fffffffdf10, data=0x456ba50) at Main3D/osgGtk/ViewerGtk.cpp:220
>> #15 0x00007ffff78beaec in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
>> #16 0x00007ffff6904fa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>> #17 0x00007ffff6916fc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>> #18 0x00007ffff691f7f9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>> #19 0x00007ffff692008f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>> #20 0x00007ffff79d693c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
>> #21 0x00007ffff78bd7dd in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
>> #22 0x00007ffff7518b9f in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
>> #23 0x00007ffff7515671 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
>> #24 0x00007ffff7515fa8 in gdk_window_process_all_updates () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
>> #25 0x00007ffff7842971 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
>> #26 0x00007ffff74f4d57 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
>> #27 0x00007ffff662e04a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>> #28 0x00007ffff662e3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>> #29 0x00007ffff662e712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>> #30 0x00007ffff78bc697 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
>> #31 0x000000000130f9a6 in main (argc=1, argv=0x7fffffffe398) at Main/main.cpp:3889
>> 
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/eab20cdb-8864-4eca-94c6-6e74dc6601cd%40googlegroups.com.
> 
> -- 
> You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/CADt6fWXbMz5oKeE0Z37Md8nGzPL-k642oWSmwRL07LSTg2hfYg%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/04793ABD-1158-4D97-9229-8C47D56E6FCF%40gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200522/331ec78c/attachment.html>


More information about the osg-users mailing list