[osg-users] GraphicContext null

Pete Black pete at marchingcubes.com
Sat Nov 28 13:05:53 PST 2015


This  may be due to the fact that Fedora now runs gdm on its own screen.

e.g. it used to be that you could more or less assume setting DISPLAY=:0 and running an X11 application would show the app on the machines 'local' display. With Fedora 22+ this is now DISPLAY=:1

It looks to me, after glancing at the window setup code, that the Traits used to configure a 'single screen' will default to 0 as the screen number, and thus fail to create the context, as the logged-in user is not authed to create resources on the gdm screen.

I only use Qt-created windows in my app so I can't be sure about this but it corresponds very well with the confusion I encountered trying to launch X11 apps on the 'local' display when ssh-ing into a remote Fedora machine.

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








More information about the osg-users mailing list