Hi Thilo,

This is may well be a driver issue.  Killing the app really isn't a
good way to test things... you can actually get the OSG to
viewer::run() for a limited number of frames then exit using the env
var - set OSG_RUN_FRAME_COUNT to something like 10. i.e.

 export OSG_RUN_FRAME_COUNT=10
 osgvewer cow.osg

Another route of investigation would be to for the OSG to run single
threaded by doing:

 export OSG_THREADING=SingleThreaded

Then running osgviewer/example.

Whether this will change the behavior, or whether it'd indicate an OSG
threading bug or X11/GL driver bug I wouldn't be able to say.  What I
can say is really thrashing the X server/GL driver this way is not
really testing it in ways that actual users will ever stress your
application.

Robert.

On Wed, Dec 9, 2009 at 5:18 PM, Thilo Weigel <[email protected]> wrote:
> Hi,
>
> If I run "/usr/bin/osgviewer cow.osg" while constantly toggling an xterm 
> window (using the script below) osgviewer crashes after a while (anything 
> between 15 Minutes and 2 hours)
> It seems like the crash only occurs in fullscreen mode.
>
> Does this sound familiar to anybody? Is this rather an OSG, OpenGL, XServer 
> or a NVIDIA driver issue?
>
> I'm using
> - OpenSceneGraph 2.8.2
> - One single XScreen
> - NVIDIA driver 185.18.14 (also tried several others including the latest 
> 190.42)
> - AntiAliasing Settings 4xMS, Anisotropic Filtering 2x
> - OpenSuse 11.1
> - Icewm WindowManager
> - osgviewer
>  - in SingleThreaded mode
>  - in Fullscreen mode
>
>
> The script for toggling an xterm window is the following:
>
> #!/bin/bash
> while [ 1 ]
> do
>  xterm &
>  sleep 1
>  /usr/bin/pkill -P $$
>  sleep 1
> done
>
>
> The following coredump is generated:
>
> Core was generated by `osgviewer cow.osg'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x00007fbb9cb6c59b in ?? () from /usr/lib64/libGLcore.so.1
> (gdb) bt
> #0  0x00007fbb9cb6c59b in ?? () from /usr/lib64/libGLcore.so.1
> #1  0x00007fbb9c8facf2 in ?? () from /usr/lib64/libGLcore.so.1
> #2  0x00007fbb9c8ff29d in ?? () from /usr/lib64/libGLcore.so.1
> #3  0x00007fbb9c8ee321 in ?? () from /usr/lib64/libGLcore.so.1
> #4  0x00007fbb9ea38813 in ?? () from /usr/lib64/libGL.so.1
> #5  0x00007fbb9ea5343e in glXSwapBuffers () from /usr/lib64/libGL.so.1
> #6  0x00007fbb9f54691b in 
> osgViewer::GraphicsWindowX11::swapBuffersImplementation() () from 
> /usr/lib64/libosgViewer.so.55
> #7  0x00007fbba01444a9 in osg::GraphicsContext::swapBuffers() () from 
> /usr/lib64/libosg.so.55
> #8  0x00007fbb9f53d60d in osgViewer::ViewerBase::renderingTraversals() () 
> from /usr/lib64/libosgViewer.so.55
> #9  0x00007fbb9f53b771 in osgViewer::ViewerBase::run() () from 
> /usr/lib64/libosgViewer.so.55
> #10 0x0000000000403a37 in main ()
>
>
> Thank you for any hints!
>
> Cheers,
>
> Thilo
>
> ______________________________________________________
> GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://movieflat.web.de
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to