[vtkusers] Crash in vtkShaderProgram/vtkOpenGLPolyDataMapper

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Apr 25 17:58:47 EDT 2016


Did you try to guard your mouse call by the following method from vtkPanel?


  public boolean isWindowSet() {
    return (this.windowset == 1);
  }

On Mon, Apr 25, 2016 at 3:12 PM, dei <david.ei at novodynamics.com> wrote:

> After fixing several other things, I've solved all the crash issues except
> one. There appears to be a short (< 1 second) lag between the time my
> parent
> JPanel become visible and the time its child vtkPanel is ready to accept
> mouse events (and consequent calls to Render()). I'm trying to suppress
> mouse events until the vtkPanel is ready but I have not been able to find a
> way to reliably detect that the vtkPanel is done initializing.
>
> The crash occurs in
> vtkWin32OpenGLRenderWindow::SetupPixelFormatPaletteAndContext() with the
> error: "failed to get valid pixel format." *How do I tell if
> vtkWin32OpenGLRenderWindow is completely initialized?* I'd hate to have use
> a delay timer kludge.
>
> BTW, all my java accesses to the vtk are on the AWT-EventQueue-0 (the GUI
> thread).
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Crash-in-vtkShaderProgram-vtkOpenGLPolyDataMapper-tp5737734p5737869.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160425/810ca0d1/attachment.html>


More information about the vtkusers mailing list