I ask because there is a known bug that occurs intermittently under these conditions:
opened 07:56AM - 20 Jul 23 UTC
topic: code
type: imperfection
topic: theia
### Describe the problem
Users reported that IDE2 could become non-functional… after waking the OS from sleep. It has happened on macOS and Windows ([eclipse-theia/theia#12707](https://github.com/eclipse-theia/theia/issues/12707)). I tried various [`pmset`](https://ss64.com/osx/pmset.html) options but could not reproduce the defect. Searching boards, libraries, and compile+upload do not work.
![CleanShot 2023-07-19 at 06 50 33@2x](https://github.com/arduino/arduino-ide/assets/1405703/6b842104-91f4-4cf4-96b3-972d4b6ad8c1)
### To reproduce
Sleep the OS for enough time (I do not know how much) while IDE2 is running, wake the OS, IDE2 does not work. Even quitting the app does not do anything.
### Expected behavior
After the OS wake, IDE2 works.
### Arduino IDE version
2.1.1
### Operating system
macOS
### Operating system version
13.4.1
### Additional context
Related IDE2 change: https://github.com/arduino/arduino-ide/commit/30136b0ef208a48042ecb1e18407ef525b772252
Upstream issue: https://github.com/eclipse-theia/theia/issues/12707
#### Additional Reports
- https://github.com/arduino/arduino-ide/issues/2297
- https://github.com/arduino/arduino-ide/issues/2331
- https://forum.arduino.cc/t/ide-2-1-0-freezes-during-compile-after-a-period-of-sleep/1138808
- https://forum.arduino.cc/t/ide-2-1-0-freezes-during-compile-after-a-period-of-sleep/1138808/4
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My report contains all necessary details
I also experience this sometimes. It doesn't occur consistently because I very often put my machines to sleep while the IDE is running and most of the time when I wake the computer the IDE is still fully functional.
1 Like