Login  Register

Re: Jogl/Jogamp on Java 9

Posted by Douglas Lyon on Dec 06, 2017; 12:07pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038383.html


Thank you for your update;...Here is what we get...
btw, we need to turn on the debug option, I will show you what I mean, below.

Looks like:
jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLGraphicsConfigurationFactory
Is at the heart of the problem here.

Regards,
 - Doug
P.S.
We need a shell more like this:
#! /bin/sh                                                                      
if [ $# -eq 0 ] ; then
    echo 'Please supply just the filename.jar as the argument.'
    exit 1
fi
java  -Dnativewindow.debug.GraphicsConfiguration -jar "$\
(cd "$(dirname "$1")"; pwd)/$(basename "$1")"


P.P.S.
C  [libosxapp.dylib+0x20cc]  -[NSApplicationAWT sendEvent:]+0x179
-Dnativewindow.debug.GraphicsConfiguration
is a good option for helping
--------> Before Debug ------->
runjava.sh StillCube.jar
3D [dev] 1.6.0-pre12-daily-experimental daily

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (file:/Users/lyon/attachments/foo/foo/StillCube.jar) to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of javax.media.j3d.JoglPipeline
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000010e94b0cc, pid=41296, tid=775
#
# JRE version: Java(TM) SE Runtime Environment (9.0+11) (build 9.0.1+11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.1+11, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libosxapp.dylib+0x20cc]  -[NSApplicationAWT sendEvent:]+0x179
#
# Core dump will be written. Default location: /cores/core.41296 (max size 4096 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/lyon/attachments/foo/foo/hs_err_pid41296.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
runjava.sh: line 6: 41296 Abort trap: 6           java -jar "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"

------------> After Debug <------------
3D [dev] 1.6.0-pre12-daily-experimental daily

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (file:/Users/lyon/attachments/foo/foo/StillCube.jar) to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of javax.media.j3d.JoglPipeline
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
main - Info: GraphicsConfigurationFactory.<init>
main - GraphicsConfigurationFactory.initSingleton()
GraphicsConfigurationFactory.registerFactory() put DeviceCapsType[com.jogamp.nativewindow.AbstractGraphicsDevice, com.jogamp.nativewindow.CapabilitiesImmutable] -> jogamp.nativewindow.DefaultGraphicsConfigurationFactoryImpl@ca263c2, overridding: null
GraphicsConfigurationFactory.registerFactory() put DeviceCapsType[com.jogamp.nativewindow.macosx.MacOSXGraphicsDevice, com.jogamp.opengl.GLCapabilitiesImmutable] -> jogamp.opengl.macosx.cgl.MacOSXCGLGraphicsConfigurationFactory@7a4ccb53, overridding: null
GraphicsConfigurationFactory.registerFactory() put DeviceCapsType[com.jogamp.nativewindow.awt.AWTGraphicsDevice, com.jogamp.opengl.GLCapabilitiesImmutable] -> jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLGraphicsConfigurationFactory@45b9a632, overridding: null
    [2]: com.jogamp.nativewindow.GraphicsConfigurationFactory.getFactory(GraphicsConfigurationFactory.java:231)
    [3]: javax.media.j3d.JoglPipeline.createAwtGraphicsConfiguration(JoglPipeline.java:8634)
    [4]: javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8367)
    [5]: javax.media.j3d.Renderer.doWork(Renderer.java:496)
    [6]: javax.media.j3d.J3dThread.run(J3dThread.java:271)
GraphicsConfigurationFactory.getFactory: com.jogamp.nativewindow.awt.AWTGraphicsDevice, com.jogamp.opengl.GLCapabilities
Factory #0: DeviceCapsType[com.jogamp.nativewindow.awt.AWTGraphicsDevice, com.jogamp.opengl.GLCapabilitiesImmutable] -> jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLGraphicsConfigurationFactory@45b9a632
Factory #1: DeviceCapsType[com.jogamp.nativewindow.macosx.MacOSXGraphicsDevice, com.jogamp.opengl.GLCapabilitiesImmutable] -> jogamp.opengl.macosx.cgl.MacOSXCGLGraphicsConfigurationFactory@7a4ccb53
Factory #2: DeviceCapsType[com.jogamp.nativewindow.AbstractGraphicsDevice, com.jogamp.nativewindow.CapabilitiesImmutable] -> jogamp.nativewindow.DefaultGraphicsConfigurationFactoryImpl@ca263c2
GraphicsConfigurationFactory.getFactory() deviceTypes: [class com.jogamp.nativewindow.awt.AWTGraphicsDevice, class com.jogamp.nativewindow.DefaultGraphicsDevice, interface com.jogamp.nativewindow.AbstractGraphicsDevice]
GraphicsConfigurationFactory.getFactory() capabilitiesTypes: [interface com.jogamp.opengl.GLCapabilitiesImmutable, interface com.jogamp.nativewindow.CapabilitiesImmutable]
GraphicsConfigurationFactory.getFactory() found DeviceCapsType[com.jogamp.nativewindow.awt.AWTGraphicsDevice, com.jogamp.opengl.GLCapabilitiesImmutable] -> jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLGraphicsConfigurationFactory@45b9a632
MacOSXAWTCGLGraphicsConfigurationFactory: got AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 1317015680, unitID 0, awtDevice sun.awt.CGraphicsDevice@6387804e, handle 0x0], idx 0]
MacOSXAWTCGLGraphicsConfigurationFactory: made DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0xa76184f]], idx 0]
    [2]: com.jogamp.nativewindow.GraphicsConfigurationFactory.getFactory(GraphicsConfigurationFactory.java:231)
    [3]: com.jogamp.nativewindow.GraphicsConfigurationFactory.getFactory(GraphicsConfigurationFactory.java:193)
    [4]: jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(MacOSXAWTCGLGraphicsConfigurationFactory.java:107)
    [5]: com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424)
    [6]: javax.media.j3d.JoglPipeline.createAwtGraphicsConfiguration(JoglPipeline.java:8635)
    [7]: javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8367)
    [8]: javax.media.j3d.Renderer.doWork(Renderer.java:496)
    [9]: javax.media.j3d.J3dThread.run(J3dThread.java:271)
GraphicsConfigurationFactory.getFactory: com.jogamp.nativewindow.macosx.MacOSXGraphicsDevice, com.jogamp.opengl.GLCapabilities
Factory #0: DeviceCapsType[com.jogamp.nativewindow.awt.AWTGraphicsDevice, com.jogamp.opengl.GLCapabilitiesImmutable] -> jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLGraphicsConfigurationFactory@45b9a632
Factory #1: DeviceCapsType[com.jogamp.nativewindow.macosx.MacOSXGraphicsDevice, com.jogamp.opengl.GLCapabilitiesImmutable] -> jogamp.opengl.macosx.cgl.MacOSXCGLGraphicsConfigurationFactory@7a4ccb53
Factory #2: DeviceCapsType[com.jogamp.nativewindow.AbstractGraphicsDevice, com.jogamp.nativewindow.CapabilitiesImmutable] -> jogamp.nativewindow.DefaultGraphicsConfigurationFactoryImpl@ca263c2
GraphicsConfigurationFactory.getFactory() deviceTypes: [class com.jogamp.nativewindow.macosx.MacOSXGraphicsDevice, class com.jogamp.nativewindow.DefaultGraphicsDevice, interface com.jogamp.nativewindow.AbstractGraphicsDevice]
GraphicsConfigurationFactory.getFactory() capabilitiesTypes: [interface com.jogamp.opengl.GLCapabilitiesImmutable, interface com.jogamp.nativewindow.CapabilitiesImmutable]
GraphicsConfigurationFactory.getFactory() found DeviceCapsType[com.jogamp.nativewindow.macosx.MacOSXGraphicsDevice, com.jogamp.opengl.GLCapabilitiesImmutable] -> jogamp.opengl.macosx.cgl.MacOSXCGLGraphicsConfigurationFactory@7a4ccb53
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000134a7d0cc, pid=41337, tid=775
#
# JRE version: Java(TM) SE Runtime Environment (9.0+11) (build 9.0.1+11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.1+11, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libosxapp.dylib+0x20cc]  -[NSApplicationAWT sendEvent:]+0x179
#
# Core dump will be written. Default location: /cores/core.41337 (max size 4096 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/lyon/attachments/foo/foo/hs_err_pid41337.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#