mobie / mobie-viewer-fiji

BSD 2-Clause "Simplified" License
29 stars 12 forks source link

Open Project Expert Mode, mixed sources #691

Open martinschorb opened 2 years ago

martinschorb commented 2 years ago

Hi,

I have the following scenario:

I try to load it like this: Screenshot 2022-04-27 at 09 41 51

and MoBIE crashes while loading N5 sources:

Error opening: org.embl.mobie.viewer.source.ImageSource@3664fa35
Error opening: org.embl.mobie.viewer.source.ImageSource@22078742
Error opening: org.embl.mobie.viewer.source.ImageSource@6237f021
Error opening: org.embl.mobie.viewer.source.ImageSource@39c1d25b
Error opening: org.embl.mobie.viewer.source.ImageSource@11be8a6
Error opening: org.embl.mobie.viewer.source.ImageSource@3339b92b
Error opening: org.embl.mobie.viewer.source.ImageSource@763b3128
Error opening: org.embl.mobie.viewer.source.ImageSource@41df66be
Error opening: org.embl.mobie.viewer.source.ImageSource@68fe0d86
Error opening: org.embl.mobie.viewer.source.ImageSource@5928f92e
Error opening: org.embl.mobie.viewer.source.ImageSource@170c2b2f
Error opening: org.embl.mobie.viewer.source.ImageSource@67513388
Error opening: org.embl.mobie.viewer.source.ImageSource@be383d6
Error opening: org.embl.mobie.viewer.source.ImageSource@689bfad3
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
Error opening: org.embl.mobie.viewer.source.ImageSource@68cf9b51
Error opening: org.embl.mobie.viewer.source.ImageSource@3b62fdf1
Error opening: org.embl.mobie.viewer.source.ImageSource@7d216d8c
Error opening: org.embl.mobie.viewer.source.ImageSource@6a10239c
Error opening: org.embl.mobie.viewer.source.ImageSource@5fedd8b1
Error opening: org.embl.mobie.viewer.source.ImageSource@16bdaa11
Error opening: org.embl.mobie.viewer.source.ImageSource@25819fd4
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
Exception in thread "Thread-8" java.lang.NullPointerException
    at org.embl.mobie.viewer.bdv.view.ImageSliceView.adaptConverter(ImageSliceView.java:91)
    at org.embl.mobie.viewer.bdv.view.ImageSliceView.show(ImageSliceView.java:58)
    at org.embl.mobie.viewer.bdv.view.ImageSliceView.<init>(ImageSliceView.java:43)
    at org.embl.mobie.viewer.view.ViewManager.showImageDisplay(ViewManager.java:382)
    at org.embl.mobie.viewer.view.ViewManager.showSourceDisplay(ViewManager.java:348)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:268)
    at org.embl.mobie.viewer.ui.UserInterfaceHelpers.lambda$null$7(UserInterfaceHelpers.java:493)
    at java.lang.Thread.run(Thread.java:748)

When I load it with BdvN5S3

I get:

Error opening: org.embl.mobie.viewer.source.ImageSource@637cce33
java.util.concurrent.ExecutionException: java.lang.RuntimeException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.embl.mobie.viewer.ThreadUtils.waitUntilFinished(ThreadUtils.java:41)
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverters(MoBIE.java:246)
    at org.embl.mobie.viewer.view.ViewManager.openAndTransformSources(ViewManager.java:283)
    at org.embl.mobie.viewer.view.ViewManager.show(ViewManager.java:262)
    at org.embl.mobie.viewer.MoBIE.openDataset(MoBIE.java:294)
    at org.embl.mobie.viewer.MoBIE.openDataset(MoBIE.java:184)
    at org.embl.mobie.viewer.MoBIE.<init>(MoBIE.java:90)
    at org.embl.mobie.viewer.command.OpenMoBIEProjectAdvancedCommand.run(OpenMoBIEProjectAdvancedCommand.java:45)
    at org.scijava.command.CommandModule.run(CommandModule.java:196)
    at org.scijava.module.ModuleRunner.run(ModuleRunner.java:163)
    at org.scijava.module.ModuleRunner.call(ModuleRunner.java:124)
    at org.scijava.module.ModuleRunner.call(ModuleRunner.java:63)
    at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:225)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException
    at org.embl.mobie.viewer.MoBIE.openSourceAndConverter(MoBIE.java:384)
    at org.embl.mobie.viewer.MoBIE.lambda$openSourceAndConverters$0(MoBIE.java:242)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    ... 4 more

when trying to load an Ome-Zarr

martinschorb commented 2 years ago

I wonder if this https://github.com/mobie/mobie-viewer-fiji/pull/690 can be used in the expert mode as well.

tischi commented 2 years ago

Yes, makes sense!

@KateMoreva would you have time looking into this?

KateMoreva commented 2 years ago

@tischi, I cant look into it after merge of https://github.com/mobie/mobie-viewer-fiji/pull/680 because of

Exception in thread "main" com.google.gson.JsonParseException: cannot serialize org.embl.mobie.viewer.bdv.MobieBdvSupplier; did you forget to register a subtype?
    at sc.fiji.persist.RuntimeTypeAdapterFactory$1.write(RuntimeTypeAdapterFactory.java:275)
    at com.google.gson.TypeAdapter$1.write(TypeAdapter.java:191)
constantinpape commented 2 years ago

Hi @KateMoreva,

680 is merged already and in develop. Do you also need it to be in main, or what do you mean by

I cant look into it after merge of #680

?

tischi commented 2 years ago

cannot serialize org.embl.mobie.viewer.bdv.MobieBdvSupplier

This is some weird bug, happens to me all the time. A couple of mvn clean compile on the command line and/or Project rebuild in IntelliJ will fix it.

KateMoreva commented 2 years ago

I mean that before

I wonder if this #690 can be used in the expert mode as well.

Yes it is not applicable because you defined the ImageDataFormat as OmeZarrS3. I think we should think about rewriting of image format selection part.

tischi commented 2 years ago

I think we should think about rewriting of image format selection part.

You mean in the Command UI? If so, that's also what I think. Would you (or @martinschorb) have some ideas how the UI should look like?

Or maybe we simply don't expose this in the expert mode and auto-determined it such as we do in the basic mode?

martinschorb commented 2 years ago

If multiple formats are possible, we don't need a selector. I don't even think we need a selector file system ↔️ s3 when a github repo is chosen for the image data. We should only make the following use case possible:

this is what I would like to use to debug views locally without needing to push every little change to gh.

KateMoreva commented 2 years ago

I think we should think about rewriting of image format selection part.

You mean in the Command UI? If so, that's also what I think. Would you (or @martinschorb) have some ideas how the UI should look like?

Or maybe we simply don't expose this in the expert mode and auto-determined it such as we do in the basic mode?

Yes, I mean the logic behind it. Right now we take the format that the user specify and after that we await for only this format for other datasets. Thus it fails for other formats.