<div dir="ltr"><div><div>Hi Romain,<br><br></div>I have just done a code review of OSG master and the 3.4 branch and spotted a fix to the osg::State destructor that avoids deleting the GLExtensions object when there still other graphics contexts using it. I have merged and checked in this osg::State destructor fix into the OpenSceneGraph-3.4 branch.<br><br></div><div>Could you try out the OpenSceneGraph-3.4 branch or master and let us know if this resolved the bug for you.<br></div><div><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 July 2017 at 14:23, Romain Roch <span dir="ltr"><<a href="mailto:jumaroch.belpecajo@gmail.com" target="_blank">jumaroch.belpecajo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We recently upgraded our application to OSG 3.4.0 and we are now getting a crash when deleting an osg::View instance.<br>
<br>
Our application creates an additional view using a shared context with the main view. This view is displayed in a separated Qt dialog.<br>
The crash occurred when this second view is deleted: the destruction of its osg::State deletes the GLExtensions instance associated to the context id.<br>
The current VBOs that were initialized will make the application crash as soon as they are used since their internal GLExtensions instance is dead.<br>
<br>
Is it a known limitation of OSG with MDI applications, i.e. one cannot delete a view that shares a context while the main view remains active ?<br>
<br>
Would it be possible to add a test that check whether the graphics context is shared in osg::State destructor before deleting the associated GLExtensions instance ?<br>
<br>
Cheers,<br>
Romain<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=71313#71313" rel="noreferrer" target="_blank">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=71313#<wbr>71313</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</blockquote></div><br></div>