SimpleVTK Java example crashing on MacOS

Hi,

I ran the SimpleVTK example and encountered either crashes or warnings depending on the Java version. Are there existing workarounds to let VTK display java panels on MacOS + Java 14?

Not sure this may help, but I tried several combinations of MacOS+JDK with JOGL 2.3.2 and reported results here.

MacOS Sierra (10.12.6) + AdoptOpenJDK14

The Swing application crashes before displaying with the following messages in console

JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
2021-08-26 11:09:33.052 java[37695:26727862] 	Cocoa AWT: Not running on AppKit thread 0 when expected. (
	0   libawt_lwawt.dylib                  0x000000013d3cd577 -[AWTWindow windowDidResignKey:] + 39
	1   CoreFoundation                      0x000000010ba6b54c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
	2   CoreFoundation                      0x000000010ba6b44b _CFXRegistrationPost + 427
	3   CoreFoundation                      0x000000010ba6b1b2 ___CFXNotificationPost_block_invoke + 50
	4   CoreFoundation                      0x000000010ba29782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
	5   CoreFoundation                      0x000000010ba2876b _CFXNotificationPost + 667
	6   Foundation                          0x000000010c10b677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	7   AppKit                              0x000000010caa888e -[NSWindow resignKeyWindow] + 818
	8   AppKit                              0x000000010c9de3f1 _NXSendWindowNotification + 248
	9   AppKit                              0x000000010c9ddc46 -[NSWindow _changeKeyAndMainLimitedOK:] + 846
	10  AppKit                              0x000000010ca9ac59 -[NSWindow _makeKeyRegardlessOfVisibility] + 102
	11  AppKit                              0x000000010c9e0d48 NSPerformVisuallyAtomicChange + 147
	12  AppKit                              0x000000010ca9ab97 -[NSWindow makeKeyAndOrderFront:] + 91
	13  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8c630 _ZN20vtkCocoaRenderWindow13CreateAWindowEv + 2496
	14  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8dafb _ZN20vtkCocoaRenderWindow10InitializeEv + 59
	15  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d7b531 _ZN21vtkOpenGLRenderWindow5StartEv + 49
	16  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8da1f _ZN20vtkCocoaRenderWindow5StartEv + 31
	17  libvtkRenderingCore-9.0.1.dylib     0x000000013dee9231 _ZN15vtkRenderWindow6RenderEv + 801
	18  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d8061f _ZN21vtkOpenGLRenderWindow6RenderEv + 31
	19  libvtkRenderingCoreJava.jnilib      0x00000001451fad31 Java_vtk_vtkRenderWindow_Render_113 + 49
	20  ???                                 0x0000000120e02630 0x0 + 4846528048
	21  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	22  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	23  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	24  ???                                 0x0000000120dfcef3 0x0 + 4846505715
)
2021-08-26 11:09:33.053 java[37695:26727862] 	Please file a bug report at http://bugreport.java.com/bugreport with this message and a reproducible test case.
2021-08-26 11:09:33.054 java[37695:26727862] 	Cocoa AWT: Not running on AppKit thread 0 when expected. (
	0   libawt_lwawt.dylib                  0x000000013d3cd613 -[AWTWindow windowDidResignMain:] + 39
	1   CoreFoundation                      0x000000010ba6b54c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
	2   CoreFoundation                      0x000000010ba6b44b _CFXRegistrationPost + 427
	3   CoreFoundation                      0x000000010ba6b1b2 ___CFXNotificationPost_block_invoke + 50
	4   CoreFoundation                      0x000000010ba29782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
	5   CoreFoundation                      0x000000010ba2876b _CFXNotificationPost + 667
	6   Foundation                          0x000000010c10b677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	7   AppKit                              0x000000010c9ddc94 -[NSWindow _changeKeyAndMainLimitedOK:] + 924
	8   AppKit                              0x000000010ca9ac59 -[NSWindow _makeKeyRegardlessOfVisibility] + 102
	9   AppKit                              0x000000010c9e0d48 NSPerformVisuallyAtomicChange + 147
	10  AppKit                              0x000000010ca9ab97 -[NSWindow makeKeyAndOrderFront:] + 91
	11  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8c630 _ZN20vtkCocoaRenderWindow13CreateAWindowEv + 2496
	12  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8dafb _ZN20vtkCocoaRenderWindow10InitializeEv + 59
	13  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d7b531 _ZN21vtkOpenGLRenderWindow5StartEv + 49
	14  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8da1f _ZN20vtkCocoaRenderWindow5StartEv + 31
	15  libvtkRenderingCore-9.0.1.dylib     0x000000013dee9231 _ZN15vtkRenderWindow6RenderEv + 801
	16  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d8061f _ZN21vtkOpenGLRenderWindow6RenderEv + 31
	17  libvtkRenderingCoreJava.jnilib      0x00000001451fad31 Java_vtk_vtkRenderWindow_Render_113 + 49
	18  ???                                 0x0000000120e02630 0x0 + 4846528048
	19  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	20  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	21  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	22  ???                                 0x0000000120dfcef3 0x0 + 4846505715
)
2021-08-26 11:09:33.054 java[37695:26727862] 	Please file a bug report at http://bugreport.java.com/bugreport with this message and a reproducible test case.
2021-08-26 11:09:33.055 java[37695:26727862] 	Cocoa AWT: Not running on AppKit thread 0 when expected. (
	0   libawt_lwawt.dylib                  0x000000013d3cd6b3 -[AWTWindow deactivateWindow] + 43
	1   CoreFoundation                      0x000000010ba6b54c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
	2   CoreFoundation                      0x000000010ba6b44b _CFXRegistrationPost + 427
	3   CoreFoundation                      0x000000010ba6b1b2 ___CFXNotificationPost_block_invoke + 50
	4   CoreFoundation                      0x000000010ba29782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
	5   CoreFoundation                      0x000000010ba2876b _CFXNotificationPost + 667
	6   Foundation                          0x000000010c10b677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	7   AppKit                              0x000000010c9ddc94 -[NSWindow _changeKeyAndMainLimitedOK:] + 924
	8   AppKit                              0x000000010ca9ac59 -[NSWindow _makeKeyRegardlessOfVisibility] + 102
	9   AppKit                              0x000000010c9e0d48 NSPerformVisuallyAtomicChange + 147
	10  AppKit                              0x000000010ca9ab97 -[NSWindow makeKeyAndOrderFront:] + 91
	11  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8c630 _ZN20vtkCocoaRenderWindow13CreateAWindowEv + 2496
	12  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8dafb _ZN20vtkCocoaRenderWindow10InitializeEv + 59
	13  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d7b531 _ZN21vtkOpenGLRenderWindow5StartEv + 49
	14  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8da1f _ZN20vtkCocoaRenderWindow5StartEv + 31
	15  libvtkRenderingCore-9.0.1.dylib     0x000000013dee9231 _ZN15vtkRenderWindow6RenderEv + 801
	16  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d8061f _ZN21vtkOpenGLRenderWindow6RenderEv + 31
	17  libvtkRenderingCoreJava.jnilib      0x00000001451fad31 Java_vtk_vtkRenderWindow_Render_113 + 49
	18  ???                                 0x0000000120e02630 0x0 + 4846528048
	19  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	20  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	21  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	22  ???                                 0x0000000120dfcef3 0x0 + 4846505715
)
2021-08-26 11:09:33.055 java[37695:26727862] 	Please file a bug report at http://bugreport.java.com/bugreport with this message and a reproducible test case.
2021-08-26 11:09:33.057 java[37695:26727862] 	Cocoa AWT: Not running on AppKit thread 0 when expected. (
	0   libawt_lwawt.dylib                  0x000000013d3cc4b2 -[AWTWindow orderChildWindows:] + 52
	1   CoreFoundation                      0x000000010ba6b54c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
	2   CoreFoundation                      0x000000010ba6b44b _CFXRegistrationPost + 427
	3   CoreFoundation                      0x000000010ba6b1b2 ___CFXNotificationPost_block_invoke + 50
	4   CoreFoundation                      0x000000010ba29782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
	5   CoreFoundation                      0x000000010ba2876b _CFXNotificationPost + 667
	6   Foundation                          0x000000010c10b677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	7   AppKit                              0x000000010c9ddc94 -[NSWindow _changeKeyAndMainLimitedOK:] + 924
	8   AppKit                              0x000000010ca9ac59 -[NSWindow _makeKeyRegardlessOfVisibility] + 102
	9   AppKit                              0x000000010c9e0d48 NSPerformVisuallyAtomicChange + 147
	10  AppKit                              0x000000010ca9ab97 -[NSWindow makeKeyAndOrderFront:] + 91
	11  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8c630 _ZN20vtkCocoaRenderWindow13CreateAWindowEv + 2496
	12  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8dafb _ZN20vtkCocoaRenderWindow10InitializeEv + 59
	13  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d7b531 _ZN21vtkOpenGLRenderWindow5StartEv + 49
	14  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8da1f _ZN20vtkCocoaRenderWindow5StartEv + 31
	15  libvtkRenderingCore-9.0.1.dylib     0x000000013dee9231 _ZN15vtkRenderWindow6RenderEv + 801
	16  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d8061f _ZN21vtkOpenGLRenderWindow6RenderEv + 31
	17  libvtkRenderingCoreJava.jnilib      0x00000001451fad31 Java_vtk_vtkRenderWindow_Render_113 + 49
	18  ???                                 0x0000000120e02630 0x0 + 4846528048
	19  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	20  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	21  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	22  ???                                 0x0000000120dfcef3 0x0 + 4846505715
)
2021-08-26 11:09:33.057 java[37695:26727862] 	Please file a bug report at http://bugreport.java.com/bugreport with this message and a reproducible test case.
2021-08-26 11:09:33.058 java[37695:26727862] 	Cocoa AWT: Not running on AppKit thread 0 when expected. (
	0   libosxapp.dylib                     0x000000013d46dff1 +[ThreadUtilities getJNIEnv] + 37
	1   libawt_lwawt.dylib                  0x000000013d3cc2b3 -[AWTWindow isBlocked] + 37
	2   libawt_lwawt.dylib                  0x000000013d3cc503 -[AWTWindow orderChildWindows:] + 133
	3   CoreFoundation                      0x000000010ba6b54c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
	4   CoreFoundation                      0x000000010ba6b44b _CFXRegistrationPost + 427
	5   CoreFoundation                      0x000000010ba6b1b2 ___CFXNotificationPost_block_invoke + 50
	6   CoreFoundation                      0x000000010ba29782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
	7   CoreFoundation                      0x000000010ba2876b _CFXNotificationPost + 667
	8   Foundation                          0x000000010c10b677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	9   AppKit                              0x000000010c9ddc94 -[NSWindow _changeKeyAndMainLimitedOK:] + 924
	10  AppKit                              0x000000010ca9ac59 -[NSWindow _makeKeyRegardlessOfVisibility] + 102
	11  AppKit                              0x000000010c9e0d48 NSPerformVisuallyAtomicChange + 147
	12  AppKit                              0x000000010ca9ab97 -[NSWindow makeKeyAndOrderFront:] + 91
	13  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8c630 _ZN20vtkCocoaRenderWindow13CreateAWindowEv + 2496
	14  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8dafb _ZN20vtkCocoaRenderWindow10InitializeEv + 59
	15  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d7b531 _ZN21vtkOpenGLRenderWindow5StartEv + 49
	16  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8da1f _ZN20vtkCocoaRenderWindow5StartEv + 31
	17  libvtkRenderingCore-9.0.1.dylib     0x000000013dee9231 _ZN15vtkRenderWindow6RenderEv + 801
	18  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d8061f _ZN21vtkOpenGLRenderWindow6RenderEv + 31
	19  libvtkRenderingCoreJava.jnilib      0x00000001451fad31 Java_vtk_vtkRenderWindow_Render_113 + 49
	20  ???                                 0x0000000120e02630 0x0 + 4846528048
	21  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	22  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	23  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	24  ???                                 0x0000000120dfcef3 0x0 + 4846505715
)
2021-08-26 11:09:33.058 java[37695:26727862] 	Please file a bug report at http://bugreport.java.com/bugreport with this message and a reproducible test case.
2021-08-26 11:09:33.062 java[37695:26727862] *** Terminating app due to uncaught exception 'JavaNativeException', reason: 'Internal JNF Error: failed calling Throwable.toString()'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010bade57b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000010b4391da objc_exception_throw + 48
	2   CoreFoundation                      0x000000010bade4c9 -[NSException raise] + 9
	3   JavaNativeFoundation                0x000000013d324372 JNFCallBooleanMethod + 211
	4   libawt_lwawt.dylib                  0x000000013d3cc2ef -[AWTWindow isBlocked] + 97
	5   libawt_lwawt.dylib                  0x000000013d3cc503 -[AWTWindow orderChildWindows:] + 133
	6   CoreFoundation                      0x000000010ba6b54c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
	7   CoreFoundation                      0x000000010ba6b44b _CFXRegistrationPost + 427
	8   CoreFoundation                      0x000000010ba6b1b2 ___CFXNotificationPost_block_invoke + 50
	9   CoreFoundation                      0x000000010ba29782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
	10  CoreFoundation                      0x000000010ba2876b _CFXNotificationPost + 667
	11  Foundation                          0x000000010c10b677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	12  AppKit                              0x000000010c9ddc94 -[NSWindow _changeKeyAndMainLimitedOK:] + 924
	13  AppKit                              0x000000010ca9ac59 -[NSWindow _makeKeyRegardlessOfVisibility] + 102
	14  AppKit                              0x000000010c9e0d48 NSPerformVisuallyAtomicChange + 147
	15  AppKit                              0x000000010ca9ab97 -[NSWindow makeKeyAndOrderFront:] + 91
	16  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8c630 _ZN20vtkCocoaRenderWindow13CreateAWindowEv + 2496
	17  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8dafb _ZN20vtkCocoaRenderWindow10InitializeEv + 59
	18  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d7b531 _ZN21vtkOpenGLRenderWindow5StartEv + 49
	19  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145b8da1f _ZN20vtkCocoaRenderWindow5StartEv + 31
	20  libvtkRenderingCore-9.0.1.dylib     0x000000013dee9231 _ZN15vtkRenderWindow6RenderEv + 801
	21  libvtkRenderingOpenGL2-9.0.1.dylib  0x0000000145d8061f _ZN21vtkOpenGLRenderWindow6RenderEv + 31
	22  libvtkRenderingCoreJava.jnilib      0x00000001451fad31 Java_vtk_vtkRenderWindow_Render_113 + 49
	23  ???                                 0x0000000120e02630 0x0 + 4846528048
	24  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	25  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	26  ???                                 0x0000000120dfcef3 0x0 + 4846505715
	27  ???                                 0x0000000120dfcef3 0x0 + 4846505715
)
libc++abi.dylib: terminating with uncaught exception of type JNFException

MacOS Sierra (10.12.6) + JDK 1.8.0_40

The Swing application displays but there are lot of warning in console

JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
2021-08-26 10:59:41.474 java[37616:26711260] Cocoa AWT: Not running on AppKit thread 0 when expected. (
	0   libawt_lwawt.dylib                  0x0000000139a46c8f -[AWTWindow windowDidResignKey:] + 40
	1   CoreFoundation                      0x000000010fdc054c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
	2   CoreFoundation                      0x000000010fdc044b _CFXRegistrationPost + 427
	3   CoreFoundation                      0x000000010fdc01b2 ___CFXNotificationPost_block_invoke + 50
	4   CoreFoundation                      0x000000010fd7e782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
	5   CoreFoundation                      0x000000010fd7d76b _CFXNotificationPost + 667
	6   Foundation                          0x0000000110461677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
	7   AppKit                              0x0000000110d3988e -[NSWindow resignKeyWindow] + 818
	8   AppKit                              0x0000000110c6f3f1 _NXSendWindowNotification + 248
	9   AppKit                              0x0000000110c6ec46 -[NSWindow _changeKeyAndMainLimitedOK:] + 846
	10  AppKit                              0x0000000110d2bc59 -[NSWindow _makeKeyRegardlessOfVisibility] + 102
	11  AppKit                              0x0000000110c71d48 NSPerformVisuallyAtomicChange + 147
	12  AppKit                              0x0000000110d2bb97 -[NSWindow makeKeyAndOrderFront:] + 91
	13  libvtkRenderingOpenGL2-9.0.1.dylib  0x00000001497e2630 _ZN20vtkCocoaRenderWindow13CreateAWindowEv + 2496
	14  libvtkRenderingOpenGL2-9.0.1.dylib  0x00000001497e3afb _ZN20vtkCocoaRenderWindow10InitializeEv + 59
	15  libvtkRenderingOpenGL2-9.0.1.dylib  0x00000001499d1531 _ZN21vtkOpenGLRenderWindow5StartEv + 49
	16  libvtkRenderingOpenGL2-9.0.1.dylib  0x00000001497e3a1f _ZN20vtkCocoaRenderWindow5StartEv + 31
	17  libvtkRenderingCore-9.0.1.dylib     0x0000000141be2231 _ZN15vtkRenderWindow6RenderEv + 801
	18  libvtkRenderingOpenGL2-9.0.1.dylib  0x00000001499d661f _ZN21vtkOpenGLRenderWindow6RenderEv + 31
	19  libvtkRenderingCoreJava.jnilib      0x0000000148e61d31 Java_vtk_vtkRenderWindow_Render_113 + 49
	20  ???                                 0x000000011cf7e954 0x0 + 4780976468
	21  ???                                 0x000000011cf70c4d 0x0 + 4780919885
)
2021-08-26 10:59:41.474 java[37616:26711260] 	Please file a bug report at http://java.net/jira/browse/MACOSX_PORT with this message and a reproducible test case.
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
2021-08-26 10:59:47.648 (   8.903s) [AppKit Thread   ]     vtkOpenGLState.cxx:140   WARN| Error in cache state for GL_SCISSOR_BOX
2021-08-26 10:59:47.654 (   8.910s) [AppKit Thread   ]     vtkOpenGLState.cxx:265   WARN| at stack loc
0x1453a4754 : vtksys::SystemInformationImplementation::GetProgramStack(int, int) [(libvtksys-9.0.1.dylib) ???:-1]
0x1453a4150 : vtksys::SystemInformation::GetProgramStack(int, int) [(libvtksys-9.0.1.dylib) ???:-1]
0x149a122bd : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.0.1.dylib) ???:-1]
0x149a152c9 : vtkOpenGLState::vtkBindFramebuffer(unsigned int, vtkOpenGLFramebufferObject*) [(libvtkRenderingOpenGL2-9.0.1.dylib) ???:-1]
0x1498b4e7d : vtkOpenGLFramebufferObject::Bind(unsigned int) [(libvtkRenderingOpenGL2-9.0.1.dylib) ???:-1]
0x1498b078a : vtkOpenGLFramebufferObject::Bind() [(libvtkRenderingOpenGL2-9.0.1.dylib) ???:-1]
0x1499d1618 : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.0.1.dylib) ???:-1]
0x1497e3a1f : vtkCocoaRenderWindow::Start() [(libvtkRenderingOpenGL2-9.0.1.dylib) ???:-1]
0x141be2231 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.0.1.dylib) ???:-1]
0x1499d661f : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.0.1.dylib) ???:-1]
0x1497fa112 : -[vtkCocoaGLView drawRect:] [(libvtkRenderingOpenGL2-9.0.1.dylib) ???:-1]
0x110c96f99 : -[NSView _drawRect:clip:] [(AppKit) ???:-1]
0x110ce6f2f : -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] [(AppKit) ???:-1]
0x110ce739a : -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] [(AppKit) ???:-1]
0x110c94ad2 : -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] [(AppKit) ???:-1]
0x110c942af : -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] [(AppKit) ???:-1]
0x110c926d8 : -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] [(AppKit) ???:-1]
0x110c8dfca : -[NSView displayIfNeeded] [(AppKit) ???:-1]
0x110c13f84 : -[NSThemeFrame handleSetFrameCommonRedisplay] [(AppKit) ???:-1]
0x110c0b5c6 : -[NSWindow _setFrameCommon:display:stashSize:] [(AppKit) ???:-1]
0x110c0a791 : -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] [(AppKit) ???:-1]
0x110c0a6ac : -[NSWindow setFrame:display:] [(AppKit) ???:-1]
0x1115fb829 : -[NSWindow(NSWindowResizing) _resizeSetFrame:withEvent:] [(AppKit) ???:-1]
0x110e9e56a : -[NSWindow(NSWindowResizing) _resizeWithEvent:] [(AppKit) ???:-1]
0x1113801d6 : -[NSTitledFrame attemptResizeWithEvent:] [(AppKit) ???:-1]
0x110d98a0c : -[NSThemeFrame handleMouseDown:] [(AppKit) ???:-1]
0x110d98bb3 : -[NSThemeFrame mouseDown:] [(AppKit) ???:-1]
0x11143824f : -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] [(AppKit) ???:-1]
0x111434a6c : -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] [(AppKit) ???:-1]
0x111433f0a : -[NSWindow(NSEventRouting) sendEvent:] [(AppKit) ???:-1]
0x1112b8681 : -[NSApplication(NSEvent) sendEvent:] [(AppKit) ???:-1]
0x139af33ac : -[NSApplicationAWT sendEvent:] [(libosxapp.dylib) ???:-1]
0x110b33427 : -[NSApplication run] [(AppKit) ???:-1]
0x139af323e : +[NSApplicationAWT runAWTLoopWithApp:] [(libosxapp.dylib) ???:-1]
0x139a8163b : -[AWTStarter starter:] [(libawt_lwawt.dylib) ???:-1]
0x1104cc52a : __NSThreadPerformPerform [(Foundation) ???:-1]
0x10fdca3e1 : __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ [(CoreFoundation) ???:-1]
0x10fdab65c : __CFRunLoopDoSources0 [(CoreFoundation) ???:-1]
0x10fdaab46 : __CFRunLoopRun [(CoreFoundation) ???:-1]
0x10fdaa544 : CFRunLoopRunSpecific [(CoreFoundation) ???:-1]
0x10f374480 : CreateExecutionEnvironment [(java) ???:-1]
0x10f37020c : JLI_Launch [(java) ???:-1]
0x10f3764dd : main [(java) ???:-1]
0x10f36fa64 : start [(java) ???:-1]

We have an issue on that topic https://gitlab.kitware.com/vtk/vtk/-/issues/17831

Thanks Sébastien!

I recently built a non official maven package of JOGL 2.4 version (RC was built in early 2021). It is a bit hacky (see https://github.com/jzy3d/jogl-maven-deployer) but I was able to run it on a Jzy3D project. I noticed few regressions on Newt and Swing canvases, but AWT was working fine.

If you tell me where I can find JOGL jars in VTK Java SDK, I may give a try and see if the example better works with the recent JOGL 2.4 (2.4 is said to be retrocompatible with 2.3.2 that you probably use).

VTK does not hold those JOGL jars. We just point to then when building (I think) via CMake variables. But at the time I was using maven to fetch the jogl jar to run my VTK/java app/demo.

Thanks. I mainly wonder about the runtime case. The java project I am working with does not explicitly include JOGL in its dependencies. It only include vtk.jar, the one that is generated while building VTK 9.0.3 with CMake. I wondered if it loads JOGL from my {home}/.m2/repository folder but renaming org/jogamp to org/jogamp_ make it still able to start (and then crash :slight_smile:)

I’m not sure.