Hi,

On 26/05/11 12:44, J.P. Delport wrote:
Hi,

On 26/05/11 11:32, Robert Osfield wrote:
Hi J.P,

On Thu, May 26, 2011 at 10:22 AM, J.P. Delport<[email protected]>
wrote:
osgviewer --window 0 0 800 600 cow.osg
Error: In Texture::Extensions::setupGLExtensions(..) OpenGL version
test failed, requires valid graphics context.
Scaling image 'Images/reflect.rgb' from (128,128) to (0,0)
Segmentation fault

A curious error - GraphicsWindowX11 shouldn't create a window without
a context and I would expect the makeCurrent on the context to fail
and be reported, what shouldn't happen is that the code to get to
doing the draw traversal without a context being current.

Could you try running single threaded via:

osgviewer --window 0 0 800 600 cow.osg --SingleThreaded

To see if that makes any difference.

I have not been able to get --SingleThreaded to misbehave yet.

Without --SingleThreaded I get one of:
* Working window
* Segfault e.g. [1]
* X error e.g. [2]
* Hang on start (black GL window) [3]

Does look like a timing issue at startup.

It takes a bit more effort to reproduce on a faster machine it seems. The crashes are more frequent than successful starts on my laptop:
Centrino Duo, NVidia GeForce Go 7300

On a new quad core intel with GTS240 I can get it to die less often, about once or twice in 100 starts. Debian Sid 32-bit, Xorg 7.6, NVidia drivers 270.41.19.

ulimit -c unlimited
for ((i=0; i<100; i++)) do osgviewer --window 0 100 800 600 cow.osg & osgviewer --window 500 0 800 600 cow.osg & sleep 0.5; killall osgviewer; done

Sometimes I get the weird:
Error: In Texture::Extensions::setupGLExtensions(..) OpenGL version test failed, requires valid graphics context.

Otherwise just a segfault.

jp

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to