I'm to create an offscreen image using the 2.4.0 release. This works on JDK 8 and 11, but now it crashes on Java 17 (build 17.0.7+8-LTS-224).
Here is part of the VM crash data:
# # A fatal error has been detected by the Java Runtime Environment: # # SIGILL (0x4) at pc=0x00007ff809c719a7, pid=68243, tid=79875 # # JRE version: Java(TM) SE Runtime Environment (17.0.7+8) (build 17.0.7+8-LTS-224) # Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.7+8-LTS-224, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64) # Problematic frame: # C [AppKit+0x36d9a7] -[NSOpenGLContext setView:]+0xbd # --------------- T H R E A D --------------- Current thread (0x00007fe1a036dc00): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=79875, stack(0x0000700011191000,0x0000700011291000)] Stack: [0x0000700011191000,0x0000700011291000], sp=0x000070001128ef80, free space=1015k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [AppKit+0x36d9a7] -[NSOpenGLContext setView:]+0xbd C [libjogl_desktop.dylib+0x18124] createContext+0x184 C [libjogl_desktop.dylib+0x7f575] Java_jogamp_opengl_macosx_cgl_CGL_createContext0__JJZJZLjava_lang_Object_2I+0x95 j jogamp.opengl.macosx.cgl.CGL.createContext0(JJZJZLjava/lang/Object;I)J+0 j jogamp.opengl.macosx.cgl.CGL.createContext(JJZJZLjava/nio/IntBuffer;)J+50 j jogamp.opengl.macosx.cgl.MacOSXCGLContext$NSOpenGLImpl.create(JIII)J+1183 j jogamp.opengl.macosx.cgl.MacOSXCGLContext.createContextARBImpl(JZIII)J+123 j jogamp.opengl.GLContextImpl.createContextARBVersions(JZIIIII[I[I)J+205 j jogamp.opengl.GLContextImpl.createContextARBMapVersionsAvailable(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;IIZ)Z+286 j jogamp.opengl.GLContextImpl.mapGLVersions(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Z+712 j jogamp.opengl.GLContextImpl.createContextARB(JZ)J+197 j jogamp.opengl.macosx.cgl.MacOSXCGLContext.createImpl(J)Z+423 j jogamp.opengl.GLContextImpl.makeCurrentWithinLock(I)I+364 j jogamp.opengl.GLContextImpl.makeCurrent(Z)I+816 j jogamp.opengl.GLContextImpl.makeCurrent()I+6 j jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory.getOrCreateSharedResourceImpl(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Ljogamp/opengl/macosx/cgl/MacOSXCGLDrawableFactory$SharedResource;+314 j jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory.getOrCreateSharedResourceImpl(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Ljogamp/opengl/SharedResourceRunner$Resource;+6 j jogamp.opengl.GLDrawableFactoryImpl.getOrCreateSharedResource(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Ljogamp/opengl/SharedResourceRunner$Resource;+22 j jogamp.opengl.GLDrawableFactoryImpl.createSharedResourceImpl(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Z+6 j com.jogamp.opengl.GLDrawableFactory.createSharedResource(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Z+6 j com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Z+380 j com.jogamp.opengl.GLProfile.initProfilesForDevice(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Z+58 j com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices()V+1278 j com.jogamp.opengl.GLProfile.access$000()V+4 j com.jogamp.opengl.GLProfile$1.run()Ljava/lang/Object;+107 J 18089 c1 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object; java.base@17.0.7 (9 bytes) @ 0x000000011568601c [0x0000000115685fc0+0x000000000000005c] j com.jogamp.opengl.GLProfile.initSingleton()V+126 j com.jogamp.opengl.GLProfile.getProfileMap(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;Z)Ljava/util/HashMap;+4 j com.jogamp.opengl.GLProfile.get(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;Ljava/lang/String;)Lcom/jogamp/opengl/GLProfile;+50 j com.jogamp.opengl.GLProfile.get(Ljava/lang/String;)Lcom/jogamp/opengl/GLProfile;+8 j ab.j3d.awt.view.jogl.JOGLOffscreenView. I'm sorry to say that our software is closed-source, so I can not share all source code. You can see an old video of a cabinet configurator built using our software on YouTube. I hope someone has some suggestions on how to diagnose or even solve this. Your help is greatly appreciated. Regards. Peer |
Administrator
|
SIGILL on .. hmm.
- MacOS: You 13.2.1, my max is 13.1 arm64 - (what is your architecture?) OK: Java 8, 11 Crash: you Java 17 (build 17.0.7+8-LTS-224), Max tested is OpenJDK Temurin 17.0.5+8 (to myself: earmark for upping it). See https://jogamp.org/cgit/gluegen.git/tree/doc/JogAmpMacOSVersions.md Please attach JogAmp runtime version log <https://jogamp.org/wiki/index.php?title=Jogamp_Versioning_and_Releases#Runtime_Version_Check> Please also test with - https://jogamp.org/deployment/archive/rc/v2.5.0-rc-20230507/ - Maven 2.5.0-rc-20230507 @ http://www.jogamp.org/deployment/maven/ - Maybe also OpenJDK Temurin 17.0.5+8, to exclude this delta as the root cause |
Administrator
|
Latest 'Temurin' is 17.0.7+7 for all platforms (?!)
<https://adoptium.net/temurin/releases/> Hence attaching the JogAmp version log as mentioned is always a good start .. Here: Which 'Java' version are you using in detail and which architecture. |
Hey Sven,
Thanks so much. That version log solved the mystery! Apparently I had a cached 2.4.0 RC still cached in Maven (2.4-b936-20200202), which caused the issue. So, I can now confirm both 2.4-b952-20230201 and 2.5-b1522-20230507 work fine now on MacOs 13.2.1 X86_64 using JDK 17.0.7. I also tested 17.0.5 and all results are consistent as far as I can see. Thanks again and keep up the good work. Regards, Peer 2.5-b1522-20230507 Log file 2.4-b952-20230201 Log file 2.4-b936-20200202 Log file (crashed) |
Administrator
|
Great to read that our build-in version info is capable to resolve these 'cache mix-up' cases as well.
I glanced over your 'earlier' application video and I like it. Please send me an email if we can add it to our JOGL showcase page. <https://lundia.nl/> <https://www.youtube.com/watch?v=xFam4U-UhSw> If your company or another party/company is well funded w/ a budget (I know), please don't hesitate to consider funding my work and/or contracting for JogAmp or anything else. <https://jogamp.org/wiki/index.php/Maintainer_and_Contacts#Commercial_Support> Thank you. |
Free forum by Nabble | Edit this page |