Skip to content

Massive CPU usage, slow start #2238

Open
@dronus

Description

@dronus

Describe the problem

On Ubuntu 22.04, the IDE version 2.2.1 does start very slowly and continues to use a massive amount of CPU even when idling for quite some while.

  • The IDE is the slowest starting application on my system, even with simple platforms (Arduino 8-bit) and small source files to load upon startup.
  • While and after starting, it makes my Laptop run loud, hot with massive battery drain. No other application does this (maybe games, but I don't use them). Laptop is a Thinkpad T480s, 4 cores, 8 threads, quite snappy for most applications.
  • The massive load sometimes stops after about two minutes after starting, sometimes never. I can't get a clear picture when.
  • The process using the most CPU is one of the many processes the IDE launches, the one with the --renderer command line option. This loads at minimum a single core for at least 1.5 minutes.
  • The processes launched look like this is chromium-based. However, chromium starts and runs fast on my system.
  • Starting from terminal, a massive amount of debugging information is printed. The last one about 1 minute 40 seconds after starting, if the IDE is not touched.

To reproduce

Start the IDE 2.2.1 from the .zip release with a simple project (Arduino 8-bit, eg blink example) opened at the last run. Run from terminal to see output.

Expected behavior

IDE starting up in a sane amount of time and use no or a miniscule amount of CPU on idling.

Arduino IDE version

2.2.1

Operating system

Linux

Operating system version

Ubuntu 22.04

Additional context

Problems are there since first 2.x release, and never really got better.

Related

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions