esphome / wake-word-voice-assistants

Apache License 2.0
18 stars 8 forks source link

Code crashing HA on 2024.8.1 #10

Closed vincegre closed 1 month ago

vincegre commented 1 month ago

Hi

I'm trying to compile the code to transfer it in a ESP32-S3 box but it crashes my HA instance each time I try to compile it. All my other sketches compile without any problems out of that one ! While it compiles I loose connection with HA and then HA reboots. I'm running HA on a i5 NUC so it's not a problem of ressource. I'm able to compile and transfer sketch for Seeed respeaker lite for Voice assist that is also a heavy sketch without any problem ! I don't have any logs of ESPHome as it's lost each time as system reboots :( ESPHome is running version 2024.7.3

Logs of ESPHome when it tries to compile the sketch:

INFO ESPHome 2024.7.3
INFO Reading configuration /config/esphome/voice-assist-box.yaml...
INFO Updating https://github.com/esphome/esphome.git@pull/5230/head
INFO Updating https://github.com/jesserockz/esphome-components.git@None
WARNING GPIO0 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO45 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
Traceback (most recent call last):
  File "/usr/local/bin/esphome", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/esphome/esphome/__main__.py", line 1080, in main
    return run_esphome(sys.argv)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 1067, in run_esphome
    rc = POST_CONFIG_ACTIONS[args.command](args, config)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 433, in command_compile
    exit_code = write_cpp(config)
                ^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 194, in write_cpp
    return write_cpp_file()
           ^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 212, in write_cpp_file
    writer.write_cpp(code_s)
  File "/esphome/esphome/writer.py", line 344, in write_cpp
    copy_src_tree()
  File "/esphome/esphome/writer.py", line 270, in copy_src_tree
    p.unlink()
  File "/usr/lib/python3.11/pathlib.py", line 1148, in unlink
    os.unlink(self)
FileNotFoundError: [Errno 2] No such file or directory: '/data/build/voice-assist-box/src/esphome/components/captive_portal/captive_portal.h'

Thanks

Vincèn