Login  Register

Re: Java3D+Javafx doesn't work on Java 14

Posted by runiter on Jun 10, 2020; 3:46am
URL: https://forum.jogamp.org/Java3D-Javafx-doesn-t-work-on-Java-14-tp4040679p4040691.html

I had some progress.
When debugging I noticed that an exception was thrown but not shown due to flag "nativewindow.debug.JAWT" being off.
After enabling this flag I could see another Java 14 modularization problem so I had to add this JVM parameter:

--add-opens java.desktop/sun.awt=jogamp.fat

(Why are critical exceptions like this not shown by default?)

So now I got to a JOGL error which is this:

Bug 1004[TGMapped true]: Init AppContext @ <init> on thread J3D-Renderer-1 0x430926c5: tg Java3D 0x3183ccb3 -> appCtx [ main null 0x0 -> this sun.awt.AppContext[threadGroup=system] 0x5f47d044 ]
JAWTWindow[0x52fbae0].invalidate @ Thread J3D-Renderer-1 - visible[isShowing false],
    ** THIS 0x2823c63d: QueryCanvas[visible true, showing false, valid false, displayable true, 0/0 0x0]
    ** THREAD J3D-Renderer-1
JAWTWindow[0x52fbae0].ctor @ Thread J3D-Renderer-1
JAWTUtil.getJAWT(tryOffscreenLayer false, tryOnscreen true)
JAWTWindow[0x52fbae0].attach @ Thread AWT-EventQueue-0: visible[isShowing true],
    ** THIS 0x2823c63d: QueryCanvas[visible true, showing true, valid true, displayable true, 0/0 1x1]
    ** THREAD AWT-EventQueue-0
JAWTWindow.updateBounds: [ 0 / 0  0 x 0 ] -> [ 0 / 0  1 x 1 ]
JAWTWindow: surface change 0xffffffff8d010af8 -> 0xffffffffaa01117c
JAWTWindow[0x52fbae0].destroy @ Thread J3D-Renderer-1
JAWTWindow[0x52fbae0].invalidate @ Thread J3D-Renderer-1 - visible[isShowing true],
    ** THIS 0x2823c63d: QueryCanvas[visible true, showing true, valid true, displayable true, 0/0 1x1]
    ** THREAD J3D-Renderer-1
JAWTWindow[0x52fbae0].detach @ Thread AWT-EventQueue-0: visible[isShowing true],
    ** THIS 0x2823c63d: QueryCanvas[visible true, showing true, valid true, displayable true, 0/0 1x1]
    ** THREAD AWT-EventQueue-0

Any idea why JOGL runs fine alone but Java3D give this error?

Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D