Thanks guys for figuring this out. I ran into the exact same problem earlier this week with Ubuntu 18.04. I'm using CompositeViewer similar to the "-3" case of the osgcompositeviewer example (multiple Views in one window). I call osg::GraphicsContext::createGraphicsContext(traits) with my custom Traits, and of course was getting the "Unable to open display ":0.0"" error.
Robert's suggestion of calling "traits->readDISPLAY()" before creating the graphics context seems to have fixed it. Ravi On Wed, Sep 5, 2018 at 12:47 PM Omar Álvarez <omar.alva...@cinfo.es> wrote: > Sorry, I meant the samples that use it. You're right. > > On Wed, Sep 5, 2018, 18:37 Robert Osfield <robert.osfi...@gmail.com> > wrote: > >> Hi Omar, >> >> On Wed, 5 Sep 2018 at 17:07, Omar Álvarez <omar.alva...@cinfo.es> wrote: >> > Thank you very much for your time. If nobody else feels like doing it, >> I can help with updating osg::GraphicsContext::WindowingSystemInterface. >> >> This hasn't looked like an OSG bug too me, just a usage issue. What >> specifically do you think might need changing with >> WindowingSystemInterface? >> >> Robert. >> _______________________________________________ >> osg-users mailing list >> firstname.lastname@example.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > _______________________________________________ > osg-users mailing list > email@example.com > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list firstname.lastname@example.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org