arnonym / ha-plugins

Home-Assistant SIP Gateway
Apache License 2.0
171 stars 22 forks source link

Fatal Python error: Aborted #76

Closed catohagen closed 9 months ago

catohagen commented 9 months ago

This is a fantastic addon, after figuring out most configs I need, I'm about to wire up some old phones around the house as an intercom. But it crashes alot. Would it be possible to fix watchdog, so it detects if the addon have crashed ?

Assertion failed: a->addr.sa_family == PJ_AF_INET || a->addr.sa_family == PJ_AF_INET6 (../src/pj/sock_common.c: pj_sockaddr_get_len: 392) Fatal Python error: Aborted

Current thread 0x00007f3c1f573b48 (most recent call first): File "/root/.local/lib/python3.11/site-packages/pjsua2-2.14-py3.11-linux-x86_64.egg/pjsua2.py", line 6468 in libHandleEvents File "/ha-sip/main.py", line 105 in main File "/ha-sip/main.py", line 113 in

Extension modules: yaml._yaml, _pjsua2, charset_normalizer.md (total: 3) /run.sh: line 46: 258 Aborted (core dumped) python3 /ha-sip/main.py s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

after this ha-sip is not responding, but the green light is on and its not restarted… Have to manually restart almost after each call....not every call but frequently

for now I have an automation thats run after each "call_disconnected"

service: hassio.addon_restart data: addon: c7744bff_ha-sip

but sometimes it crashes before and it never runs the automation to restart it

arnonym commented 9 months ago

This is actually working on my installation. I released a version that does not abort on those assertion errors from pjsip. Maybe with this in place your ha-sip runs more stable. Please try and report back :smiley:!

catohagen commented 9 months ago

ah, awesome :) I'll test right now

but how do I update...it still says Current version: 3.2 here...maybe I can update files manually

arnonym commented 9 months ago

In Settings you can press the 3 dots in the upper right corner and click on "Check for updates".

catohagen commented 9 months ago

took awhile for update to come, but updated to 3.3 today, and seems to run fine now :) Thank you