Repository: mobie/mobie-viewer-fiji (language: python)

Issue:
Crashing when showing images in 3D
Checking the `[ ] V` checkbox for the `raw` image in the PlatyBrowser gives me:

```
3D [dev] 1.6.0-scijava-2-pre11-daily-experimental daily

2022-05-15 20:18:57.129 java[36998:1808969] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
2022-05-15 20:18:57.129 java[36998:1808969] *** 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                      0x00007fff49aad035 __exceptionPreprocess + 256
	1   libobjc.A.dylib                     0x00007fff74225a17 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff49ac6b95 -[NSException raise] + 9
	3   AppKit                              0x00007fff4706b5ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
	4   AppKit                              0x00007fff470689f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	5   AppKit                              0x00007fff4706842a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	6   libnativewindow_macosx.jnilib       0x000000012a3e23fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	7   ???                                 0x000000010beb1407 0x0 + 4494922759
)
libc++abi.dylib: terminating with uncaught exception of type NSException
```

Is it just me?





Discussion / hints:
Probably related when running `TestRemoteZebrafish` I get:

```
3D [dev] 1.6.0-scijava-2-pre11-daily-experimental daily

2022-05-15 21:57:58.052 java[38832:1851213] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
	0   AppKit                              0x00007fff4706b607 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
	1   AppKit                              0x00007fff470689f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	2   AppKit                              0x00007fff4706842a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	3   libnativewindow_macosx.jnilib       0x000000013b20a3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	4   ???                                 0x0000000114400667 0x0 + 4634707559
)
```
Within Fiji it seems to work. 
I asked on the forum: https://forum.image.sc/t/icy-crashes-when-clicking-3d-view-macos-catalina/40628/20

Fix patch:
diff --git a/pom.xml b/pom.xml
index 39ba93f00..f46824030 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,6 +202,48 @@
             <artifactId>trove</artifactId>
             <version>1.0.2</version>
         </dependency>
+		<dependency>
+			<groupId>org.jogamp.jogl</groupId>
+			<artifactId>jogl-all</artifactId>
+			<version>2.4.0-rc-20200307</version>
+			<scope>system</scope>
+			<systemPath>${project.basedir}/src/main/resources/jogl-all.jar</systemPath>
+		</dependency>
+		<dependency>
+			<groupId>org.jogamp.jogl</groupId>
+			<artifactId>jogl-all-natives-macosx-universal</artifactId>
+			<version>2.4.0-rc-20200307</version>
+			<scope>system</scope>
+			<systemPath>${project.basedir}/src/main/resources/jogl-all-natives-macosx-universal.jar</systemPath>
+		</dependency>
+		<dependency>
+			<groupId>org.jogamp.jogl</groupId>
+			<artifactId>jogl-all-natives-windows-amd64</artifactId>
+			<version>2.4.0-rc-20200307</version>
+			<scope>system</scope>
+			<systemPath>${project.basedir}/src/main/resources/jogl-all-natives-windows-amd64.jar</systemPath>
+		</dependency>
+		<dependency>
+			<groupId>org.jogamp.gluegen</groupId>
+			<artifactId>gluegen-rt</artifactId>
+			<version>2.4.0-rc-20200307</version>
+			<scope>system</scope>
+			<systemPath>${project.basedir}/src/main/resources/gluegen-rt.jar</systemPath>
+		</dependency>
+		<dependency>
+			<groupId>org.jogamp.gluegen</groupId>
+			<artifactId>gluegen-rt-natives-macosx-universal</artifactId>
+			<version>2.4.0-rc-20200307</version>
+			<scope>system</scope>
+			<systemPath>${project.basedir}/src/main/resources/gluegen-rt-natives-macosx-universal.jar</systemPath>
+		</dependency>
+		<dependency>
+			<groupId>org.jogamp.gluegen</groupId>
+			<artifactId>gluegen-rt-natives-windows-amd64</artifactId>
+			<version>2.4.0-rc-20200307</version>
+			<scope>system</scope>
+			<systemPath>${project.basedir}/src/main/resources/gluegen-rt-natives-windows-amd64.jar</systemPath>
+		</dependency>
 		<dependency>
 			<groupId>org.junit.jupiter</groupId>
 			<artifactId>junit-jupiter-api</artifactId>
diff --git a/src/main/resources/gluegen-rt-natives-windows-amd64.jar b/src/main/resources/gluegen-rt-natives-windows-amd64.jar
new file mode 100644
index 000000000..2d1fe1411
Binary files /dev/null and b/src/main/resources/gluegen-rt-natives-windows-amd64.jar differ
diff --git a/src/main/resources/jogl-all-natives-windows-amd64.jar b/src/main/resources/jogl-all-natives-windows-amd64.jar
new file mode 100644
index 000000000..438425036
Binary files /dev/null and b/src/main/resources/jogl-all-natives-windows-amd64.jar differ


Test patch:
diff --git a/src/test/java/tests/TestCovidIF.java b/src/test/java/tests/TestCovidIF.java
index 06d5ca841..54f0f122f 100644
--- a/src/test/java/tests/TestCovidIF.java
+++ b/src/test/java/tests/TestCovidIF.java
@@ -6,11 +6,11 @@ public class TestCovidIF
 {
 	public static void main( String[] args ) throws IOException
 	{
-		new TestCovidIF().testDefaultView();
+		new TestCovidIF().test();
 	}
 
 	//@Test
-	public void testDefaultView() throws IOException
+	public void test() throws IOException
 	{
 		// TODO: Bug loading the multi-scales
 //		final ImageJ imageJ = new ImageJ();
diff --git a/src/test/java/tests/TestOpenAdvancedProject.java b/src/test/java/tests/TestOpenAdvancedProject.java
index 5edd695fa..a11feb1eb 100644
--- a/src/test/java/tests/TestOpenAdvancedProject.java
+++ b/src/test/java/tests/TestOpenAdvancedProject.java
@@ -15,28 +15,6 @@ public static void main(final String... args)
 		final ImageJ ij = new ImageJ();
 		ij.ui().showUI();
 
-		/**
-		 * Project location (github or local): "https://github.com/mobie/platybrowser-datasets"
-		 * Project branch (for github): "master"
-		 * Load image data from: choice: local
-		 * Image data root path (for local): "/g/arendt/EM_6dpf_segmentation/platy-browser-data"
-		 * Table data location (github or local): "https://github.com/vzinche/platybrowser-backend"
-		 * Table data branch (for github):"bookmarks"
-		 */
-
-		// try {
-		// 	new MoBIE(
-		// 			"https://github.com/mobie/platybrowser-datasets",
-		// 			MoBIESettings.settings()
-		// 					.gitProjectBranch( "master" )
-		// 					.imageDataStorageModality( MoBIESettings.ImageDataStorageModality.FileSystem )
-		// 					.imageDataLocation( "/g/arendt/EM_6dpf_segmentation/platy-browser-data" )
-		// 					.tableDataLocation( "https://github.com/vzinche/platybrowser-backend" )
-		// 					.gitTablesBranch( "bookmarks" ) );
-		// } catch (IOException e) {
-		// 	e.printStackTrace();
-		// }
-
 		/**
 		 * Project location (github or local): "https://github.com/mobie/platybrowser-datasets"
 		 * Project branch (for github): "xray"