-
-
Notifications
You must be signed in to change notification settings - Fork 431
IDE hangs during "Save As..." operation #922
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
Comments
I get this issue (IDE2.0.0-rc6) when creating a new sketch while another one is open. When saving the new one the IDE never returns to working state for the new sketch, the older sketch is still working ok. |
very useful information, it helps digging into it. |
Excellent job on the step. I could reproduce the bug on my slower Windows machine. I do not know if it's related, but when I try to open the dev tools in the windows with the spinner, I see such warnings in the logs. I do not know yet if it's related:
|
I am not able to reproduce this by following the procedure I described above using Arduino IDE 2.0.0-rc7. However, that result is meaningless because I am also no longer able to reproduce it using the 2.0.0-rc5-snapshot-f36df02 build I was using when I submitted this issue. This means something has changed in the environment the IDE runs in on my machine. The issue was always somewhat intermittent, but I was able to reproduce it >50% of the time, and have done so occasionally with later versions of the IDE, in addition to running into the problem incidentally. However, I have made quite a bit of effort to reproduce it without any luck so I am not in a good position for further investigation or testing. I do believe the issue still occurs in 2.0.0-rc7 because there is a report of it here: https://forum.arduino.cc/t/high-contrast-theia-theme-changed-and-other-issues/1001842/10
If anyone finds a procedure that can be followed to reliably reproduce the issue, please provide detailed instructions here. That would be very valuable in any efforts to fix this. UPDATE: additional reports of the hang occurring with recent versions:
|
@per1234 @kittaakos |
It appear the answer is yes. Please see my previous comment for everything I know about the current status. |
I had the same problem with rc7 on a w11 pc. I opened a sketch in a subfolder in a folder name Arduino in a folder named Files in The default windows Documents. After entering the new name of the sketch and Enter the program locked with the blue wait circle. The sketch was not saved in the subfolder as expected but in the Documents/Files/Arduino folder as set as default folder in Preferences. |
yesterday (rc7) I had an issue with IDE, I had 2 instances open with the same name, showing the directory name in tha Tab. |
Reproduceable steps under IDE 2.0.3
To eliminate the duplication tab under IDE 2.0.3
This maybe a quick & dirty method to eliminate the duplicate sketch tabs, unless someone can provide better solution. |
Describe the problem
The IDE hangs permanently during the "Save As..." operation under the following conditions:
To reproduce
❗ This exact shutdown method is required. The bug does not occur after shutting the IDE down via File > Close or the native window close control on the title bar (i.e., X or 🔴).
ⓘ e.g., if you originally had "Arduino Uno" ("Arduino AVR Boards" platform) selected, you could select "Arduino Nano 33 BLE" ("Arduino Mbed OS Nano Boards" platform).
❗ The issue is timing sensitive, so you will have a short time window if selecting a board from a lightweight platform such as "Arduino AVR Boards". The boards of any of the "Arduino Mbed OS ____ Boards" platforms are recommended as these provide a large window.
❗ This must be done while the IDE is still in the state where it shows something like "indexing 42/188" at the left side of the status bar.
🐛 The IDE hangs forever in the state where the window title is "index.html" and contains spinning dots:
Expected behavior
The sketch that was produced by the "Save As..." operation is loaded in the Arduino IDE.
Arduino IDE version
2.0.0-rc5-snapshot-f36df02 Date: 2022-03-17T10:22:00.589Z
Operating system
Windows
Operating system version
10
Additional context
The first version I can reproduce this fault with is e6b9d4e. I can not reproduce the fault with 69ac1f4.
The "Save As..." process stopped working correctly at 112153f (#829), so it is possible that the bug was introduced somewhere between 69ac1f4 and e6b9d4e but was not visible due to #829
I see the following output printed on the command line after I do a File > Quit:
I see the same output printed multiple times after the fault occurs.
I suspect it is related to #657
I was only able to reproduce the fault by saving during the language server "indexing" operation triggered by the board selection. The fault did not occur for me when saving during subsequent indexing operation triggered by editing the sketch.
I was not able to reproduce the issue with the "Arduino > Language: Log" setting enabled.
Originally reported at:
Some of the user reports did not match the specific procedure for reproduction I described above, and I have also encountered it occasionally under other conditions.
I believe that the fault can be triggered in other ways, but I wanted to provide a procedure that consistently reproduces the issue and this was the one I happened to discover.
Issue checklist
The text was updated successfully, but these errors were encountered: