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
I met the same problem that Java apps with GUI (such as burp and arduino
IDE)froze quickly when I updated from 16.04 to 18.04. I have tried openJDK and
Oracle, 8, 11 and 17. And this bug can be reproduced on both ubuntu 18.04 and
20.04, both kernel 4.5 and 5.7.
Java programs with CLI only are