<div dir="ltr">Did you try to guard your mouse call by the following method from vtkPanel?<div><br></div><div><div><br></div><div> public boolean isWindowSet() {</div><div> return (this.windowset == 1);</div><div> }</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 25, 2016 at 3:12 PM, dei <span dir="ltr"><<a href="mailto:david.ei@novodynamics.com" target="_blank">david.ei@novodynamics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">After fixing several other things, I've solved all the crash issues except<br>
one. There appears to be a short (< 1 second) lag between the time my parent<br>
JPanel become visible and the time its child vtkPanel is ready to accept<br>
mouse events (and consequent calls to Render()). I'm trying to suppress<br>
mouse events until the vtkPanel is ready but I have not been able to find a<br>
way to reliably detect that the vtkPanel is done initializing.<br>
<br>
The crash occurs in<br>
vtkWin32OpenGLRenderWindow::SetupPixelFormatPaletteAndContext() with the<br>
error: "failed to get valid pixel format." *How do I tell if<br>
vtkWin32OpenGLRenderWindow is completely initialized?* I'd hate to have use<br>
a delay timer kludge.<br>
<br>
BTW, all my java accesses to the vtk are on the AWT-EventQueue-0 (the GUI<br>
thread).<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Crash-in-vtkShaderProgram-vtkOpenGLPolyDataMapper-tp5737734p5737869.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Crash-in-vtkShaderProgram-vtkOpenGLPolyDataMapper-tp5737734p5737869.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>