esphome / issues

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

Get stuck while compiling esp-idf #5912

Closed gtrabanco closed 3 months ago

gtrabanco commented 3 months ago

The problem

Exactly the same as PR #5070

Which version of ESPHome has the issue?

2024.5.5

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.6.3

What platform are you using?

ESP32

Board

Sonoff NSPanel

Component causing the issue

esp-idf

Example YAML snippet

# Whatever yaml that includes
esp32:
  framework:
    type: esp-idf

Anything in the logs that might be useful for us?

Building wheels for collected packages: cryptography, cffi, pyyaml, msgpack
Building wheel for cryptography (pyproject.toml): started

Additional information

I am using it as addon in Raspberry Pi 4 4GB RAM which is pretty much for all I have.

It get stuck after that line in the logs. Later all raspberry pi is rebooted a few minutes later after try to compile.

No other report in the logs, no errors at any part (esphome logs or home assistant logs).

Try to solve but fail

I tried to solve it by "login" into the shell of the addon with Terminal addon and protected mode disables:

docker exec -it <addon_name> /bin/sh
apt purge rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

This didn't work. Also tried to reinstall dependencies:

docker exec -it <addon_name> /bin/sh
platformio pkg update
platformio pkg install

It was some time updating and installing but the result was the same. I didn't find a way to be able to compile.

gtrabanco commented 3 months ago

Captura_de_pantalla_2024-06-16_a_las_13 16 01

gtrabanco commented 3 months ago

I think is related to available resources. I installed esphome in a proxmox mini pc with 3 cores and 4 GB RAM (2 Wasn't enough) and it compiled. I have to do the compilations outside of Home Assistant Machine 😓