[osg-users] osgfadetext crashes

Robert Osfield robert.osfield at gmail.com
Thu Jul 3 00:45:27 PDT 2008


Hi Mario,

I've just done some testing on a single screen here and get a crash as
well after interacting with the scene for around 30 to 60 seconds.
I've just force single threading via the OSG_THREADING=SingleThreaded
env var setting and so for it's not crashing.

My guess is that this crash is unrelated to Mathias changes and is a
general threading issue, but... one can't rule anything out at this
stage.

Robert.

On Thu, Jul 3, 2008 at 8:16 AM, Mario Valle <mvalle at cscs.ch> wrote:
> Also with the yesterday checkout and the
> _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS configured, osgfadetext continues to
> crash, apparently at the same point.
> My machine is a quad core Xeon, running Linux Suse 10.3 (32 bits) with a
> GeForce 6800 GS running NVIDIA Driver Version: 169.12  and using one screen
> only.
>
> The latest stack trace is:
>
> $ gdb `which osgfadetext`
> GNU gdb 6.6.50.20070726-cvs
> Copyright (C) 2007 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i586-suse-linux"...
> Using host libthread_db library "/lib/libthread_db.so.1".
> (gdb) r
> Starting program: /local/OSG/OpenSceneGraph/bin/osgfadetext
> [Thread debugging using libthread_db enabled]
> [New Thread 0xb6956b00 (LWP 20121)]
> [New Thread 0xb58deb90 (LWP 20128)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb6956b00 (LWP 20121)]
> 0xb7a4a689 in std::_Rb_tree<osgText::FadeText*, osgText::FadeText*,
> std::_Identity<osgText::FadeText*>, std::less<osgText::FadeText*>,
> std::allocator<osgText::FadeText*> >::find (this=0x89d2fd4,
>    __k=@0xe2d76315) at /usr/include/c++/4.2.1/bits/stl_tree.h:481
> 481               (this->_M_impl._M_header._M_parent);
> (gdb) where
> #0  0xb7a4a689 in std::_Rb_tree<osgText::FadeText*, osgText::FadeText*,
> std::_Identity<osgText::FadeText*>, std::less<osgText::FadeText*>,
> std::allocator<osgText::FadeText*> >::find (this=0x89d2fd4,
>    __k=@0xe2d76315) at /usr/include/c++/4.2.1/bits/stl_tree.h:481
> #1  0xb7a4da5f in GlobalFadeText::update (this=0x808c328, frameNumber=3138)
>    at /usr/include/c++/4.2.1/bits/stl_set.h:412
> #2  0xb7a4ea7f in osgText::FadeText::FadeTextUpdateCallback::update
> (this=0x806cab0, nv=0x80567b8,
>    drawable=0x805a718) at
> /local/OSG/OpenSceneGraph/src/osgText/FadeText.cpp:261
> #3  0xb7c6f1bd in osgUtil::UpdateVisitor::apply (this=0x80567b8,
> node=@0x805a570)
>    at /local/OSG/OpenSceneGraph/include/osgUtil/UpdateVisitor:98
> #4  0xb7e08b9a in osg::Geode::accept (this=0x805a570, nv=@0x80567b8)
>    at /local/OSG/OpenSceneGraph/include/osg/Geode:39
> #5  0xb7e3b5f4 in osg::Group::traverse (this=0x805a400, nv=@0x80567b8)
>    at /local/OSG/OpenSceneGraph/src/osg/Group.cpp:62
> #6  0xb7c6f422 in osgUtil::UpdateVisitor::apply (this=0x80567b8,
> node=@0x805a400)
>    at /local/OSG/OpenSceneGraph/include/osg/NodeVisitor:181
> #7  0xb7e3cc38 in osg::Group::accept (this=0x805a400, nv=@0x80567b8)
>    at /local/OSG/OpenSceneGraph/include/osg/Group:38
> #8  0xb7e3b5f4 in osg::Group::traverse (this=0x805a2b0, nv=@0x80567b8)
>    at /local/OSG/OpenSceneGraph/src/osg/Group.cpp:62
> #9  0xb7c6f422 in osgUtil::UpdateVisitor::apply (this=0x80567b8,
> node=@0x805a2b0)
>    at /local/OSG/OpenSceneGraph/include/osg/NodeVisitor:181
> #10 0xb7e5c538 in osg::NodeVisitor::apply (this=0x80567b8, node=@0x805a2b0)
>    at /local/OSG/OpenSceneGraph/src/osg/NodeVisitor.cpp:101
> #11 0xb7dd25e8 in osg::CoordinateSystemNode::accept (this=0x805a2b0,
> nv=@0x80567b8)
>    at /local/OSG/OpenSceneGraph/include/osg/CoordinateSystemNode:95
> #12 0xb7ac5eea in osgViewer::Viewer::updateTraversal (this=0xbfda7d64)
>    at /local/OSG/OpenSceneGraph/src/osgViewer/Viewer.cpp:885
> #13 0xb7ad3a5b in osgViewer::ViewerBase::frame (this=0xbfda7d64,
>    simulationTime=1.7976931348623157e+308)
>    at /local/OSG/OpenSceneGraph/src/osgViewer/ViewerBase.cpp:591
> #14 0xb7ad3ba0 in osgViewer::ViewerBase::run (this=0xbfda7d64)
>    at /local/OSG/OpenSceneGraph/src/osgViewer/ViewerBase.cpp:564
> #15 0xb7ac3ebf in osgViewer::Viewer::run (this=0xbfda7d64)
>    at /local/OSG/OpenSceneGraph/src/osgViewer/Viewer.cpp:322
> #16 0x0804bb33 in main () at
> /local/OSG/OpenSceneGraph/examples/osgfadetext/osgfadetext.cpp:149
>
> Hope it helps diagnose the problem.
> Ciao!
>        mario
>
> Paul Melis wrote:
>>
>> Robert Osfield wrote:
>>>
>>> Hi Mario,
>>>
>>> I've just tested osgfadetext on my dual screen, quad core Linux system
>>> and it runs fine.  What screen set up do you?  Single screen, dual
>>> screen? Does the error occur is standard release build?
>>>
>>
>> Just a quick note, I'll send a more detailed note from home. When I tested
>> osgfadetext over the weekend it also crashed. This is on a dual-core
>> single-screen system with ATI card.
>>
>> Paul
>>
>>> Robert.
>>>
>>> On Fri, Jun 13, 2008 at 4:34 PM, Mario Valle <mvalle at cscs.ch> wrote:
>>>
>>>>
>>>> On Linux Suse 10.3 (32 bits) the latest SVN checkout compiled with
>>>> RelWithDbgSymbols.
>>>> osgfadetext crashes shortly after the window appears. The crash happens
>>>> also
>>>> when run single threaded.
>>>> Next week I'll try to understand what happens.
>>>> Ciao!
>>>>       mario
>>>>
>>>>
>>>> $ gdb osgfadetext
>>>> GNU gdb 6.6.50.20070726-cvs
>>>> Copyright (C) 2007 Free Software Foundation, Inc.
>>>> GDB is free software, covered by the GNU General Public License, and you
>>>> are
>>>> welcome to change it and/or distribute copies of it under certain
>>>> conditions.
>>>> Type "show copying" to see the conditions.
>>>> There is absolutely no warranty for GDB.  Type "show warranty" for
>>>> details.
>>>> This GDB was configured as "i586-suse-linux"...
>>>> Using host libthread_db library "/lib/libthread_db.so.1".
>>>> (gdb) r --SingleThreaded
>>>> Starting program: /local/OSG/OpenSceneGraph/bin/osgfadetext
>>>> --SingleThreaded
>>>> [Thread debugging using libthread_db enabled]
>>>> [New Thread 0xb6948b00 (LWP 27339)]
>>>> [New Thread 0xb58d0b90 (LWP 27346)]
>>>>
>>>> Program received signal SIGSEGV, Segmentation fault.
>>>> [Switching to Thread 0xb6948b00 (LWP 27339)]
>>>> 0xb7a44f99 in std::_Rb_tree<osgText::FadeText*, osgText::FadeText*,
>>>> std::_Identity<osgText::FadeText*>, std::less<osgText::FadeText*>,
>>>> std::allocator<osgText::FadeText*> >::find (this=0xb420117c,
>>>>   __k=@0x18) at /usr/include/c++/4.2.1/bits/stl_tree.h:481
>>>> 481               (this->_M_impl._M_header._M_parent);
>>>> (gdb) where
>>>> #0  0xb7a44f99 in std::_Rb_tree<osgText::FadeText*, osgText::FadeText*,
>>>> std::_Identity<osgText::FadeText*>, std::less<osgText::FadeText*>,
>>>> std::allocator<osgText::FadeText*> >::find (
>>>>   this=0xb420117c, __k=@0x18) at
>>>> /usr/include/c++/4.2.1/bits/stl_tree.h:481
>>>> #1  0xb7a48e69 in GlobalFadeText::update (this=0x8096298,
>>>> frameNumber=957)
>>>>   at /usr/include/c++/4.2.1/bits/stl_set.h:412
>>>> #2  0xb7a4a07f in osgText::FadeText::FadeTextUpdateCallback::update
>>>> (this=0x806e2f8, nv=0x8056eb8,
>>>>   drawable=0x805aca8) at
>>>> /local/OSG/OpenSceneGraph/src/osgText/FadeText.cpp:261
>>>> #3  0xb7c83df6 in osgUtil::UpdateVisitor::apply (this=0x8056eb8,
>>>> node=@0x805aac8)
>>>>   at /local/OSG/OpenSceneGraph/include/osgUtil/UpdateVisitor:98
>>>> #4  0xb7e24b38 in osg::Geode::accept (this=0x805aac8, nv=@0x8056eb8)
>>>>   at /local/OSG/OpenSceneGraph/include/osg/Geode:39
>>>> #5  0xb7e588c4 in osg::Group::traverse (this=0x805a8f0, nv=@0x8056eb8)
>>>>   at /local/OSG/OpenSceneGraph/src/osg/Group.cpp:62
>>>> #6  0xb7c84064 in osgUtil::UpdateVisitor::apply (this=0x8056eb8,
>>>> node=@0x805a8f0)
>>>>   at /local/OSG/OpenSceneGraph/include/osg/NodeVisitor:181
>>>> #7  0xb7e5a2ea in osg::Group::accept (this=0x805a8f0, nv=@0x8056eb8)
>>>>   at /local/OSG/OpenSceneGraph/include/osg/Group:38
>>>> #8  0xb7e588c4 in osg::Group::traverse (this=0x805a778, nv=@0x8056eb8)
>>>>   at /local/OSG/OpenSceneGraph/src/osg/Group.cpp:62
>>>> #9  0xb7c84064 in osgUtil::UpdateVisitor::apply (this=0x8056eb8,
>>>> node=@0x805a778)
>>>>   at /local/OSG/OpenSceneGraph/include/osg/NodeVisitor:181
>>>> #10 0xb7dae198 in osg::NodeVisitor::apply (this=0x8056eb8,
>>>> node=@0x805a778)
>>>>   at /local/OSG/OpenSceneGraph/include/osg/NodeVisitor:242
>>>> #11 0xb7deb6aa in osg::CoordinateSystemNode::accept (this=0x805a778,
>>>> nv=@0x8056eb8)
>>>>   at /local/OSG/OpenSceneGraph/include/osg/CoordinateSystemNode:95
>>>> #12 0xb7ac6f47 in osgViewer::Viewer::updateTraversal (this=0xbfa1e9e0)
>>>>   at /local/OSG/OpenSceneGraph/src/osgViewer/Viewer.cpp:885
>>>> #13 0xb7ad30eb in osgViewer::ViewerBase::frame (this=0xbfa1e9e0,
>>>>   simulationTime=1.7976931348623157e+308)
>>>>   at /local/OSG/OpenSceneGraph/src/osgViewer/ViewerBase.cpp:585
>>>> #14 0xb7ad3230 in osgViewer::ViewerBase::run (this=0xbfa1e9e0)
>>>>   at /local/OSG/OpenSceneGraph/src/osgViewer/ViewerBase.cpp:558
>>>> #15 0xb7ac2c3f in osgViewer::Viewer::run (this=0xbfa1e9e0)
>>>>   at /local/OSG/OpenSceneGraph/src/osgViewer/Viewer.cpp:322
>>>> #16 0x0804bb25 in main () at
>>>> /local/OSG/OpenSceneGraph/examples/osgfadetext/osgfadetext.cpp:149
>>>> (gdb)
>>>>
>>>>
>>>> --
>>>> Ing. Mario Valle
>>>> Data Analysis and Visualization Services         |
>>>> http://www.cscs.ch/~mvalle
>>>> Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91)
>>>> 610.82.60
>>>> v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91)
>>>> 610.82.82
>>>> _______________________________________________
>>>> osg-users mailing list
>>>> osg-users at lists.openscenegraph.org
>>>>
>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>>
>>>>
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> osg-users at lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
> --
> Ing. Mario Valle
> Data Analysis and Visualization Services         |
> http://www.cscs.ch/~mvalle
> Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
> v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list