On Wed, 21 Jun 2006, Robert Osfield wrote:
Hi Eric,
A crash in glEnable() would suggest to me that the graphics context
hasn't yet been aquired. The top of the stack trace is in your own
application, so I'd guess at something like realize() hasn't yet been
called or something similar. The general behaviour of Producer and
osgProducer is the same as it was in 1.0.0 so I can't see anything
obvious that might trip you up.
Hmm. The problem was not the fact that realize() hadn't been called.
The problem seems to lie in the thread that calls realize(). Previously
I called realize() in the main thread (the one that actually creates the
viewer) but that is now crashing when I moved to the CVS version of OGS
. I moved the realize() call into the thread that does the
sync()/update()/frame() loop for the viewer and the crashing stopped.
Anybody know why? Is this a gotcha that others should be warned about?
All this using Fedora Core 4 (GNU/Linux) with nVidia Quadro4 900 XGL,
with nVidia driver 1.0-8762. I used ThreadPerCamera with realize(). I
did not try SingleThreaded.
Robert.
On 6/20/06, Eric Sokolowsky <[EMAIL PROTECTED]> wrote:
Today I updated my version of OSG to use the version from CVS. Previously I
had been using 1.0.0. After fixing some trivial changes to the osgGA
GUIEventAdapter with respect to mouse scroll wheel events, I tried to run
my program, but I am just getting a crash. Stack trace below. Any ideas?
I recompiled OT, OP, and OSG, and I'm pretty sure I'm using all the
right versions of libraries. Next, I'll try recompiling the OSG libraries
with debug information.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 35421104 (LWP 28343)]
0x00458246 in glEnable () from /usr/lib/libGL.so.1
(gdb) bt
#0 0x00458246 in glEnable () from /usr/lib/libGL.so.1
#1 0x007972d1 in Producer::Camera::_initialize ()
from /home/esok/ext/osg/Linux/lib/libProducer.so
#2 0x00797d35 in Producer::Camera::_frame ()
from /home/esok/ext/osg/Linux/lib/libProducer.so
#3 0x007985a1 in Producer::Camera::frame ()
from /home/esok/ext/osg/Linux/lib/libProducer.so
#4 0x007a14ed in Producer::CameraGroup::_singleThreadedFrame ()
from /home/esok/ext/osg/Linux/lib/libProducer.so
#5 0x007a1691 in Producer::CameraGroup::_frame ()
from /home/esok/ext/osg/Linux/lib/libProducer.so
#6 0x007a170d in Producer::CameraGroup::frame ()
from /home/esok/ext/osg/Linux/lib/libProducer.so
#7 0x00339665 in osgProducer::OsgCameraGroup::frame ()
from /home/esok/ext/osg/Linux/lib/libosgProducer.so
#8 0x0035e450 in osgProducer::Viewer::frame ()
from /home/esok/ext/osg/Linux/lib/libosgProducer.so
#9 0x0806dd2f in de::EventViewer::handle (this=0x82a7650) at event.cpp:316
#10 0x080778d1 in de::Thread::run (this=0x838a548) at event.cpp:1679
#11 0x00fad476 in OpenThreads::ThreadPrivateActions::StartThread ()
from /home/esok/ext/osg/Linux/lib/libOpenThreads.so
#12 0x003b3bd4 in start_thread () from /lib/libpthread.so.0
#13 0x0052b4fe in clone () from /lib/libc.so.6
--
____ __ Eric Sokolowsky (GST) NASA Goddard Space Flight
Center
/ __/__/_/__ Visualization Programmer Scientific Visualization
Studio
/ __/ _/ / _/ 301.286.3751 Mailstop 610.3 Bldg 28 Rm
E102
/___/_//_/__/ [EMAIL PROTECTED] Greenbelt, MD 20771
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
____ __ Eric Sokolowsky (GST) NASA Goddard Space Flight Center
/ __/__/_/__ Visualization Programmer Scientific Visualization Studio
/ __/ _/ / _/ 301.286.3751 Mailstop 610.3 Bldg 28 Rm E102
/___/_//_/__/ [EMAIL PROTECTED] Greenbelt, MD 20771
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/