Java desktop application freezes with openjdk 8u252
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-8 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When launching the java desktop application Fiji (https:/
When the UI is frozen, the jconsole indicates that the event dispatch thread is blocked:
```
Name: AWT-EventQueue-1
State: BLOCKED on java.awt.
Total blocked: 10 Total waited: 61
Stack trace:
java.awt.
java.awt.
java.awt.
java.awt.
java.awt.
java.awt.
java.security.
java.security.
java.security.
java.awt.
java.awt.
java.security.
java.security.
java.awt.
org.GNOME.
java.awt.
java.awt.
java.awt.
java.awt.
java.awt.
java.awt.
```
When launching the Fiji java desktop application with openjdk java 8u172, no such problem occurs ever.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: openjdk-8-jdk 8u252-b09-1ubuntu1
ProcVersionSign
Uname: Linux 5.4.0-31-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri May 22 22:41:17 2020
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-06-24 (1428 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: openjdk-8
UpgradeStatus: Upgraded to focal on 2020-05-20 (2 days ago)
Update: if run the Fiji launcher ```Image-linux64 --system``` (runs Fiji with java 8u252) and don't click anywhere until the Fiji window is open and ready, then the UI is responsive as expected (i.e. all is good).
But if I click away to another application while Fiji is launching, then the UI, when ready, is frozen.
A workaround is then to either be patient and not click anywhere, or to use the 8u172 java bundled with Fiji, which doesn't have this UI freezing problem. (Merely run Fiji like ```ImageJ- linux64` ``, assuming the Fiji.app/ java/linux- amd64/ folder is populated with java jdk 8u172).