Thanks Robert!
Now osglauncher (almost) works.
But if I simply move the mouse around on the osglauncher(d) window,
after a while I receive a segmentation fault.
To reproduce:
- run osglauncherd (the crash happens in or outside gdb)
- move fast the mouse on the screen over the various thumbnails so the label
on screen changes
See the attached gdb stack trace.
If I set OSG_THREADING to:
SingleThreaded no crash
CullDrawThreadPerContext no crash
DrawThreadPerContext chash, sometime as soon as app loads
CullThreadPerCameraDrawThreadPerContext crash
Platform is Linux32 with GeForce 6800 GS and driver 8762
and two dual core Xeon
Hope it helps
mario
Robert Osfield wrote:
> On 6/21/07, Mario Valle <[EMAIL PROTECTED]> wrote:
>> OpenSceneGraph-Data updated to revision 7013 few minutes ago.
>> no sign of osg.conf file.
>
> Oops, looks like I missed a commit on the addition of osg.conf, and
> this wasn't caught before 2.0 :-|
>
> Now checked in to OpenSceneGraph-Data SVN.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
--
Ing. Mario Valle
Visualization Group | 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
$ gdb osglauncherd
GNU gdb 6.3
Copyright 2004 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/tls/libthread_db.so.1".
(gdb) r
Starting program: /local/OSG/OpenSceneGraph/bin/osglauncherd
[Thread debugging using libthread_db enabled]
[New Thread 1096876992 (LWP 20970)]
[New Thread 1111423920 (LWP 20983)]
Scaling image 'ExampleThumbnails/osganimation.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgcubemap.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgdepthshadow.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgdistortion.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgfxbrowser.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osggeometry.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osghud.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgkeyboard.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osglight.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgmotionblur.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgmultitexture.jpg' from (256,205) to
(256,256)
Scaling image 'ExampleThumbnails/osgparticle.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgprerendercubemap.jpg' from (256,205) to
(256,256)
Scaling image 'ExampleThumbnails/osgreflect.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgscribe.jpg' from (256,205) to (256,256)
Scaling image 'ExampleThumbnails/osgvertexprogram.jpg' from (256,205) to
(256,256)
Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,)
Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1111423920 (LWP 20983)]
0x4023b069 in osg::StateAttribute::getTypeMemberPair (this=0x42b0a268) at
StateAttribute:219
219 inline TypeMemberPair getTypeMemberPair() const { return
TypeMemberPair(getType(),getMember()); }
(gdb) where
#0 0x4023b069 in osg::StateAttribute::getTypeMemberPair (this=0x42b0a268) at
StateAttribute:219
#1 0x40243861 in osg::State::applyTextureAttribute (this=0x80f0b78, unit=0,
attribute=0x42b0a268)
at State:335
#2 0x409878a6 in osgText::Text::renderOnlyForegroundText (this=0x80617d8,
[EMAIL PROTECTED],
[EMAIL PROTECTED]) at /local/OSG/OpenSceneGraph/src/osgText/Text.cpp:1961
#3 0x40989936 in osgText::Text::drawImplementation (this=0x80617d8, [EMAIL
PROTECTED],
[EMAIL PROTECTED]) at /local/OSG/OpenSceneGraph/src/osgText/Text.cpp:1573
#4 0x4098a060 in osgText::Text::drawImplementation (this=0x80617d8, [EMAIL
PROTECTED])
at /local/OSG/OpenSceneGraph/src/osgText/Text.cpp:1460
#5 0x4070d9e0 in osg::Drawable::draw (this=0x80617d8, [EMAIL PROTECTED]) at
Drawable:868
#6 0x4070cafa in osgUtil::RenderLeaf::render (this=0x82ca0f8, [EMAIL
PROTECTED],
previous=0x80fbf88) at
/local/OSG/OpenSceneGraph/src/osgUtil/RenderLeaf.cpp:60
#7 0x40700808 in osgUtil::RenderBin::drawImplementation (this=0x42b040a0,
[EMAIL PROTECTED],
[EMAIL PROTECTED]) at
/local/OSG/OpenSceneGraph/src/osgUtil/RenderBin.cpp:405
#8 0x4070061f in osgUtil::RenderBin::draw (this=0x42b040a0, [EMAIL PROTECTED],
[EMAIL PROTECTED]) at
/local/OSG/OpenSceneGraph/src/osgUtil/RenderBin.cpp:370
#9 0x40700ae7 in osgUtil::RenderBin::drawImplementation (this=0x80f6db0,
[EMAIL PROTECTED],
[EMAIL PROTECTED]) at
/local/OSG/OpenSceneGraph/src/osgUtil/RenderBin.cpp:455
#10 0x4071180b in osgUtil::RenderStage::drawImplementation (this=0x80f6db0,
[EMAIL PROTECTED], [EMAIL PROTECTED])
at /local/OSG/OpenSceneGraph/src/osgUtil/RenderStage.cpp:1010
#11 0x4070061f in osgUtil::RenderBin::draw (this=0x80f6db0, [EMAIL PROTECTED],
[EMAIL PROTECTED]) at
/local/OSG/OpenSceneGraph/src/osgUtil/RenderBin.cpp:370
#12 0x40713a14 in osgUtil::RenderStage::drawInner (this=0x80f6db0, [EMAIL
PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED])
at /local/OSG/OpenSceneGraph/src/osgUtil/RenderStage.cpp:718
#13 0x407136d1 in osgUtil::RenderStage::draw (this=0x80f6db0, [EMAIL
PROTECTED],
[EMAIL PROTECTED]) at
/local/OSG/OpenSceneGraph/src/osgUtil/RenderStage.cpp:886
#14 0x40723969 in osgUtil::SceneView::draw (this=0x80f0f58)
at /local/OSG/OpenSceneGraph/src/osgUtil/SceneView.cpp:1353
#15 0x408d5ad8 in ViewerDoubleBufferedRenderingOperation::draw (this=0x80f6c18)
at /local/OSG/OpenSceneGraph/src/osgViewer/Viewer.cpp:422
#16 0x408d60cc in ViewerDoubleBufferedRenderingOperation::operator()
(this=0x80f6c18,
object=0x8087898) at /local/OSG/OpenSceneGraph/src/osgViewer/Viewer.cpp:559
#17 0x402893e0 in osg::GraphicsContext::runOperations (this=0x8087898)
at /local/OSG/OpenSceneGraph/src/osg/GraphicsContext.cpp:428
#18 0x408cf77f in ViewerRunOperations::operator() (this=0x80f8a48,
object=0x8087898)
at /local/OSG/OpenSceneGraph/src/osgViewer/Viewer.cpp:1042
#19 0x4028ef6c in osg::OperationsThread::run (this=0x80f8838)
at /local/OSG/OpenSceneGraph/src/osg/GraphicsThread.cpp:290
#20 0x4001bdfc in OpenThreads::ThreadPrivateActions::StartThread
(data=0x80f8848)
at /local/OSG/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++:158
#21 0x409e0297 in start_thread () from /lib/tls/libpthread.so.0
#22 0x40de537e in clone () from /lib/tls/libc.so.6
#23 0x423efbb0 in ?? ()
(gdb) quit
The program is running. Exit anyway? (y or n) y
$
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/