<div dir="ltr">You may have some resize issue.<div><br></div><div>Wondering why that method is not there anymore? (As it was working before ;-)</div><div>Can you investigate what could be the correct way to get the width of the canvas?</div><div><br></div><div>Thanks,</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 6, 2015 at 4:12 PM, Yuri Khotyaintsev <span dir="ltr"><<a href="mailto:yurikhot@gmail.com" target="_blank">yurikhot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello!<div><br></div><div>I am running a simple java example using vtkJoglCanvasComponent and get the exception below. What can be the problem?</div><div><br></div><div>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.</div><div><br></div><div>/yuri<br clear="all"><div><br></div><div><br></div><div><div>Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Caught NoSuchMethodError: javax.media.opengl.GLAutoDrawable.getWidth()I on thread AWT-EventQueue-0</div><div><span style="white-space:pre-wrap"> </span>at javax.media.opengl.GLException.newGLException(GLException.java:75)</div><div><span style="white-space:pre-wrap">    </span>at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)</div><div><span style="white-space:pre-wrap">       </span>at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)</div><div><span style="white-space:pre-wrap">   </span>at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)</div><div><span style="white-space:pre-wrap">    </span>at javax.media.opengl.Threading.invoke(Threading.java:223)</div><div><span style="white-space:pre-wrap">       </span>at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)</div><div><span style="white-space:pre-wrap">    </span>at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579)</div><div><span style="white-space:pre-wrap">      </span>at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)</div><div><span style="white-space:pre-wrap">      </span>at sun.lwawt.LWRepaintArea.paintComponent(LWRepaintArea.java:59)</div><div><span style="white-space:pre-wrap"> </span>at sun.awt.RepaintArea.paint(RepaintArea.java:240)</div><div><span style="white-space:pre-wrap">       </span>at sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1314)</div><div><span style="white-space:pre-wrap">     </span>at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1198)</div><div><span style="white-space:pre-wrap">      </span>at java.awt.Component.dispatchEventImpl(Component.java:4957)</div><div><span style="white-space:pre-wrap">     </span>at java.awt.Component.dispatchEvent(Component.java:4703)</div><div><span style="white-space:pre-wrap"> </span>at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)</div><div><span style="white-space:pre-wrap">    </span>at java.awt.EventQueue.access$500(EventQueue.java:97)</div><div><span style="white-space:pre-wrap">    </span>at java.awt.EventQueue$3.run(EventQueue.java:702)</div><div><span style="white-space:pre-wrap">        </span>at java.awt.EventQueue$3.run(EventQueue.java:696)</div><div><span style="white-space:pre-wrap">        </span>at java.security.AccessController.doPrivileged(Native Method)</div><div><span style="white-space:pre-wrap">    </span>at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)</div><div><span style="white-space:pre-wrap">    </span>at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)</div><div><span style="white-space:pre-wrap">    </span>at java.awt.EventQueue$4.run(EventQueue.java:724)</div><div><span style="white-space:pre-wrap">        </span>at java.awt.EventQueue$4.run(EventQueue.java:722)</div><div><span style="white-space:pre-wrap">        </span>at java.security.AccessController.doPrivileged(Native Method)</div><div><span style="white-space:pre-wrap">    </span>at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)</div><div><span style="white-space:pre-wrap">    </span>at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)</div><div><span style="white-space:pre-wrap">        </span>at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)</div><div><span style="white-space:pre-wrap">     </span>at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)</div><div><span style="white-space:pre-wrap">        </span>at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)</div><div><span style="white-space:pre-wrap">     </span>at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)</div><div><span style="white-space:pre-wrap"> </span>at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)</div><div><span style="white-space:pre-wrap">  </span>at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)</div><div>Caused by: java.lang.NoSuchMethodError: javax.media.opengl.GLAutoDrawable.getWidth()I</div><div><span style="white-space:pre-wrap">     </span>at vtk.rendering.jogl.vtkAbstractJoglComponent$1.init(vtkAbstractJoglComponent.java:49)</div><div><span style="white-space:pre-wrap">  </span>at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:640)</div><div><span style="white-space:pre-wrap">        </span>at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:662)</div><div><span style="white-space:pre-wrap">        </span>at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1366)</div><div><span style="white-space:pre-wrap">     </span>at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1275)</div><div><span style="white-space:pre-wrap">       </span>... 30 more</div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>Dr. Yuri Khotyaintsev<br>Institutet för rymdfysik (IRF), Uppsala<br></div>
</font></span></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" 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" 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" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>