jotk
September 27, 2024, 5:34pm
1
Hello,
Noticed if I have a board connected, and I go to the Library section and install a new board, the installation never finishes. It just has "installing library" pop up and never stops showing it. If you remove the connected board, or you don't have a board connected, then the library installs as normal and the pop up dissappears
2 Likes
KurtE
September 27, 2024, 5:47pm
2
Recently I have had a few times, where I try to update a library and
it says it downloaded and is installing and minutes go by and it does not
go away. I usually end up either kill the window and restart the IDE or at times
I can get away with opening up another window and do stuff like compile, but
often feels like maybe going in slow motion.
Not sure, maybe I was in the same state as you with board connected. I will check that if I run into this issue again.
It seems related to: After upgrading to v2.3.3 stuck downloading index - #17 by leo_meyer
Your workaround seems to be also good for this use case... can be normal as it can try to download data before compiling
Hi @jotk .
It was found that Arduino IDE 2.3.3 has a bug that causes index downloads and installation/updates of boards platforms libraries to hang when Serial Monitor is open.
If you encounter these problems again, the workaround is to close the Serial Monitor view until the process is finished. After that, you can open Serial Monitor again.
The Serial Monitor view is a tab in the bottom panel of the Arduino IDE window, so you might not even notice when you have it open. You can close it by clicking the X icon on the tab:
The Arduino developers are tracking the bug here:
opened 08:01AM - 06 Oct 24 UTC
closed 08:51AM - 11 Oct 24 UTC
conclusion: resolved
topic: code
type: imperfection
topic: gRPC
### Describe the problem
A client might make additional [`cc.arduino.cli.comman… ds.v1.ArduinoCoreService.Init`](https://arduino.github.io/arduino-cli/dev/rpc/commands/#initrequest) requests.
For example, Arduino IDE periodically (and on demand) performs the following sequence:
1. [Update package and/or library index](https://github.com/arduino/arduino-ide/blob/77136687d374dce1660191059427f1941f4cef16/arduino-ide-extension/src/node/core-client-provider.ts#L280-L285)
1. [Initialize gRPC client instance](https://github.com/arduino/arduino-ide/blob/77136687d374dce1660191059427f1941f4cef16/arduino-ide-extension/src/node/core-client-provider.ts#L297)
Arduino IDE also makes an `Init` request after installing/updating a platform or library.
🐛 If there is a running [`cc.arduino.cli.commands.v1.ArduinoCoreService.Monitor`](https://arduino.github.io/arduino-cli/dev/rpc/commands/#ccarduinoclicommandsv1monitorproto) process, the `Init` request hangs.
### To reproduce
#### Equipment
- Any board or other device that will produce a serial port on your computer.
#### Demo
1. Open a terminal.
1. Start the Arduino CLI gRPC daemon:
```text
$ arduino-cli version
arduino-cli Version: git-snapshot Commit: 863c1ec36 Date: 2024-10-06T06:54:36Z
$ arduino-cli daemon
Daemon is now listening on 127.0.0.1:50051
{"IP":"127.0.0.1","Port":"50051"}
```
1. Open another terminal.
1. Run the following [`grpcurl`](https://github.com/fullstorydev/grpcurl) command in the new terminal to create a gRPC client instance:
```text
$ grpcurl \
-plaintext \
-import-path ./rpc \
-proto cc/arduino/cli/commands/v1/commands.proto \
127.0.0.1:50051 \
cc.arduino.cli.commands.v1.ArduinoCoreService.Create
{
"instance": {
"id": 1
}
}
```
1. Run the following command to initialize the instance:
```text
$ grpcurl \
-plaintext \
-import-path ./rpc \
-proto cc/arduino/cli/commands/v1/commands.proto \
-d '{"instance": {"id": 1}}' \
127.0.0.1:50051 \
cc.arduino.cli.commands.v1.ArduinoCoreService.Init
```
1. Run the following command to start a Monitor request:
```text
$ grpcurl \
-plaintext \
-import-path ./rpc \
-proto cc/arduino/cli/commands/v1/commands.proto \
-d @ \
127.0.0.1:50051 \
cc.arduino.cli.commands.v1.ArduinoCoreService.Monitor
```
1. Send the request data to open the available serial port:
❗ Adjust the value of `open_request.port.address` as is appropriate for the port on your computer.
```json
{
"open_request": {
"instance": { "id": 1 },
"port": { "address": "COM42", "protocol": "serial" }
}
}
```
1. Open another terminal.
1. Run the following command in the new terminal to reinitialize the gRPC client instance:
```text
$ grpcurl \
-plaintext \
-import-path ./rpc \
-proto cc/arduino/cli/commands/v1/commands.proto \
-d '{"instance": {"id": 1}}' \
127.0.0.1:50051 \
cc.arduino.cli.commands.v1.ArduinoCoreService.Init
```
🐛 The reinitialization hangs.
### Expected behavior
`cc.arduino.cli.commands.v1.ArduinoCoreService.Init` does not hang under any conditions.
### Arduino CLI version
863c1ec365af2cf90ee41f6fcadfa675e5d61704
### Operating system
- Linux
- macOS
- Windows
### Operating system version
- Ubuntu 24.04
- macOS Sonoma
- Windows 11
### Additional context
I bisected the regression to bb815cfe050d31ea827b7db3814bd24cf88049ee / https://github.com/arduino/arduino-cli/pull/2565 (the fault does not occur when using the build from the previous commit 917dcc5df6c206f6d1c6e93ec745fd931937cf3d).
---
Originally reported at https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2378683212 (note the original issue report https://github.com/arduino/arduino-cli/issues/2347 was from long before the time of the regression, so is different from the Monitor-specific issue tracked here even if the symptoms are somewhat similar).
<a name="additional-reports"></a>
#### Additional reports
- https://github.com/arduino/arduino-cli/issues/2719#issuecomment-2402579961
- https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2396104055
- https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2396233626
- https://github.com/arduino/arduino-ide/issues/2562
- https://github.com/dankeboy36/esp-exception-decoder/issues/16#issuecomment-2475072211
- https://forum.arduino.cc/t/downloading-index-package-teensy-json/1229463/7
- https://forum.arduino.cc/t/ide-hangs-on-startup-error-downloading-index/1261030/9
- https://forum.arduino.cc/t/esp32-platform-takes-forever-to-install/1265136/3
- https://forum.arduino.cc/t/ide-2-3-2-very-slow-compiling/1281480/37
- 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/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/10
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/11
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/12
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/13
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/15
- https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/16
- 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/20
- 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/28
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/36
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/38
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/40
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/41
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/44
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/45
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/50
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/51
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/55
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/58
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/60
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/62
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/63
- https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/64
- https://forum.arduino.cc/t/installing-a-library-never-finishes-if-a-board-is-connected/1305779/1
- https://forum.arduino.cc/t/installing-a-library-never-finishes-if-a-board-is-connected/1305779/3
- https://forum.arduino.cc/t/library-and-board-updates-stall-after-2-3-3-auto-update/1305826/1
- https://forum.arduino.cc/t/library-and-board-updates-stall-after-2-3-3-auto-update/1305826/3
- https://forum.arduino.cc/t/library-and-board-updates-stall-after-2-3-3-auto-update/1305826/4
- https://forum.arduino.cc/t/library-and-board-updates-stall-after-2-3-3-auto-update/1305826/7
- https://forum.arduino.cc/t/library-and-board-updates-stall-after-2-3-3-auto-update/1305826/11
- 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/ide-2-3-3-stuck-trying-to-download-teensy/1306012/16
- https://forum.arduino.cc/t/ide-2-3-3-stuck-trying-to-download-teensy/1306012/25
- 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/5
- https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/8
- https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/10
- https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/12
- https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/21
- https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/22
- 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-solved/1307083/1
- https://forum.arduino.cc/t/downloading-index-package-adafruit-index-json-error-solved/1307083/10
- https://forum.arduino.cc/t/downloading-index-package-adafruit-index-json-error-solved/1307083/11
- https://forum.arduino.cc/t/ide-2-3-3-stuck-for-infinity-build-the-sketch-download-the-package-index/1311902
- https://forum.arduino.cc/t/library-update-hangs/1316825
- https://forum.arduino.cc/t/rtc-ds1307-and-adafruit-i2cdevice-libraries-errors/1323406/6
- https://forum.arduino.cc/t/arduino-stuck-on-compile-and-wont-work-anymore/1323725
- https://forum.arduino.cc/t/ide-hangs-while-downloading-index-package-rp2040/1324320
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-cli/issues?q=)
- [X] I verified the problem still occurs when using the [nightly build](https://arduino.github.io/arduino-cli/dev/installation/#nightly-builds)
- [X] My report contains all necessary details
If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:
Please only comment on the GitHub issue thread if you have new technical information that will assist with the resolution. General discussion and support requests are always welcome here on the Arduino Forum.
1 Like
system
Closed
April 4, 2025, 8:52am
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.