question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Native] JOGL crash on MacOS Catalina (10.15.3) with Oracle JDK 14.0.1

See original GitHub issue

MacOS Catalina (10.15.3) with Oracle JDK 14.0.1

I can not run jzy3d tutorials and encounter a JVM crash as described below in red.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/Users/Martin/.m2/repository/org/jogamp/gluegen/gluegen-rt/2.3.2/gluegen-rt-2.3.2.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
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
2020-10-04 17:30:18.312 java[85893:3850683] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0   CoreFoundation                      0x00007fff38b258ab __exceptionPreprocess + 250
1   libobjc.A.dylib                     0x00007fff6eddf805 objc_exception_throw + 48
2   CoreFoundation                      0x00007fff38b4e30c -[NSException raise] + 9
3   AppKit                              0x00007fff35c9c228 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310
4   AppKit                              0x00007fff35c83bc5 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
5   AppKit                              0x00007fff35c83637 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
6   libnativewindow_macosx.jnilib       0x000000012b7c93fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
7   ???                                 0x000000010d16e6b0 0x0 + 4514571952
8   ???                                 0x000000010d1689d0 0x0 + 4514548176
)
libc++abi.dylib: terminating with uncaught exception of type NSException

MacOS Catalina (10.15.3) with JDK 8

I can run tutorials but there is an exception in console that does not prevent the program to run (however I noted a slow start).

2020-10-04 17:26:42.803 java[85830:3846992] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
0   AppKit                              0x00007fff35c9c265 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 371
1   AppKit                              0x00007fff35c83bc5 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
2   AppKit                              0x00007fff35c83637 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
3   libnativewindow_macosx.jnilib       0x00000001267503fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
4   ???                                 0x00000001085d49d4 0x0 + 4435298772
)

MacOS Sierra (10.12.6) with Oracle JDK 14.0.1

I can run tutorials with a warning about the reflective access to the classloader.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/Users/martin/.m2/repository/org/jogamp/gluegen/gluegen-rt/2.3.2/gluegen-rt-2.3.2.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
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

MacOS Sierra (10.12.6) with JDK 8

I can run tutorials without warning.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jzy3dcommented, Oct 4, 2021

I tried a little more playing with JOGL profiles and still did not succeed to avoid the crash with JDK 14 + OSX 10.15. At least I have been advised about how to get profile working correctly.

However I switched to JOGL 2.4 (still in RC) and I have been able to avoid this crash, so maybe it is good option for you too @jourdain. I did this with a non official release but you can see how I did it here.

1reaction
jzy3dcommented, Sep 28, 2021

@jourdain I tried the GLProfile.getMaximum(true) you suggested but the framework still crashes the JVM.

There might be some hope with https://openjdk.java.net/jeps/412 which offers a new way in Java to access native resource. I will investigate a bit more in the coming weeks and tell you if that may be a solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Native] JOGL crash on MacOS Catalina (10.15.3) with Oracle ...
MacOS Catalina (10.15.3) with Oracle JDK 14.0.1. I can not run jzy3d tutorials and encounter a JVM crash as described below in red....
Read more >
jogl - GLCanvas() crash on MacOS 10.15 - jogamp
I am trying to utilize JOGL for a project at work. I am using Java SE 14, the most recent version of JOGL,...
Read more >
Consolidated JDK 11 Release Notes - Java - Oracle
Fixes a regression in the C2 JIT compiler which caused the Java Runtime to crash unpredictably. See JDK-8292260. Java™ SE Development Kit 11.0.16...
Read more >
Can't run OpenJDK macOS Catalina "Can't verify it's not a Virus"
After that open a terminal and run java again (e.g. java -version ). A new Dialog should appear with the possibility to trust...
Read more >
IDE crashes on MacOS 10.15 Catalina
jdk " file. Examples for PyCharm, RubyMine, PhpStorm and WebStorm products (2019.1.x version): echo /Library/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found