esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

My PC reboots when updating esphome devices #6057

Open Greali opened 1 month ago

Greali commented 1 month ago

The problem

Hello esphome community!

I have to warn first that maybe this problem is not related directly with esphome. I have like 15 esphome devices added to esphome addon in Home Assistant. Normally, after an update of esphome version, 15 messages appears telling me about the update of each device. I click on update 1 by 1, and then wait until all updates are done. The thing is almost since 2 months or so, my PC reboots during the process and sometimes I have to use SSH to connect and remove corrupted compiled data and then try again. Happens with minor versions and mayor versions of esphome. Sometimes my PC reboots randomly, but like 1 time per week, not that much. In the windows event viewer it only says Id 41 kernel power critical error as the reason of the reboot, no more errors or blue screen. I had RAM memory errors couple months before and I've changed the 2 modules I have (16x2) for new ones and I did Memtest86 test and shows no errors now. But maybe the problem could be related to this. I'm desperated because of the restarts. Do you know guys what could be the problem? What should I test to know what the problem is? The thing is I can replicate the situation compiling multiple code devices at the same time so it's gonna get restarted.

Thank you in advance.

Which version of ESPHome has the issue?

2024.7.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.7

What platform are you using?

ESP32

Board

Shelly PM Plus

Component causing the issue

N/A

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Greali commented 1 month ago

I did a prime95 test. Have max 100 Cº temp and stable voltages, no restarts.

image

Greali commented 1 month ago

I did another test and after the OTA successful message appeared the PC rebooted.

darth-hp commented 1 month ago

I suppose this is related to #5964

Try for every affected component

esphome:
  compile_process_limit: 1

or set compile_process_limit in the addon itself

Greali commented 1 month ago

I suppose this is related to #5964

Try for every affected component

esphome:
  compile_process_limit: 1

or set compile_process_limit in the addon itself

Thank you very much! I'll try. I think I have some problem related with the RAM so that's why is crashing the whole PC.

How can I set compile_process_limit in the addon itself?

ssieb commented 1 month ago

It's in the addon settings.

Greali commented 1 month ago

It's in the addon settings.

Thank you, I've found the setting. For now I'm still getting reboots when updating the devices, almost each time. When the PC is on idle it's not getting rebooted. I'm still investigating.