Update from Jogl 1.0 to Jogl 2.0
I have some project write on Jogl 1.0. It start as Java Web Start http://easystoneshop.com/applets/CountertopQuote/index.html. Everything work, but on Mac Os 10.9.1, 10.8.5, 10.7.5 with update jdk 1.7.0.51 project don't work! I find information: MacOS + Jogl1.0+ JDK 1.7 don't work together. And many people recommended update Jogl library to 2.x.x. I connected jogl-all.jar insted jogl.jar. Connect new native library. Then I change com.sun.opengl.util.texture.* update to com.jogamp.opengl.util.texture.* and some other imports. Code: final GL gl = drawable.getGL(); change to: final GL gl1 = drawable.getGL(); final GL2 gl = gl1.getGL2(); Then I much time googling and debuging... On my project immediately drawn picture, but then hangs. After closing the window the following information: Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Exception @ destroy's associateDrawable(false) at jogamp.opengl.GLContextImpl.destroy(GLContextImpl.java:447) at javax.media.opengl.awt.GLJPanel$OffscreenBackend.destroy(GLJPanel.java:1518) at javax.media.opengl.awt.GLJPanel$6.run(GLJPanel.java:1248) at javax.media.opengl.Threading.invoke(Threading.java:193) at javax.media.opengl.awt.GLJPanel.dispose(GLJPanel.java:463) at javax.media.opengl.awt.GLJPanel.removeNotify(GLJPanel.java:568) at javax.media.opengl.awt.GLJPanel.destroy(GLJPanel.java:486) at javax.media.opengl.awt.GLJPanel$2.run(GLJPanel.java:282) at com.jogamp.nativewindow.awt.AWTWindowClosingProtocol$WindowClosingAdapter.windowClosing(AWTWindowClosingProtocol.java:71) at java.awt.Window.processWindowEvent(Window.java:2051) at javax.swing.JFrame.processWindowEvent(JFrame.java:296) at java.awt.Window.processEvent(Window.java:2009) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:708) at java.awt.EventQueue$4.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Caused by: javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glFramebufferRenderbuffer(<int> 0x8D40, <int> 0x8CE0, <int> 0x8D41, <int> 0x0): GL_INVALID_OPERATION ( 1282 0x502), at javax.media.opengl.DebugGL4bc.writeGLError(DebugGL4bc.java:29490) at javax.media.opengl.DebugGL4bc.glFramebufferRenderbuffer(DebugGL4bc.java:12353) at com.jogamp.opengl.FBObject.detachColorbufferImpl(FBObject.java:1570) at com.jogamp.opengl.FBObject.detachAllImpl(FBObject.java:1870) at com.jogamp.opengl.FBObject.destroy(FBObject.java:1911) at jogamp.opengl.GLFBODrawableImpl.initialize(GLFBODrawableImpl.java:163) at jogamp.opengl.GLFBODrawableImpl.associateContext(GLFBODrawableImpl.java:347) at jogamp.opengl.GLContextImpl.associateDrawable(GLContextImpl.java:733) at jogamp.opengl.GLContextImpl.destroy(GLContextImpl.java:412) ... 33 more I don't found source of the problem. I don't know Jogl very well. Please help me. |
My project on GitHub with new changes: https://github.com/Trion4ik/Editor1
|
Administrator
|
Ok. Can you try to write a very small test case to reproduce your bug? I'm looking at your source code but there are a lot of classes.
Edit.: Please use those debug flags: http://jogamp.org/wiki/index.php/Jogl_FAQ#Applications
Julien Gouesse | Personal blog | Website
|
In reply to this post by Trion4ik
I am unable to compile and test the project,
the classes under com.componentix.virtualdesign.* is missing. The AppletMain imports com.componentix.virtualdesign.browser.domain.BasePricedItem |
In reply to this post by gouessej
I dId what you ask me and got the result!
|
Free forum by Nabble | Edit this page |