Closed frauzufall closed 4 years ago
This is happening with OpenJDK 1.8.0_212
, but not with older versions present on my machine.
Something similar is happening with the same JDK when launching commands like this:
ImageJ ij = new ImageJ();
ij.launch();
ij.command().run(SwingColorWidgetDemo.class, true);
.. resulting in an unresponsive application and this stacktrace:
"SciJava-7b94089b-Thread-0" #13 prio=5 os_prio=0 tid=0x00007fafc8eba000 nid=0xf8d5 waiting on condition [0x00007fafb0104000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x0000000720d7b458> (a java.util.concurrent.FutureTask)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429)
at java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.GNOME.Accessibility.AtkUtil.invokeInSwing(AtkUtil.java:68)
at org.GNOME.Accessibility.AtkObject.hashCode(AtkObject.java:234)
at org.GNOME.Accessibility.AtkWrapper.emitSignal(Native Method)
at org.GNOME.Accessibility.AtkWrapper$5.propertyChange(AtkWrapper.java:545)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
at javax.accessibility.AccessibleContext.firePropertyChange(AccessibleContext.java:768)
at javax.swing.JScrollPane$AccessibleJScrollPane.stateChanged(JScrollPane.java:1506)
at javax.swing.JViewport.fireStateChanged(JViewport.java:1369)
at javax.swing.JViewport.reshape(JViewport.java:839)
at java.awt.Component.setBounds(Component.java:2261)
at java.awt.Component.setBounds(Component.java:2405)
at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:890)
at java.awt.Container.layout(Container.java:1513)
at java.awt.Container.doLayout(Container.java:1502)
at java.awt.Container.validateTree(Container.java:1698)
at java.awt.Container.validateTree(Container.java:1707)
at java.awt.Container.validateTree(Container.java:1707)
at java.awt.Container.validateTree(Container.java:1707)
at java.awt.Container.validateTree(Container.java:1707)
at java.awt.Container.validateTree(Container.java:1707)
at java.awt.Container.validate(Container.java:1633)
- locked <0x00000005cde005a8> (a java.awt.Component$AWTTreeLock)
at java.awt.Container.validateUnconditionally(Container.java:1670)
- locked <0x00000005cde005a8> (a java.awt.Component$AWTTreeLock)
at java.awt.Window.pack(Window.java:818)
at org.scijava.ui.swing.SwingDialog.show(SwingDialog.java:259)
at org.scijava.ui.swing.widget.SwingInputHarvester.harvestInputs(SwingInputHarvester.java:86)
at org.scijava.widget.InputHarvester.harvest(InputHarvester.java:70)
at org.scijava.ui.AbstractInputHarvesterPlugin.process(AbstractInputHarvesterPlugin.java:74)
at org.scijava.module.ModuleRunner.preProcess(ModuleRunner.java:102)
at org.scijava.module.ModuleRunner.run(ModuleRunner.java:154)
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 org.scijava.thread.DefaultThreadService$$Lambda$102/142103421.call(Unknown Source)
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)
Pinging @hinerm - we talked about this in the past during standup. Would be great to verify if more people have this issue with newer Java versions.
@elevans Do you also see this problem on your Ubuntu 20.04 box?
@frauzufall Could you please test with JBRSDK8 and JBRSDK11? We are on the cusp of updating the Fiji bundles to package one of those (still deciding which). It would be awesome if one of those resolved this issue as well.
@ctrueden welcome back :) just to clarify, the Java version shipped with Fiji works fine in both cases. Will test the other versions your mentioned.
Yes, both JBRSDK8 and JBRSDK11 don't have these issues. I will therefore close this one, because it does not affect the currently shipped SDK and also not the one we will use next.
Fiji freezes when calling the ImageJ updater on my Linux machine.
Here is the stack trace: