[osg-users] How to debug this SIGSEGV

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Tue May 26 10:19:42 PDT 2020


Hi Erik,

I have seen the exact crash when I provide non-valid data for primitive
sets in geometry. Something like drawarray with 0 size. OSG is not checking
the validity of all the data (I believe the reason is performance). So
maybe you put validation of your data before letting osg render it

And I just read you are updating the scenegraph in realtime. Make sure this
is done in the update traversal (you can do this in Node UpdateCallbacks)
or decompose the viewer.frame() and add your update code at the beginning
of the decomposed frame()

Hope this helps

On Tue, May 26, 2020 at 7:11 PM OpenSceneGraph Users <
osg-users at lists.openscenegraph.org> wrote:

> Also, when I do *not* get the crash, I do get the following warning:
>
> Warning: detected OpenGL error 'invalid value' at after RenderBin::draw
> (..)
>
> Maybe there's some connection? How do I go about finding the invalid value
> that is mentioned here?
>
> Thank you!
>
> On Friday, May 22, 2020 at 4:53:26 PM UTC-5, Erik Hensens 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/c845db03-c6e4-4142-b681-66aeff9988fd%40googlegroups.com
> <https://groups.google.com/d/msgid/osg-users/c845db03-c6e4-4142-b681-66aeff9988fd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200526/7606f7e1/attachment.html>


More information about the osg-users mailing list