emontnemery / domoticz_mqtt_discovery

MQTT discovery plugin for Domoticz
MIT License
40 stars 28 forks source link

After upgrade to bullseye the plugin crashes Domoticz with signal 11 (Segmentation fault) #43

Open chriweber opened 2 years ago

chriweber commented 2 years ago

My Raspberry Pi Domoticz host has been up and running on Buster for almost 2 year w/o any issues. However after upgrading Bullseye this plugin reproducibly crashes the Domoticz service with signal 11 when trying to configure the plugin. The last words of Domoticz are:

2021-11-10 11:40:25.559 Error: Domoticz(pid:5143, tid:5262('Tasmota Devices')) received fatal signal 11 (Segmentation fault) 2021-11-10 11:40:25.559 Error: siginfo address=0x1417, address=0xb6c39b00

After removing the plugin's directory the Domoticz service can be restarted and runs fine again.

My environment: Domoticz Version: 2021.1 Compile Date: 2021-04-17 17:29:11 dzVents Version: 3.1.7 Python Version: 3.9.2 (default, Mar 12 2021, 04:06:34)

Kind regards, Chris

viragelabs commented 2 years ago

Hi, I had the same trouble. First on a windows install, and then on a raspberry pi with Pi OS. Between the two I spun up a Ubuntu version in Windows Linux, and the plugin worked.

The Ubuntu had the same version of Domoticz, but Python 3.8.10, whereas the Pi had 3.9.2. I've since downgraded the Python on the Pi to 3.8.7 (which sounds easy, but wasn't) and now the plugin is working...so it seems like it is the change in version on the Python, rather than the OS that causes the problem. As to specifically what the issue might be within Python, I've no idea.