-
-
Notifications
You must be signed in to change notification settings - Fork 431
"Downloading index" process stalls #1330
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
Hi @KurtE. Thanks for your report. I'm going to ask you to provide the command line output from the IDE. It is possible this will provide some clue about the cause of the problem (I just tried doing a compilation for the Teensy MicroMod board with the same version of the IDE and was not able to reproduce it). I'll provide instructions:
Please let me know if you have any questions or problems while following those instructions. |
|
Verified that the same think is happening on a Windows 10 PC machine. However, it seems to hang on library_index.json.sig: I only have this for boards files: |
Thanks @KurtE. Unfortunately I didn't spot anything that looks relevant in the logs so they don't provide a lead. This part might see interesting:
However, I see this in logs from Arduino IDE even when working as expected so I think it is a "red herring". |
You got it:
|
Thanks to you both. I was finally able to reproduce it. Fortunately, it seems quite consistently reproducible on both my Windows and Linux machines and doesn't require any special environment such as 40 boards platforms and 200 sketches To reproduce
🐛 The index update process stalls with a notification of this form:
or this form:
(depending on whether or not you have "Additional Boards Manager URLs" preference items) Arduino IDE version2.0.0-rc9.2-snapshot-9e2b73a Operating systemWindows, Linux Operating system versionWindows 10, Ubuntu 20.04 Additional contextI bisected the introduction of the issue to 8b3f3c6 / #1310 The issue does not occur if I replace the bundled Arduino CLI (located in the The demo above can be reproduced with other platforms, boards, and sketches. The only requirement seems to be that the IDE has a large/complex sketch open and a board compatible with that sketch during an index upload. I suspect this produces a required timing between the processing of the sketch for the language server and the index update For example, I was able to reproduce it with an ESP32 board and the File > Examples > ArduinoOTA > BasicOTA sketch, and with the "Arduino Mega or Mega 2560" board and the "Marlin" sketch. I was not able to reproduce the issue using a board of the "Arduino AVR Boards" platform. My hypothesis is that the sketches I used (e.g., File > Examples > Ethernet > AdvancedChatServer) were not large/complex enough to produce the required conditions. In addition to the IDE restart used in the demo, the issue also occurs when triggering an index update by changing the "Additional Boards Manager URLs" preference. |
Closing as fixed by arduino/arduino-cli#1804 / arduino/arduino-cli#1828 / #1358 |
Describe the problem
Sorry again if there is open issue, did not notice one, but as always may not have searched enough.
I have been using RC9.2, but noticed yesterday some new stuff checked in, so tried it and could not build sketches.
Saw one new thing checked in for today so downloaded again, and same issue.
The IDE window shows downloading the index file, which is still there 20 minutes later.
If I then try to verify or build a sketch in either this window or another sketch open, the build does not happen, I just see something like:

This has been in this state for maybe a minute or two in this run.
EDIT: Note - I have verbose build/upload turned on
To reproduce
Not sure, as there may be several factors involved: On my machine I have several URLS in the list:
I was building for Teensy MicroMod (again not sure if I had it set for a different packages board if that would matter
Note: The IDE is not completely hung as I could open up preferences and the like.
Expected behavior
I expect that it would work like RC9.2 and be able to verify or upload
Arduino IDE version
Nightly 20220817
Operating system
Windows
Operating system version
Windows 11
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: