JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

classic Classic list List threaded Threaded
215 messages Options
12345678 ... 11
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

gouessej
Administrator
Thanks. I will port the unified renderer to JOGL 2. If they remove the JOGL backend from their repository, I will fork it like we did with LibGDX.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

elect
In reply to this post by jmaasing
jmaasing wrote
Personally I don't have the time (nor inclination to do it) but if some JOGL-knowledgable person feels like it the jMonekyEngine team sure could use some help in maintaining the JOGL-renderer in the upcoming 3.1 release

http://hub.jmonkeyengine.org/t/can-we-expect-jogl-as-an-official-render-option-in-jme/33555
I guess we should put the sample quoted in that thread in our wiki..
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
Are there any working ports for jME 3.1 alpha? I can't get JOGL to work with the jME master branch at the moment.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

gouessej
Administrator
What's wrong exactly? It was working a few months ago. The unified renderer is missing but I thought that it was still possible to use the old renderer.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
The JOGL jme renderer fails to start. For example I tried running the TestSafeCanvas app, using settings.setRenderer("JOGL"), and it threw the following exception:

Exception in thread "main" com.jogamp.opengl.GLException: main: No OpenGL context current on this thread
        at com.jogamp.opengl.GLContext.getCurrentGL(GLContext.java:509)
        at com.jme3.renderer.jogl.JoglRenderer.setMainFrameBufferSrgb(JoglRenderer.java:2686)
        at com.jme3.system.jogl.JoglNewtAbstractDisplay.initGLCanvas(JoglNewtAbstractDisplay.java:149)
        at com.jme3.system.jogl.JoglNewtCanvas.initGLCanvas(JoglNewtCanvas.java:54)
        at com.jme3.system.jogl.JoglNewtCanvas.<init>(JoglNewtCanvas.java:49)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at java.lang.Class.newInstance(Class.java:442)
        at com.jme3.system.JmeDesktopSystem.newContextJogl(JmeDesktopSystem.java:230)
        at com.jme3.system.JmeDesktopSystem.newContext(JmeDesktopSystem.java:274)
        at com.jme3.system.JmeSystem.newContext(JmeSystem.java:162)
        at com.jme3.app.Application.createCanvas(Application.java:494)
        at jme3test.awt.TestSafeCanvas.main(TestSafeCanvas.java:26)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

gouessej
Administrator
I'll fix it tonight. Thanks for the feedback.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

gouessej
Administrator
In reply to this post by Mr.Marbles
The regression is here:
https://github.com/jMonkeyEngine/jmonkeyengine/commit/77a4002c3d31afe28ddb1f618cb5d196cdce7384#commitcomment-12942178

There is the same bug in JoglAbstractDisplay.

Edit.: Just put this call in canvas.invoke(false, new GLRunnable() {  public boolean run(GLAutoDrawable glad) { /*HERE*/ }}); and it will work.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
gouessej wrote
Edit.: Just put this call in canvas.invoke(false, new GLRunnable() {  public boolean run(GLAutoDrawable glad) { /*HERE*/ }}); and it will work.
I tried applying this fix to JoglNewtAbstractDisplay and now there is no canvas made visible. The app starts without exception but nothing is shown. For reference here's what the updated code looks like:

        canvas.invoke(false, new GLRunnable() {
            public boolean run(GLAutoDrawable glad) {
                renderer.setMainFrameBufferSrgb(settings.getGammaCorrection());
                return true;
            }
        });
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

gouessej
Administrator
Thanks for testing. Please try to find the last working revision so that I can find which other change broke the JOGL renderer. It was working in May for sure.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
It appears the app gets hung on the startCanvas(true) call. Caused by a wait() on createdLock in JoglContext which is never notified.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Xerxes Rånby
This may have been solved by in the next jogamp release
https://jogamp.org/bugzilla/show_bug.cgi?id=1161

we sould try verify if the current JogAmp 2.3.2-rc test build fixes this issue

Den 2015-08-28 14:55, Mr.Marbles [via jogamp] skrev:
It appears the app gets hung on the startCanvas(true) call. Caused by a wait() on createdLock in JoglContext which is never notified.


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p4035155.html
To start a new topic under jogl, email [hidden email]
To unsubscribe from jogamp, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
I tried running the same app with startCanvas(false) and it throws the following exception:

finishLifecycleAction(com.jogamp.opengl.util.Animator$3): ++++++ timeout reached ++++++ main-Display-.windows_nil-1-EDT-1
finishLifecycleAction(com.jogamp.opengl.util.Animator$3): OK false- pollPeriod 1000, blocking true -> res false, waited 1000/1000 - main-Display-.windows_nil-1-EDT-1
 - com.jogamp.opengl.util.Animator[started true, animating true, paused true, drawable 1, totals[dt 0, frames 0, fps 0.0], modeBits 1, init'ed true, animThread Thread[main-AWTAnimator#00,5,main], exclCtxThread false(null)]
    [2]: com.jogamp.opengl.util.AnimatorBase.finishLifecycleAction(AnimatorBase.java:630)
    [3]: com.jogamp.opengl.util.Animator.pause(Animator.java:335)
    [4]: com.jogamp.newt.opengl.GLWindow$GLLifecycleHook.pauseRenderingAction(GLWindow.java:617)
    [5]: jogamp.newt.WindowImpl$ReparentAction.run(WindowImpl.java:1280)
    [6]: com.jogamp.common.util.RunnableTask.run(RunnableTask.java:150)
    [7]: jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:372)
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Waited 5000ms for: <5e03035a, 17d139ee>[count 2, qsz 0, owner <main-AWTAnimator#00>] - <main-Display-.windows_nil-1-EDT-1>
        at jogamp.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:249)
        at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:163)
        at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:427)
        at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:2133)
        at jogamp.newt.WindowImpl.reparentWindow(WindowImpl.java:1609)
        at com.jogamp.newt.opengl.GLWindow.reparentWindow(GLWindow.java:470)
        at com.jogamp.newt.awt.NewtCanvasAWT.detachNewtChild(NewtCanvasAWT.java:967)
        at com.jogamp.newt.awt.NewtCanvasAWT.destroyImpl(NewtCanvasAWT.java:568)
        at com.jogamp.newt.awt.NewtCanvasAWT.removeNotify(NewtCanvasAWT.java:527)
        at com.jme3.system.jogl.JoglNewtCanvas$1.removeNotify(JoglNewtCanvas.java:65)
        at java.awt.Container.remove(Container.java:1199)
        at java.awt.Container.remove(Container.java:1257)
        at jme3test.awt.TestSafeCanvas.main(TestSafeCanvas.java:55)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.lang.RuntimeException: Waited 5000ms for: <5e03035a, 17d139ee>[count 2, qsz 0, owner <main-AWTAnimator#00>] - <main-Display-.windows_nil-1-EDT-1>
        at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
        at jogamp.newt.WindowImpl$ReparentAction.reparent(WindowImpl.java:1303)
        at jogamp.newt.WindowImpl$ReparentAction.run(WindowImpl.java:1282)
        at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:150)
        at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:372)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-Display-.windows_nil-1-EDT-1
        at jogamp.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:249)
        at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:163)
        at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:427)
        at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:2133)
        at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:1024)
        at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:1029)
        at com.jogamp.newt.opengl.GLWindow.setVisible(GLWindow.java:499)
        at com.jogamp.newt.awt.NewtCanvasAWT.attachNewtChild(NewtCanvasAWT.java:923)
        at com.jogamp.newt.awt.NewtCanvasAWT.validateComponent(NewtCanvasAWT.java:822)
        at com.jogamp.newt.awt.NewtCanvasAWT.paint(NewtCanvasAWT.java:597)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
        at sun.awt.RepaintArea.paint(RepaintArea.java:240)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:347)
        at java.awt.Component.dispatchEventImpl(Component.java:4948)
        at java.awt.Component.dispatchEvent(Component.java:4698)
        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: com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-Display-.windows_nil-1-EDT-1
        at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:680)
        at jogamp.opengl.GLAutoDrawableBase.defaultWindowResizedOp(GLAutoDrawableBase.java:259)
        at com.jogamp.newt.opengl.GLWindow.access$200(GLWindow.java:119)
        at com.jogamp.newt.opengl.GLWindow$2.windowResized(GLWindow.java:141)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:3682)
        at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:3616)
        at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1003)
        at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1015)
        at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:150)
        at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:372)
Caused by: java.lang.NullPointerException
        at com.jme3.app.Application.update(Application.java:690)
        at com.jme3.app.SimpleApplication.update(SimpleApplication.java:234)
        at com.jme3.system.jogl.JoglNewtCanvas.display(JoglNewtCanvas.java:147)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:442)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 11 more
Exception in thread "main-Display-.windows_nil-1-EDT-1" com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-Display-.windows_nil-1-EDT-1
        at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:680)
        at jogamp.opengl.GLAutoDrawableBase.defaultWindowRepaintOp(GLAutoDrawableBase.java:214)
        at com.jogamp.newt.opengl.GLWindow.access$100(GLWindow.java:119)
        at com.jogamp.newt.opengl.GLWindow$2.windowRepaint(GLWindow.java:136)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:3700)
        at jogamp.newt.WindowImpl.consumeEvent(WindowImpl.java:2673)
        at jogamp.newt.WindowImpl.doEvent(WindowImpl.java:2619)
        at jogamp.newt.WindowImpl.windowRepaint(WindowImpl.java:3979)
        at jogamp.newt.driver.windows.DisplayDriver.DispatchMessages0(Native Method)
        at jogamp.newt.driver.windows.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:120)
        at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:734)
        at jogamp.newt.DisplayImpl$7.run(DisplayImpl.java:657)
        at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:344)
Caused by: java.lang.NullPointerException
        at com.jme3.app.Application.update(Application.java:690)
        at com.jme3.app.SimpleApplication.update(SimpleApplication.java:234)
        at com.jme3.system.jogl.JoglNewtCanvas.display(JoglNewtCanvas.java:147)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:442)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 14 more
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
I've tried several of the jME tests with JoglNewtDisplay and it seems to work for the most part, but it crashed with the TestInstanceNode app:

Exception in thread "main-AWTAnimator#00" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: com.jogamp.opengl.GLException: Caught GLException: element vertex_buffer_object must be unbound to call this method on thread main-AWTAnimator#00
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:84)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:451)
        at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:198)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.jogamp.opengl.GLException: Caught GLException: element vertex_buffer_object must be unbound to call this method on thread main-AWTAnimator#00
        at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:680)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:77)
        ... 3 more
Caused by: com.jogamp.opengl.GLException: element vertex_buffer_object must be unbound to call this method
        at jogamp.opengl.gl4.GL4bcImpl.checkBufferObject(GL4bcImpl.java:39154)
        at jogamp.opengl.gl4.GL4bcImpl.checkElementVBOUnbound(GL4bcImpl.java:39189)
        at jogamp.opengl.gl4.GL4bcImpl.glDrawElementsInstanced(GL4bcImpl.java:5519)
        at com.jme3.renderer.jogl.JoglRenderer.drawTriangleList(JoglRenderer.java:2457)
        at com.jme3.renderer.jogl.JoglRenderer.renderMeshDefault(JoglRenderer.java:2628)
        at com.jme3.renderer.jogl.JoglRenderer.renderMesh(JoglRenderer.java:2675)
        at com.jme3.material.Material.renderMeshFromGeometry(Material.java:723)
        at com.jme3.material.Material.render(Material.java:1217)
        at com.jme3.renderer.RenderManager.renderGeometry(RenderManager.java:568)
        at com.jme3.renderer.queue.RenderQueue.renderGeometryList(RenderQueue.java:266)
        at com.jme3.renderer.queue.RenderQueue.renderQueue(RenderQueue.java:305)
        at com.jme3.renderer.RenderManager.renderViewPortQueues(RenderManager.java:803)
        at com.jme3.renderer.RenderManager.flushQueue(RenderManager.java:731)
        at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:1030)
        at com.jme3.renderer.RenderManager.render(RenderManager.java:1078)
        at com.jme3.app.SimpleApplication.update(SimpleApplication.java:260)
        at com.jme3.system.jogl.JoglNewtDisplay.display(JoglNewtDisplay.java:241)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:442)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 6 more
AL lib: (EE) alc_cleanup: 1 device not closed
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Xerxes Rånby
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

gouessej
Administrator
In reply to this post by Mr.Marbles
Which version of JOGL do you use? Which canvases/windows/displays are still broken?

Thank you for your help, it's really welcome.

Edit.: Your very last error will be fixed when I implement the unified renderer, a fix hasn't been ported to the old style renderer.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
In reply to this post by Xerxes Rånby
I just tested with this version (using TestSafeCanvas app). When the app is started using the startCanvas(true), the result is the same with the JoglContext.waitFor(true) method never returning. However, if the app is started with JoglContext.waitFor(false), the canvas is now shown but the app still throws an exception and it seems frozen. Here's the exception thrown:

Exception in thread "main" com.jogamp.opengl.GLException: Trying to register GLAnimatorControl com.jogamp.opengl.util.Animator[started false, animating false, paused false, drawable 1, totals[dt 0, frames 0, fps 0.0], modeBits 1, init'ed true, animThread null, exclCtxThread false(null)], where com.jogamp.opengl.util.Animator[started true, animating true, paused false, drawable 1, totals[dt 0, frames 35252451, fps 0.0], modeBits 1, init'ed true, animThread Thread[main-AWTAnimator#00,5,main], exclCtxThread false(null)] is already registered. Unregister first.
        at jogamp.opengl.GLDrawableHelper.setAnimator(GLDrawableHelper.java:784)
        at jogamp.opengl.GLAutoDrawableBase.setAnimator(GLAutoDrawableBase.java:583)
        at com.jogamp.opengl.util.AnimatorBase.add(AnimatorBase.java:212)
        at com.jme3.system.jogl.JoglNewtAbstractDisplay.startGLCanvas(JoglNewtAbstractDisplay.java:163)
        at com.jme3.system.jogl.JoglNewtCanvas.startGLCanvas(JoglNewtCanvas.java:117)
        at com.jme3.system.jogl.JoglNewtCanvas.onCanvasAdded(JoglNewtCanvas.java:101)
        at com.jme3.system.jogl.JoglNewtCanvas$1.addNotify(JoglNewtCanvas.java:59)
        at java.awt.Container.addImpl(Container.java:1114)
        at java.awt.Container.add(Container.java:410)
        at jme3test.awt.TestSafeCanvas.main(TestSafeCanvas.java:56)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Exception in thread "main-AWTAnimator#00" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-AWTAnimator#00
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:84)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:451)
        at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:198)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-AWTAnimator#00
        at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:77)
        ... 3 more
Caused by: java.lang.NullPointerException
        at com.jme3.app.Application.update(Application.java:690)
        at com.jme3.app.SimpleApplication.update(SimpleApplication.java:234)
        at com.jme3.system.jogl.JoglNewtCanvas.display(JoglNewtCanvas.java:147)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:442)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 6 more
Exception in thread "main-Display-.windows_nil-1-EDT-1" com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-Display-.windows_nil-1-EDT-1
        at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at jogamp.opengl.GLAutoDrawableBase.defaultWindowRepaintOp(GLAutoDrawableBase.java:214)
        at com.jogamp.newt.opengl.GLWindow.access$100(GLWindow.java:119)
        at com.jogamp.newt.opengl.GLWindow$2.windowRepaint(GLWindow.java:136)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4258)
        at jogamp.newt.WindowImpl.consumeEvent(WindowImpl.java:3229)
        at jogamp.newt.WindowImpl.doEvent(WindowImpl.java:3175)
        at jogamp.newt.WindowImpl.windowRepaint(WindowImpl.java:4546)
        at jogamp.newt.driver.windows.DisplayDriver.DispatchMessages0(Native Method)
        at jogamp.newt.driver.windows.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:120)
        at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:734)
        at jogamp.newt.DisplayImpl$7.run(DisplayImpl.java:657)
        at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:344)
Caused by: java.lang.NullPointerException
        at com.jme3.app.Application.update(Application.java:690)
        at com.jme3.app.SimpleApplication.update(SimpleApplication.java:234)
        at com.jme3.system.jogl.JoglNewtCanvas.display(JoglNewtCanvas.java:147)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:442)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 14 more
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
In reply to this post by gouessej
gouessej wrote
Which version of JOGL do you use? Which canvases/windows/displays are still broken?
Running with that latest JOGL build (but similar results with v2.3.1), JoglCanvas and JoglNewtCanvas are broken. I've done a couple random tests with the the JoglDisplay and JoglNewtDisplay and they seem to work, except with that TestInstanceNode app which produced the exception I posted earlier.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Xerxes Rånby
In reply to this post by Mr.Marbles
Please file a bugreport and include runtime version check and debug log
http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Runtime_Version_Check

you can create these logs that will tell us more about your system using:

wget http://jogamp.org/deployment/archive/master/gluegen_885-joal_611-jogl_1425-jocl_1074/archive/jogamp-all-platforms.7z
7z x jogamp-all-platforms.7z
cd jogamp-all-platforms
sh etc/test.sh
sh etc/test_dbg.sh



Cheers
Xerxes

Den 2015-08-28 16:42, Mr.Marbles [via jogamp] skrev:
I just tested with this version (using TestSafeCanvas app). When the app is started using the startCanvas(true), the result is the same with the JoglContext.waitFor(true) method never returning. However, if the app is started with JoglContext.waitFor(false), the canvas is now shown but the app still throws an exception and it seems frozen. Here's the exception thrown:

Exception in thread "main" com.jogamp.opengl.GLException: Trying to register GLAnimatorControl com.jogamp.opengl.util.Animator[started false, animating false, paused false, drawable 1, totals[dt 0, frames 0, fps 0.0], modeBits 1, init'ed true, animThread null, exclCtxThread false(null)], where com.jogamp.opengl.util.Animator[started true, animating true, paused false, drawable 1, totals[dt 0, frames 35252451, fps 0.0], modeBits 1, init'ed true, animThread Thread[main-AWTAnimator#00,5,main], exclCtxThread false(null)] is already registered. Unregister first.
        at jogamp.opengl.GLDrawableHelper.setAnimator(GLDrawableHelper.java:784)
        at jogamp.opengl.GLAutoDrawableBase.setAnimator(GLAutoDrawableBase.java:583)
        at com.jogamp.opengl.util.AnimatorBase.add(AnimatorBase.java:212)
        at com.jme3.system.jogl.JoglNewtAbstractDisplay.startGLCanvas(JoglNewtAbstractDisplay.java:163)
        at com.jme3.system.jogl.JoglNewtCanvas.startGLCanvas(JoglNewtCanvas.java:117)
        at com.jme3.system.jogl.JoglNewtCanvas.onCanvasAdded(JoglNewtCanvas.java:101)
        at com.jme3.system.jogl.JoglNewtCanvas$1.addNotify(JoglNewtCanvas.java:59)
        at java.awt.Container.addImpl(Container.java:1114)
        at java.awt.Container.add(Container.java:410)
        at jme3test.awt.TestSafeCanvas.main(TestSafeCanvas.java:56)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Exception in thread "main-AWTAnimator#00" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-AWTAnimator#00
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:84)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:451)
        at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:198)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-AWTAnimator#00
        at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:77)
        ... 3 more
Caused by: java.lang.NullPointerException
        at com.jme3.app.Application.update(Application.java:690)
        at com.jme3.app.SimpleApplication.update(SimpleApplication.java:234)
        at com.jme3.system.jogl.JoglNewtCanvas.display(JoglNewtCanvas.java:147)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:442)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 6 more
Exception in thread "main-Display-.windows_nil-1-EDT-1" com.jogamp.opengl.GLException: Caught NullPointerException: null on thread main-Display-.windows_nil-1-EDT-1
        at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at jogamp.opengl.GLAutoDrawableBase.defaultWindowRepaintOp(GLAutoDrawableBase.java:214)
        at com.jogamp.newt.opengl.GLWindow.access$100(GLWindow.java:119)
        at com.jogamp.newt.opengl.GLWindow$2.windowRepaint(GLWindow.java:136)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4258)
        at jogamp.newt.WindowImpl.consumeEvent(WindowImpl.java:3229)
        at jogamp.newt.WindowImpl.doEvent(WindowImpl.java:3175)
        at jogamp.newt.WindowImpl.windowRepaint(WindowImpl.java:4546)
        at jogamp.newt.driver.windows.DisplayDriver.DispatchMessages0(Native Method)
        at jogamp.newt.driver.windows.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:120)
        at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:734)
        at jogamp.newt.DisplayImpl$7.run(DisplayImpl.java:657)
        at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:344)
Caused by: java.lang.NullPointerException
        at com.jme3.app.Application.update(Application.java:690)
        at com.jme3.app.SimpleApplication.update(SimpleApplication.java:234)
        at com.jme3.system.jogl.JoglNewtCanvas.display(JoglNewtCanvas.java:147)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:442)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 14 more


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p4035163.html
To start a new topic under jogl, email [hidden email]
To unsubscribe from jogamp, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

gouessej
Administrator
In reply to this post by Mr.Marbles
It should work a bit better now. The canvases are still broken, I think that the system listener isn't set during the initialization, that's why you get a NullPointerException. I'm going to fix this bug as soon as possible.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Mr.Marbles
gouessej wrote
It should work a bit better now. The canvases are still broken, I think that the system listener isn't set during the initialization, that's why you get a NullPointerException. I'm going to fix this bug as soon as possible.
So you're working on this? No need for that bug report?
12345678 ... 11