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<jpdelp...@csir.co.za> 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.
jp
[1]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5162b70 (LWP 29417)]
0xb76d152f in ?? () from /usr/lib/libGL.so.1
[2]
Starting program: /usr/local/bin/osgviewer --window 0 0 800 600 cow.osg
[Thread debugging using libthread_db enabled]
[New Thread 0xb5162b70 (LWP 29409)]
Got an X11ErrorHandling call display=0x8082628 event=0xbfffe380
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server
":0.0"
after 55 requests (55 known processed) with 0 events remaining.
BadAccess (attempt to access private resource denied)
Major opcode: 136
Minor opcode: 5
Error code: 10
Request serial: 55
Current serial: 55
ResourceID: 58720257
Warning: non-texture mode '3553'passed to geTexturetMode(unit,mode),
assuming getMode(mode) instead.
Program received signal SIGSEGV, Segmentation fault.
0x0804e32c in std::string::_Rep::_S_empty_rep_storage ()
[3]
^C
Program received signal SIGINT, Interrupt.
0xb7fe2424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fe2424 in __kernel_vsyscall ()
#1 0xb788b20a in __pthread_cond_wait (cond=0x8123224, mutex=0x812110c)
at pthread_cond_wait.c:153
#2 0xb7fb6ac5 in OpenThreads::Condition::wait(OpenThreads::Mutex*) ()
from /usr/local/lib/libOpenThreads.so.12
#3 0xb7996461 in osgViewer::ViewerBase::renderingTraversals() ()
from /usr/local/lib/libosgViewer.so.76
#4 0xb799413d in osgViewer::ViewerBase::frame(double) ()
from /usr/local/lib/libosgViewer.so.76
#5 0xb79943dd in osgViewer::ViewerBase::run() ()
from /usr/local/lib/libosgViewer.so.76
#6 0xb7985a73 in osgViewer::Viewer::run() ()
from /usr/local/lib/libosgViewer.so.76
#7 0x0804b626 in main ()
(gdb) info threads
2 Thread 0xb5162b70 (LWP 29392) 0xb7fe2424 in __kernel_vsyscall ()
* 1 Thread 0xb5c8f6f0 (LWP 29389) 0xb7fe2424 in __kernel_vsyscall ()
(gdb) thread 2
[Switching to thread 2 (Thread 0xb5162b70 (LWP 29392))]#0 0xb7fe2424 in
__kernel_vsyscall ()
(gdb) bt
#0 0xb7fe2424 in __kernel_vsyscall ()
#1 0xb74b0f06 in __poll (fds=0xb7547ff4, nfds=1, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
#2 0xb73e00d0 in ?? () from /usr/lib/libxcb.so.1
#3 0xb73e26d1 in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#4 0xb7790e68 in _XReply () from /usr/lib/libX11.so.6
#5 0xb77067cc in ?? () from /usr/lib/libGL.so.1
--
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org