The IDE "forgets" avrdude processes, lets them hang and consume resources #2527
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
This is the task manager after programming 30x Leonardo.

And 5% CPU load on this computer is not insignificant. (basically one core per dead avrdude process)
The load is reduced by exiting ArduinoIDE:
This is an example of the failure that leaves one zombie thread:
(bootloader not trigged, I clicked "cancel")
To reproduce
Flash a bunch of Leonardo's - quite possibly one , maybe reconnect every time to simulate many.
Expected behavior
I'd expect that after flashing, successful or not the process started is terminated.
Arduino IDE version
2.3.3
Operating system
Linux
Operating system version
Ubuntu 24.04
Additional context
Additional info, having the flashing fail and never commence can also happen when reflashing the same chip.
The Serial (USB) interface is in use for terminal, but not transmitting data.
I've observed that the bootloader is not always trigged correctly, and pressing Cancel, and retrying can help.
All the hung processes makes next /dev/ttyACMx to enumerate with higher and higher number.
Issue checklist
The text was updated successfully, but these errors were encountered: