core: Nest Integration causes Home Assistant Core to crash when stream component is enabled
The problem
After upgrading to 2202.3.x, Nest Hello doorbell camera feed would no longer load in picture entity card. Noticed error in home-assistant.log complaining that the stream component was not loaded. However, upon adding stream component to configuration.yaml to enable, home assistant core immediately crashes upon any attempt to access Nest Hello camera device. Crash occurs when accessing camera device through dashboard or via Nest integration view through Configuration menu.
Using now enabled stream component with other generic camera entities without issue as long as Nest integration is disabled. Prior to this 2202.3.x release, I never bothered to use stream component so I am unable to verify if this conflict between Nest integration and stream component existed in my setup in earlier releases.
Home assistant Fault log and redacted Home Assistant log with debug information for Nest Integration attached.
home-assistant.log.fault.log home-assistant.log.1.redacted.log
What version of Home Assistant Core has the issue?
core-2022.3.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Nest
Link to integration documentation on our website
https://www.home-assistant.io/integrations/nest/
Diagnostics information
Unable to access diagnostic issue since home assistant immediately crashes when accessing Nest Hello device.
Home Assistant Installation Info:
System Health
version | core-2022.3.2 |
---|---|
installation_type | Home Assistant Core |
dev | false |
hassio | false |
docker | false |
user | homeassistant |
virtualenv | true |
python_version | 3.9.5 |
os_name | Linux |
os_version | 5.4.0-100-generic |
arch | x86_64 |
timezone | America/Indianapolis |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Lovelace
dashboards | 1 |
---|---|
resources | 0 |
views | 4 |
mode | yaml |
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Top several lines of home-assistant.log.fault
Python error: Illegal instruction
Current thread 0x00007fa1ae905700 (most recent call first):
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/stream/worker.py", line 448 in stream_worker
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/stream/__init__.py", line 332 in _run_worker
File "/usr/lib/python3.9/threading.py", line 892 in run
File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (7 by maintainers)
I’m experiencing the same issue with my Home Assistant Core install that has the Nest Integration. I attempted the work around posted by @pletch but PyAV has recently had a few
9.0.x
releases and Core crashed with a segmentation fault when using that version installed like so:pip install av --no-binary av
. I tried:pip install av==8.1 --no-binary av
but got this messageskipping wheel build due to binaries being disabled for it
and it would just install the 8.1 binary. I ended up getting it to work but I had to clone the PyAV repo, checkout out the 8.1 tag as a branch and then build PyAV myself. I then switched back to the homeassistant venv and did apip install PyAV/
, commented back in thestream
integration and restarted Home Assistant and the Nest camera streams starting working again.