The Downloading index: package-lgt8fx_index.json is stuck at 70% since one hour. Can not use the IDE.
Shutdown all copies of the IDE, even Serial monitors and try again.
Which IDE? Wild guess that it's 2.3.3.
now, after 2 hours the download finished and all is working fine.
Hi @georghelmut . 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
topic: code
type: imperfection
topic: gRPC
### Describe the problem
A client might make additional [`cc.arduino.cli.comm… ands.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)
🐛 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).
### 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.
system
Closed
April 4, 2025, 8:41am
7
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.