gysmo38 / domoticz-python-melcloud

A plugin in python for Domoticz
12 stars 15 forks source link

MELCloud plugin makes domoticz crash ? #8

Open Gozzima opened 3 years ago

Gozzima commented 3 years ago

Hi,

I used the MELCloud plugin for months and it was cool to control my AC from the same domoticz interface on my smartphone rather than the proprietary Mitsubishi app. Suddenly 2 months ago, my domoticz server installed on synology NAS began to crash lets say every 2 days. I use the last version of the MELCloud plugin : 0.7.6 I tried to upgrade domoticz, downgrade and finally tested to deactivate the MEL Cloud plugin and I see no more crashes. Here is an extract of the last lines of my domoticz log before crash :

2020-09-22 17:12:36.790  Error: (Climatisation): Async Secure Read Exception: 335544539, short read
2020-09-22 17:12:36.812  (Climatisation) MELCloud receive unknonw message with error code 404
2020-09-22 17:12:36.813  (Climatisation) MELCloud has disconnected
2020-09-22 17:12:37.062  (Climatisation) MELCloud connection OK
2020-09-22 17:12:37.082  Error: (Climatisation) No transport, write directive to 'MELCloud' ignored.
2020-09-22 17:12:37.082  (Climatisation) MELCloud has disconnected
Fatal Python error: Segmentation fault

Thread 0x2cdea440 (most recent call first):
2020-09-22 17:12:37.236  Error: Domoticz(pid:10049, tid:10635('Plugin_ASIO')) received fatal signal 11 (Segmentation fault)
2020-09-22 17:12:37.239  Error: siginfo address=0x2741, address=0x2ae91e70
2020-09-22 17:12:37.458  Error: Failed to start gdb, will use backtrace() for printing stack frame

2020-09-22 17:12:37.509  Error: #0  /usr/local/domoticz/bin/domoticz() [0x15f574]
2020-09-22 17:12:37.509  Error: #1  /usr/local/domoticz/bin/domoticz() [0x16004c]
2020-09-22 17:12:37.509  Error: #2  /lib/libc.so.6 : __default_rt_sa_restorer + 0 [0x2ae91e80]

I do not see clear proof that this is the plugin that makes my domoticz crash but it is related to Python and it crashes 200 ms after an error occurs in MELCloud.

Thanks in advance for any help ! /Gozzima

Gozzima commented 3 years ago

This seems to be the same as Issue "Loads of errors with plugin #7"

Gozzima commented 1 year ago

I updated the plugin.py script to 0.7.9 version by nonolk found here and my problem seems to be solved.