Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on Pyhton 3.11 since 2024.2 #110464

Closed
rds76 opened this issue Feb 13, 2024 · 4 comments
Closed

Segmentation fault on Pyhton 3.11 since 2024.2 #110464

rds76 opened this issue Feb 13, 2024 · 4 comments

Comments

@rds76
Copy link

rds76 commented Feb 13, 2024

The problem

Random crashes. Looks like support of Python 3.12 is not correctly backported to 3.11

What version of Home Assistant Core has the issue?

2024.2.1

What was the last working version of Home Assistant Core?

2024.1

What type of installation are you running?

Home Assistant Core

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Current thread 0xb7d286c0 (most recent call first):
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/backports/functools.py", line 72 in __get__
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/core.py", line 1528 in json_fragment
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/backports/functools.py", line 70 in __get__
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/helpers/json.py", line 48 in json_encoder_default
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/core.py", line 1136 in json_fragment
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/backports/functools.py", line 70 in __get__
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/components/websocket_api/messages.py", line 138 in _partial_cached_event_message
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/components/websocket_api/messages.py", line 122 in cached_event_message
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/components/websocket_api/commands.py", line 132 in _forward_events_unconditional
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/core.py", line 1253 in async_fire
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/core.py", line 1924 in async_set
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/helpers/entity.py", line 1172 in _async_write_ha_state
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/helpers/entity.py", line 989 in async_write_ha_state
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/components/shelly/entity.py", line 341 in _update_callback
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/helpers/update_coordinator.py", line 183 in async_update_listeners
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/helpers/update_coordinator.py", line 439 in async_set_updated_data
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/components/shelly/coordinator.py", line 336 in _async_handle_update
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/aioshelly/block_device/device.py", line 248 in _update_s
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/aioshelly/block_device/device.py", line 196 in _coap_message_received
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/aioshelly/block_device/coap.py", line 185 in datagram_received
  File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 1169 in _read_ready
  File "/usr/local/lib/python3.11/asyncio/events.py", line 80 in _run
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1922 in _run_once
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 607 in run_forever
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 640 in run_until_complete
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/runner.py", line 188 in run
  File "/opt/venv/homeassistant-py3.11/lib/python3.11/site-packages/homeassistant/__main__.py", line 209 in main
  File "/opt/venv/homeassistant/bin/hass", line 8 in <module>

Additional information

No response

@slovdahl
Copy link
Contributor

Might not be related to the Python version, see #110538. What hardware and OS do you use?

@rds76
Copy link
Author

rds76 commented Feb 16, 2024

Mine is x86 intel Atom, 32bit older Debian distro. Check this #110552. There is 2024.2.2 out, I will give a try.

@rds76
Copy link
Author

rds76 commented Feb 16, 2024

So 2024.2.2 is not published on Py repo yet so I need to wait, let you know if fixed then, but needs to test it for more days, last time it was running for 2days then 2 crashes during single day. Actually Im moving to 64bit new pc/distro due to EOL of new Python for 32bit machines.

@rds76
Copy link
Author

rds76 commented Feb 19, 2024

Looks like updated orjson package in 2024.2.2 fixed issue.

@rds76 rds76 closed this as completed Feb 19, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants