Hi Stephan,

I've now fixed the crash when running osgprerender --window cow.osg,
but the copy texture doesn't yet work so we get a black window.  I
believe this later problem is down to makeContextCurrentImplementation
not being implemented on the various GraphicsWindow implementations.
I'll do this on the X11 side and see how we get on.

The crash itself was due to releaseContext being called on a NULL
pointer, and the pointer was NULL because the osg::State for the main
GraphicsContext hadn't been assigned it.  I added the
state->setGraphicContext(this) to the X11, Carbon and Win32
constructors to solve this problem, and an extra check in RenderStage
to make sure no crash happens even when osg::State isn't assigned a
GraphicsContext.

This fixes are now checked in.  Next up filling in the
makeContextCurrentImplementation.

Robert.



On 2/14/07, Stephan Maximilian Huber <[EMAIL PROTECTED]> wrote:
Hi Robert,

another crash on my side:

osgprerender --window cow.osg will crash here: (regardless of the
threading model)

#0    0x0029b421 in osg::GraphicsContext::releaseContext at
GraphicsContext.cpp:277
#1    0x0127a0f1 in osgUtil::RenderStage::draw at RenderStage.cpp:847
#2    0x01275c8b in osgUtil::RenderStage::drawPreRenderStages at
RenderStage.cpp:207
#3    0x01283f9f in osgUtil::SceneView::draw at SceneView.cpp:1304
#4    0x204d3bd7 in ViewerDoubleBufferedRenderingOperation::cull_draw at
Viewer.cpp:484
#5    0x204d4c9f in ViewerDoubleBufferedRenderingOperation::operator()
at Viewer.cpp:528
#6    0x0029be3c in osg::GraphicsContext::runOperations at
GraphicsContext.cpp:426
#7    0x204ae55f in osgViewer::Viewer::renderingTraversals at
Viewer.cpp:2039
#8    0x204af0a1 in osgViewer::Viewer::frame at Viewer.cpp:1618
#9    0x204af1ae in osgViewer::Viewer::run at Viewer.cpp:678
#10    0x00006032 in main at osgprerender.cpp:441

Is there something missing in the osx-implementation of GraphicsWindow?

cheers,
Stephan

_______________________________________________
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/

Reply via email to