[vtkusers] vtkJoglCanvasComponent
Sebastien Jourdain
sebastien.jourdain at kitware.com
Fri Mar 6 18:21:50 EST 2015
You may have some resize issue.
Wondering why that method is not there anymore? (As it was working before
;-)
Can you investigate what could be the correct way to get the width of the
canvas?
Thanks,
Seb
On Fri, Mar 6, 2015 at 4:12 PM, Yuri Khotyaintsev <yurikhot at gmail.com>
wrote:
> Hello!
>
> I am running a simple java example using vtkJoglCanvasComponent and get
> the exception below. What can be the problem?
>
> Commenting out line 49 in vtkAbstractJoglComponent.java removes the
> exception, however I am not sure things will work properly after this...
> This is using VTK 6.2 and java 1.8 on Mac.
>
> /yuri
>
>
> Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException:
> Caught NoSuchMethodError: javax.media.opengl.GLAutoDrawable.getWidth()I on
> thread AWT-EventQueue-0
> at javax.media.opengl.GLException.newGLException(GLException.java:75)
> at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
> at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
> at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)
> at javax.media.opengl.Threading.invoke(Threading.java:223)
> at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)
> at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579)
> at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
> at sun.lwawt.LWRepaintArea.paintComponent(LWRepaintArea.java:59)
> at sun.awt.RepaintArea.paint(RepaintArea.java:240)
> at
> sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1314)
> at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1198)
> at java.awt.Component.dispatchEventImpl(Component.java:4957)
> at java.awt.Component.dispatchEvent(Component.java:4703)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:702)
> at java.awt.EventQueue$3.run(EventQueue.java:696)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
> at java.awt.EventQueue$4.run(EventQueue.java:724)
> at java.awt.EventQueue$4.run(EventQueue.java:722)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
> at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> Caused by: java.lang.NoSuchMethodError:
> javax.media.opengl.GLAutoDrawable.getWidth()I
> at
> vtk.rendering.jogl.vtkAbstractJoglComponent$1.init(vtkAbstractJoglComponent.java:49)
> at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:640)
> at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:662)
> at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1366)
> at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1275)
> ... 30 more
>
> --
> Dr. Yuri Khotyaintsev
> Institutet för rymdfysik (IRF), Uppsala
>
> _______________________________________________
> 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/20150306/70a88300/attachment.html>
More information about the vtkusers
mailing list