[osg-users] Custom GraphicsContext Segmentation Fault when using Multithreading

Philipp Meyer philipp.meyer at fh-bielefeld.de
Fri Apr 22 06:09:05 PDT 2016


Hi,

I tried to orientate on "PixelBufferX11" when creating the EGLGraphicsContext, and I noticed that PixelBufferX11 calls the "init()" method in the constructor as well as in the "realizeImplementation" method, if necessary. So my call to "realizeImpl" in the constructor is pretty much just resembling that structure.

It indeed seems like there is no graphics context when the graphics thread starts, however, I fail to understand why this only happens when in multithreading mode. I studied the PixelBufferX11 source code but couldnt find anything that would explain the error in my implementation. Unfortunately I cannot test the original GraphicsContext on my realtime machine because it cant run it, however, it works fine on my ubuntu desktop machine that I use for programming.

Thank you!

Cheers,
Philipp

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66925#66925








More information about the osg-users mailing list