From now, I solved it when running Arduino IDE. The process is as following:
1. Uninstall the IDE
2. Delete  `Arduino/` and `.arduino15/` in `~`.
3. Reinstall.
And it never freezes again.
I guess maybe it is due to the fact that I changed my java environment without 
updating the preferences of the app.
Taking Arduino IDE as an example, there is preferences.txt in `.arduino15/`. 
When simply installing a new IDE or uninstalling the original one, the file 
isn't changed automatically.
```bash
$ cat preferences.txt | grep java
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
```

My current enviroment is 
Ubuntu 20.04.3 LTS, 5.7.0-050700rc7-generic, java version "17.0.1" 2021-10-19 
LTS.

So maybe the bug only affects openjdk 8u252.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1880246

Title:
  Java desktop application freezes with openjdk 8u252

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1880246/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to