Skip to content

The IDE "forgets" avrdude processes, lets them hang and consume resources #2527

Closed as not planned
@AndKe

Description

@AndKe

Describe the problem

This is the task manager after programming 30x Leonardo.
Screenshot from 2024-10-08 16-40-11

And 5% CPU load on this computer is not insignificant. (basically one core per dead avrdude process)
The load is reduced by exiting ArduinoIDE:

Screenshot from 2024-10-08 16-40-27

This is an example of the failure that leaves one zombie thread:
(bootloader not trigged, I clicked "cancel")

Screenshot from 2024-10-08 18-58-06

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

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

conclusion: duplicateHas already been submittedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions