Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE might get into a non-functional state after OS sleep/awake cycle #2148

Open
3 tasks done
kittaakos opened this issue Jul 20, 2023 · 5 comments
Open
3 tasks done
Labels
topic: code Related to content of the project itself topic: theia Related to the Theia IDE framework type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

kittaakos commented Jul 20, 2023

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). I tried various pmset 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

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: 30136b0
Upstream issue: eclipse-theia/theia#12707

Additional Reports

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: theia Related to the Theia IDE framework labels Jul 20, 2023
@php4fan
Copy link

php4fan commented Dec 24, 2023

It's not only after waking up from sleep. It also happens randomly out of the blue while I'm using the IDE.

@php4fan
Copy link

php4fan commented Jan 4, 2024

The most painful part of this issue is having to kill all the arduino processes when this happens.

The window's close button does nothing, and there are like a dozen processes related to Arduino. Some of them, when killed, will cause a few other to die in cascade, but (a) they are not easy to identify, and (b) there doesn't seem to be a single one of them that will kill all of the others. You always need to kill a few one by one. And killall arduino doesn't accomplish anything.

Any workaround for easily killing all arduino processes when this happens, would alleviate the pain greatly while we wait for a full fix.

@brennanMKE
Copy link

This was happening sporadically a few weeks ago but now it is happening after just being open for a few minutes.

@SciElec-JS
Copy link

I still have this issue every day. Status along the bottom still shows "Offline" (cannot connect to the backend), IDE fails to save projects, cannot close itself, has to be killed with task manager. I locked and left my computer at the end of the day yesterday, and when I woke it up and logged back in this morning, the Arduino backend process appears to have died again.
I'm running Windows 10 22H2, Arduino IDE 2.3.0, Arduino-Pico 3.7.0, Board selected: Raspberry Pi Pico, port selected: COM8 (USB-CDC virtual COM port exposed by the Pico), the Pico was not physically connected at the time.

If anyone working this issue needs logs or something, let me know and I'll do my best to get them.

@spilz87

This comment was marked as duplicate.

@arduino arduino locked as too heated and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: code Related to content of the project itself topic: theia Related to the Theia IDE framework type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants