<div dir="ltr"><div dir="ltr">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.</div><div dir="ltr"><br></div><div>Robert's suggestion of calling "traits->readDISPLAY()" before creating the graphics context seems to have fixed it.</div><div><br></div><div>Ravi</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018 at 12:47 PM Omar Álvarez <<a href="mailto:omar.alvarez@cinfo.es">omar.alvarez@cinfo.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Sorry, I meant the samples that use it. You're right. </div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018, 18:37 Robert Osfield <<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Omar,<br>
<br>
On Wed, 5 Sep 2018 at 17:07, Omar Álvarez <<a href="mailto:omar.alvarez@cinfo.es" rel="noreferrer" target="_blank">omar.alvarez@cinfo.es</a>> wrote:<br>
> Thank you very much for your time. If nobody else feels like doing it, I can help with updating osg::GraphicsContext::WindowingSystemInterface.<br>
<br>
This hasn't looked like an OSG bug too me, just a usage issue.  What<br>
specifically do you think might need changing with<br>
WindowingSystemInterface?<br>
<br>
Robert.<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" rel="noreferrer" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div></div>