companion icon indicating copy to clipboard operation
companion copied to clipboard

[BUG] slow processing and freezing companion pi

Open Thymeauthe opened this issue 1 month ago • 2 comments

Make sure you're on the latest stable or beta build

  • [x] I have tested this on the latest stable or beta release

Is this a bug in companion itself or a module?

  • [x] I believe this to be a bug in companion and not a specific module

Is there an existing issue for this?

  • [x] I have searched the existing issues

Describe the bug

I have been working primarily with Companion Pi for a few years now.

I am currently testing the new 5.x.x versions of Companion on Raspberry Pi 4B (8GB) and Raspberry Pi 5 units.

It appears that the 5.x.x version of Companion Pi has issues regarding processor management.

Please excuse my lack of technical knowledge regarding software development; I am simply sharing observations I have made, with some assistance from ChatGPT.

My observations were based on the following configurations:

  • Raspberry Pi 4 with Companion 5.1.1
  • Raspberry Pi 5 with Companion 5.1.1
  • Raspberry Pi 5 with Companion 4.1.6

Here are the findings:

Regarding startup, the Raspberry Pi 5 takes 1 minute and 20 seconds to fully boot, regardless of whether it is running Companion 4 or 5.

In contrast, the Raspberry Pi 4 takes over 3 minutes to boot Companion 5.1.1.

I also observed significant lag when modifying settings—specifically, when toggling the display of the "TopBar" on Stream Deck buttons. The results were as follows:

Raspberry Pi 5 with Companion 4.1.6:

  • Processor usage: 370%
  • Buttons and configuration remain functional.
  • Slight lag during the 15–20 second processing time, but the system remains perfectly usable.

Raspberry Pi 4 and 5 with Companion 5.1.1:

  • Processor usage at 100%, with occasional spikes up to 250%.
  • Companion becomes completely unresponsive for a processing period of approximately 30–40 seconds.
  • The application effectively freezes and experiences extreme lag, rendering it unusable. Processor usage at idle:

Raspberry Pi 5 with Companion 4.1.6: 0.5–1% Raspberry Pi 5 with Companion 5.1.1: 10–12% Raspberry Pi 4 with Companion 5.1.1: 20–21%

I’m not sure if this helps with optimizing the Companion version for Raspberry Pi.

Steps To Reproduce

No response

Expected Behavior

No response

Environment (please complete the following information)

- Companion Version: 4.1.6 & 5.1.1
- OS: Companion Pi
- Browser: Google Chrome

Additional context

No response

Thymeauthe avatar Nov 01 '26 11:11 Thymeauthe

Hopefully 5.1.2 is better on this

Julusian avatar Nov 04 '26 19:11 Julusian

It seems that everything is better inversion 5.1.3.

Raspi 4 run in 1'03'' Raspi 5 run in 33''

Thanks for these corrections

Thymeauthe avatar Nov 16 '26 16:11 Thymeauthe