Description
Describe the problem
I know a number of people have reported this problem for months but still it isn't solved.
When starting Arduino IDE 2.2.1, notification area shows "Downloading index: library_index.tar.bz2"
Progress bar stays at 50% for a really long time, like 1/2 hour.
I know it isn't an issue of accessing the Internet, as I am writing this connected to the Internet with Arduino stuck at that stage.
Even if I didn't have an Internet connection at the time, IDE should time out after maybe a minute and move on with its life.
While it is in this state, can't compile, as compile progress seems to wait for the index download to finish
Once I get past this, then successive launches of Arduino seems to be good either for the rest of the day or as long as I don't log out of Windows, haven't figured that part out yet.
To reproduce
Start Arduino IDE 2.2.1 for first time in a particular day
Expected behavior
Not get stuck for 10's of minutes with status "Downloading index: library_index.tar.bz2"
Arduino CLI version
0.34.0
Operating system
Windows
Operating system version
Windows 11
Additional context
It downloads instantly if I use my web browser to download the file:
https://downloads.arduino.cc/libraries/library_index.tar.bz2
The fault does not occur If I run Arduino CLI directly:
C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli core update-index
It hesitated about 10 seconds, with seemingly successful results:
Downloading index: package_index.tar.bz2 downloaded
Looking at the terminal logs, the Downloading Index seems to take a long time doing these while the fault is occurring:
2023-09-29T04:39:13.570Z daemon INFO time="2023-09-29T00:39:13-04:00" level=info msg="Resolving include AutoConnect.h for arch esp32"
time="2023-09-29T00:39:13-04:00" level=info msg=" found better lib" lib=AutoConnect prio=6B1
2023-09-29T04:39:29.092Z daemon INFO time="2023-09-29T00:39:29-04:00" level=info msg="Resolving include WiFi.h for arch esp32"
time="2023-09-29T00:39:29-04:00" level=info msg=" found better lib" lib=WiFi prio=6B0
2023-09-29T04:39:45.007Z daemon INFO time="2023-09-29T00:39:45-04:00" level=info msg="Resolving include WebServer.h for arch esp32"
time="2023-09-29T00:39:45-04:00" level=info msg=" found better lib" lib=WebServer prio=6B0
[71480:0929/003958.469:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is disabled, ANGLE is
2023-09-29T04:40:01.671Z daemon INFO time="2023-09-29T00:40:01-04:00" level=info msg="Resolving include DNSServer.h for arch esp32"
time="2023-09-29T00:40:01-04:00" level=info msg=" found better lib" lib=DNSServer prio=6B0
2023-09-29T04:40:17.592Z daemon INFO time="2023-09-29T00:40:17-04:00" level=info msg="Resolving include EEPROM.h for arch esp32"
time="2023-09-29T00:40:17-04:00" level=info msg=" found better lib" lib=EEPROM prio=6B0
2023-09-29T04:40:34.431Z daemon INFO time="2023-09-29T00:40:34-04:00" level=info msg="Resolving include PageBuilder.h for arch esp32"
time="2023-09-29T00:40:34-04:00" level=info msg=" found better lib" lib=PageBuilder prio=6B1
2023-09-29T04:40:53.157Z daemon INFO time="2023-09-29T00:40:53-04:00" level=info msg="Resolving include FS.h for arch esp32"
time="2023-09-29T00:40:53-04:00" level=info msg=" found better lib" lib=FS prio=6B0
2023-09-29T04:41:12.586Z daemon INFO time="2023-09-29T00:41:12-04:00" level=info msg="Resolving include SPIFFS.h for arch esp32"
time="2023-09-29T00:41:12-04:00" level=info msg=" found better lib" lib=SPIFFS prio=6B0
2023-09-29T04:41:33.667Z daemon INFO time="2023-09-29T00:41:33-04:00" level=info msg="Resolving include SD.h for arch esp32"
time="2023-09-29T00:41:33-04:00" level=info msg=" found better lib" lib=SD prio=6A7
time="2023-09-29T00:41:33-04:00" level=info msg=" found better lib" lib=SD prio=6B0
2023-09-29T04:41:54.968Z daemon INFO time="2023-09-29T00:41:54-04:00" level=info msg="Resolving include SPI.h for arch esp32"
time="2023-09-29T00:41:54-04:00" level=info msg=" found better lib" lib=SPI prio=6B0
2023-09-29T04:42:15.144Z daemon INFO time="2023-09-29T00:42:15-04:00" level=info msg="Resolving include Preferences.h for arch esp32"
time="2023-09-29T00:42:15-04:00" level=info msg=" found better lib" lib=Preferences prio=6B0
2023-09-29T04:42:36.738Z daemon INFO time="2023-09-29T00:42:36-04:00" level=info msg="Resolving include Ticker.h for arch esp32"
time="2023-09-29T00:42:36-04:00" level=info msg=" found better lib" lib=Ticker prio=6B0
2023-09-29T04:42:58.281Z daemon INFO time="2023-09-29T00:42:58-04:00" level=info msg="Resolving include ArduinoJson.h for arch esp32"
time="2023-09-29T00:42:58-04:00" level=info msg=" found better lib" lib=ArduinoJson prio=6A7
2023-09-29T04:43:28.337Z daemon INFO time="2023-09-29T00:43:28-04:00" level=info msg="Resolving include HTTPClient.h for arch esp32"
2023-09-29T04:43:28.340Z daemon INFO time="2023-09-29T00:43:28-04:00" level=info msg=" found better lib" lib=HTTPClient prio=6B0
2023-09-29T04:43:58.304Z daemon INFO time="2023-09-29T00:43:58-04:00" level=info msg="Resolving include WiFiClientSecure.h for arch esp32"
time="2023-09-29T00:43:58-04:00" level=info msg=" found better lib" lib=WiFiClientSecure prio=6B0
2023-09-29T04:44:35.127Z daemon INFO time="2023-09-29T00:44:35-04:00" level=info msg="Resolving include HTTPUpdate.h for arch esp32"
time="2023-09-29T00:44:35-04:00" level=info msg=" found better lib" lib=HTTPUpdate prio=6B0
2023-09-29T04:45:07.932Z daemon INFO time="2023-09-29T00:45:07-04:00" level=info msg="Resolving include Update.h for arch esp32"
2023-09-29T04:45:07.933Z daemon INFO time="2023-09-29T00:45:07-04:00" level=info msg=" found better lib" lib=Update prio=6B0
2023-09-29T04:45:39.087Z daemon INFO time="2023-09-29T00:45:39-04:00" level=info msg="Resolving include pcf8574.h for arch esp32"
time="2023-09-29T00:45:39-04:00" level=info msg=" found better lib" lib=pcf8574 prio=6A7
2023-09-29T04:46:11.881Z daemon INFO time="2023-09-29T00:46:11-04:00" level=info msg="Resolving include Wire.h for arch esp32"
time="2023-09-29T00:46:11-04:00" level=info msg=" found better lib" lib=Wire prio=6B0
2023-09-29T04:46:49.620Z daemon INFO time="2023-09-29T00:46:49-04:00" level=info msg="Resolving include Adafruit_ADS1X15.h for arch esp32"
time="2023-09-29T00:46:49-04:00" level=info msg=" found better lib" lib="Adafruit ADS1X15" prio=6A7
2023-09-29T04:47:21.647Z daemon INFO time="2023-09-29T00:47:21-04:00" level=info msg="Resolving include Adafruit_I2CDevice.h for arch esp32"
time="2023-09-29T00:47:21-04:00" level=info msg=" found better lib" lib="Adafruit BusIO" prio=3EB
2023-09-29T04:47:57.713Z daemon INFO time="2023-09-29T00:47:57-04:00" level=info msg="Resolving include ESPTelnet.h for arch esp32"
time="2023-09-29T00:47:57-04:00" level=info msg=" found better lib" lib="ESP Telnet" prio=3EB
Additional reports
- Exceptionally long duration of "Downloading index: ..." process #2347 (comment)
- Exceptionally long duration of "Downloading index: ..." process #2347 (comment)
- Exceptionally long duration of "Downloading index: ..." process #2347 (comment)
- Exceptionally long duration of "Downloading index: ..." process #2347 (comment)
- Exceptionally long duration of "Downloading index: ..." process #2347 (comment)
- "Downloading index" process stalls arduino-ide#1330 (comment)
- Exceptionally long duration of "Downloading index: ..." process #2347 (comment)
- Cache the library/package indexes arduino-ide#2506
Related
- Hanging Downloading index: package_index.tar.bz2 arduino-ide#2418
- "Downloading index" process stalls arduino-ide#1330 (comment)
- "Downloading index" process stalls arduino-ide#1330 (comment)
- "Downloading index" process stalls arduino-ide#1330 (comment)
- "Downloading index" process stalls arduino-ide#1330 (comment)
- Slow build process with multiple libraries arduino-ide#2462 (comment)
- At start of the IDE downloading the 39Mb library_index.json takes minutes to hours. arduino-ide#2501
- At start of the IDE downloading the 39Mb library_index.json takes minutes to hours. arduino-ide#2501 (comment)
- https://forum.arduino.cc/t/downloading-index-package-teensy-json/1229463/4
- https://forum.arduino.cc/t/ide-hangs-on-startup-error-downloading-index/1261030/9
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/1
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/3
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/5
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/6
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/7
- https://forum.arduino.cc/t/downloading-index-package-rp2040-index-json/1303866
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/1
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/2
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/3
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/6
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/14
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/17
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/19
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/21
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/22
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/38
- https://forum.arduino.cc/t/library-and-board-updates-stall-after-2-3-3-auto-update/1305826/7
- https://forum.arduino.cc/t/ide-2-3-3-stuck-trying-to-download-teensy/1306012/1
- https://forum.arduino.cc/t/ide-2-3-3-stuck-trying-to-download-teensy/1306012/7
- https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/1
- https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/4
- https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/6
- https://forum.arduino.cc/t/download-index-package-lgt8fx-index-json-stuck/1307014
- https://forum.arduino.cc/t/downloading-index-package-adafruit-index-json-error/1307083/1
- https://forum.arduino.cc/t/downloading-index-package-adafruit-index-json-error/1307083/10
- https://forum.arduino.cc/t/ide-freezes-after-updating-to-2-3-3/1307890/7
- https://forum.arduino.cc/t/downloading-index-library-index-tar-bz2-problem/1327204/9
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the nightly build
- My report contains all necessary details