MarFanNL / HeishamonMQTT

Simple plugin to manage Heishamon through MQTT
MIT License
1 stars 4 forks source link

Segmentation fault During adding devices #11

Open MiG-41 opened 3 years ago

MiG-41 commented 3 years ago

Hi , i treid to install a fresh copy of ubuntu 20.04.2 server on old laptop , so installed only domoticz , HeishamonMQTT ,and python3-dev (otherwise HeishamonMQTT was not visible in Hardware) . It is almost not possible to add a devices ( pressing green arrow). After first , second or third adding such error apear:

2021-02-06 19:35:39.511 Starting shared server on: :::6144 2021-02-06 19:35:39.513 Status: TCPServer: shared server started... 2021-02-06 19:35:39.513 Status: RxQueue: queue worker started... 2021-02-06 19:35:41.514 Status: (Aquarea) Started. 2021-02-06 19:35:41.514 Status: NotificationSystem: thread started... 2021-02-06 19:35:41.515 Status: EventSystem: reset all events... 2021-02-06 19:35:41.515 Status: EventSystem: reset all device statuses... 2021-02-06 19:35:41.545 Status: Python EventSystem: Initalizing event module. 2021-02-06 19:35:41.545 Status: EventSystem: Started 2021-02-06 19:35:41.545 Status: EventSystem: Queue thread started... 2021-02-06 19:35:41.869 Status: PluginSystem: Entering work loop. 2021-02-06 19:35:41.972 Status: (Aquarea) Entering work loop. 2021-02-06 19:35:41.972 Status: (Aquarea) Initialized version 0.2.1 2021-02-06 19:35:42.031 (Aquarea) Connected to MQTT Server: 192.168.1.90:1883 2021-02-06 19:36:09.926 Status: EventSystem: reset all device statuses... 2021-02-06 19:36:19.536 Status: EventSystem: reset all device statuses... Fatal Python error: Segmentation fault

Current thread 0x00007f2bd7718700 (most recent call first):

2021-02-06 19:36:19.619 Error: Domoticz(pid:1035, tid:1038('PluginMgr')) received fatal signal 11 (Segmentation fault) 2021-02-06 19:36:19.619 Error: siginfo address=0x3e80000040b, address=0x7f2bd9cce24b 2021-02-06 19:36:19.629 Error: Failed to start gdb, will use backtrace() for printing stack frame 2021-02-06 19:36:19.632 Error: #0 ./domoticz : + 0x382b36 [0x560cff255b36] 2021-02-06 19:36:19.633 Error: #1 ./domoticz : signal_handler(int, siginfo_t*, void*) + 0x2b5 [0x560cff2566f5] 2021-02-06 19:36:19.633 Error: #2 /lib/x86_64-linux-gnu/libpthread.so.0 : + 0x153c0 [0x7f2bd9cce3c0] 2021-02-06 19:36:19.633 Error: #3 /lib/x86_64-linux-gnu/libpthread.so.0 : raise + 0xcb [0x7f2bd9cce24b] 2021-02-06 19:36:19.633 Error: #4 /lib/x86_64-linux-gnu/libpthread.so.0 : + 0x153c0 [0x7f2bd9cce3c0] 2021-02-06 19:36:19.633 Error: #5 /lib/x86_64-linux-gnu/libpython3.8.so : + 0x271d55 [0x7f2bd89c7d55] 2021-02-06 19:36:19.633 Error: #6 /lib/x86_64-linux-gnu/libpython3.8.so : PyDict_SetItem + 0x253 [0x7f2bd89c8653] 2021-02-06 19:36:19.633 Error: #7 /lib/x86_64-linux-gnu/libpython3.8.so : PyDict_SetItemString + 0x3d [0x7f2bd89c475d] 2021-02-06 19:36:19.633 Error: #8 ./domoticz : + 0x76258a [0x560cff63558a] 2021-02-06 19:36:19.633 Error: #9 ./domoticz : Plugins::CPluginProtocolMQTT::ProcessInbound(Plugins::ReadEvent const*) + 0x8d5 [0x560cff6390c5] 2021-02-06 19:36:19.633 Error: #10 ./domoticz : Plugins::CPluginMessageBase::Process() + 0x37 [0x560cff1cd307] 2021-02-06 19:36:19.633 Error: #11 ./domoticz : Plugins::CPluginSystem::Do_Work() + 0xbce [0x560cff62ff9e] 2021-02-06 19:36:19.633 Error: #12 ./domoticz : + 0xab601f [0x560cff98901f] 2021-02-06 19:36:19.633 Error: #13 /lib/x86_64-linux-gnu/libpthread.so.0 : + 0x9609 [0x7f2bd9cc2609] 2021-02-06 19:36:19.633 Error: #14 /lib/x86_64-linux-gnu/libc.so.6 : clone + 0x43 [0x7f2bd9a6b293] Segmentation fault (core dumped) Do you have any idea what can be the problem ? Running on rpi and don't have such problem. Maybe it is the case of new python version 3.8.2 ( on rpi there is 3.7....)
MiG-41 commented 3 years ago

Maybe there is another way to adding this devices , becouse already added devices working . But adding one or two and then domoticz crash is annoing ,and add all devices takes forever.

MiG-41 commented 3 years ago

Same case ,when you want to change temperature via one of thermostat (i.e DHW_Target_Temp) .Domoticz crashes in the same way ...