<div dir="ltr"><div><div>Another possibility is that your code is allocating and deallocating memory in separate module DLLs. However, in Windows, each DLL has separate memory spaces and that cannot be done.<br><br></div>You should check if that's the case by any reason (e.g. creating a osg::ref_ptr in a dll of your own and allowing osg::ref_ptr to be deallocaed automatically by another dll module).<br></div>This is solved by providing proper deallocators.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-10 12:04 GMT+00:00 Voerman, L. <span dir="ltr"><<a href="mailto:l.voerman@rug.nl" target="_blank">l.voerman@rug.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi T<span style="color:rgb(80,0,80);font-size:12.8px">héo,</span><div><span style="color:rgb(80,0,80);font-size:12.8px">I think you basically found out that the osg notify system is not thread safe, the call to osg::</span><span style="font-size:12.8px">Notify</span><span style="color:rgb(80,0,80);font-size:12.8px"> from </span></div><span class=""><div><span style="font-size:12.8px">osg130-osgUtild.dll!osgUtil::</span><span style="font-size:12.8px">C<wbr>ullVisitor::apply(osg::</span><span style="font-size:12.8px">Drawabl<wbr>e & drawable) Line 1036 C++</span><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div></span><div><span style="font-size:12.8px"> OSG_NOTICE<<"CullVisitor::<wbr>apply(Geode&) detected NaN,"....</span></div><div><span style="font-size:12.8px">is probably running in parallel with a different thread calling osg::Notify as well while triggering a resize of the buffer (too). </span></div><div><span style="font-size:12.8px">Setting OSG_NOTIFY_LEVEL=WARN will probably avoid this crash.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Regards, Laurens.</span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 10, 2017 at 12:39 PM, Alberto Luaces <span dir="ltr"><<a href="mailto:aluaces@udc.es" target="_blank">aluaces@udc.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok, the next I would do is to see what is OSG trying to print in this<br>
stack frame (the ninth from the beginning):<br>
<span><br>
osg130-osgUtild.dll!std::oper<wbr>ator<<<std::char_traits<char> >(std::basic_ostream<char,std:<wbr>:char_traits<char> > & _Ostr, const char * _Val) Line 806 C++<br>
<br>
</span>maybe that could serve as a hint...<br>
<span class="m_7357011703282499953HOEnZb"><font color="#888888"><br>
--<br>
Alberto<br>
</font></span><div class="m_7357011703282499953HOEnZb"><div class="m_7357011703282499953h5"><br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
</div></div></blockquote></div><br></div>
</div></div><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>
<br></blockquote></div><br></div>