<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Robert,</div><div><br></div><div>we are experiencing some crashes in our sim software. And I know you will not like this post since I can not produce minimal case exercising this issue - I tried to mimic the sim code into one simple app but in this minimal app all works just great. So I will try to explain and count on you with hints</div><div><br></div><div>The environment is multithreaded:</div><div>- high res thread updating labels guarded by mutex</div><div>- the osg threads with update callbacks on osgText::Text that is setting the labels with setText(...) guarded  by mutex</div><div><br></div><div>The env is XUbuntu 18, NVIDIA GTX 1080</div><div><br></div><div>And the crash happens at <br></div><div>Text::drawImplementationSinglePass ln: 1151 glyphquad._primitives->draw(state, usingVertexBufferObjects);</div><div><br></div><div>which furthers <br></div><div><br></div><div>DrawElementsUShort::draw ln: 266</div><div><br></div><div>if (_numInstances>=1) state.glDrawElementsInstanced(mode, size(), GL_UNSIGNED_SHORT, (const GLvoid *)(ebo->getOffset(getBufferIndex())), _numInstances);<br>            else glDrawElements(mode, size(), GL_UNSIGNED_SHORT, (const GLvoid *)(ebo->getOffset(getBufferIndex())));<br></div><div><br></div><div>_numInstances is 0 when the crash happens so the crash happens here:</div><div><br></div><div>glDrawElements(mode, size(), GL_UNSIGNED_SHORT, (const GLvoid *)(ebo->getOffset(getBufferIndex())));<br></div><div><br></div><div>Any clue or at least a thought when this can happen? Mean while I will continue testing and will really try again to make a small app reproducing this behavior</div><div><br></div><div>Thanks a bunch as always!</div><div><br></div><div>Cheers,</div><div>Nick<br></div><div><br></div><div>-- <br><div dir="ltr" class="gmail_signature">trajce nikolov nick<br></div></div></div></div></div></div></div></div>