[grpc]: error: concurrent map iteration and map write
when executing lib list
#2457
Closed
3 tasks done
Labels
topic: code
Related to content of the project itself
topic: gRPC
Related to the gRPC interface
type: imperfection
Perceived defect in any part of project
Describe the problem
Occasional
error: concurrent map iteration and map write
when updating all outdated libraries with IDE2 (from this build: arduino/arduino-ide#2281).I see that the board discovery (
board list -w
) stopped/started for each lib installation in IDE2. It’s a good question why, and I found this five times in the logs. Maybe it’s unrelated:lib_list.txt
To reproduce
It's probably a race condition. Therefore, there is no clear way to reproduce it. Try updating all outdated libraries in IDE2.
Expected behavior
There is no concurrency error when installing libraries with the CLI daemon.
Arduino CLI version
arduino-cli version 0.35.0-rc.7
Operating system
N/A
Operating system version
n/a
Additional context
Maybe related: #1828.
Related in IDE2: arduino/arduino-ide#1389.
It's causing a daemon process crash in IDE2, and the app becomes non-functional.
Issue checklist
The text was updated successfully, but these errors were encountered: