Le redémarrage du plugin à partir du GUI de la zigate fait planter Domoticz avec une erreur Fatal signal 11.
En revanche tout se passe bien si je redémarre le plugin à partir de Domoticz en faisant disable/enable du plugin.
Ça semble être lié avec la version 6 du plugin car ça marchait bien en version 5 et avec la même version de Domoticz.
Je mets les logs de Domoticz avec les messages au moment de l'arrêt.
Donc ce n'est pas bloquant puisque ça marche à partir de Domoticz. Juste au cas où se serait une erreur qui en cache un autre.
Le contexte :
DomoticzVersion 2022.1
Zigate V2 firmware 0320
Plugin beta6: 6.0.118
Logs avec les messages d'erreur au redémarrage du plugin à partir du GUI
Code : Tout sélectionner
Zigate: UpdateDevice - ( Capteur LUX-1) 2525:2525
Status: Zigate: Plugin Restart command : http://Domoticz:1ead9772bde51a25d5c1a0e23a4f8ce3@127.0.0.1:8080/json.htm?type=command¶m=updatehardware&htype=94&idx=2&name=Zigate&address=0.0.0.0&port=9999&serialport=/dev/ttyUSB0&Mode1=V2&Mode2=USB&Mode3=False&Mode4=9440&Mode5=&Mode6=2&extra=Zigate&enabled=true&datatimeout=0&loglevel=7
Status: Zigate: Stop directive received.
Zigate: onStop()
Zigate: Connection closed
Status: Zigate: ZigateTransport: ZiGateSerialListen Thread stop.
Status: Zigate: ZigateTransport: writer_thread Thread stop.
Status: Zigate: ZigateTransport: thread_processing_and_sending Thread stop.
Zigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
Zigate: is_domoticz_db_available: True
Status: Zigate: Statistics on message
Status: Zigate: PDM load(s) : 0
Status: Zigate: ZiGate reacting time
Status: Zigate: Max : 0 sec
Status: Zigate: Average : 0 sec
Status: Zigate: ZiGate processing time on Rx
Status: Zigate: Max : 0 sec
Status: Zigate: Average : 0 sec
Status: Zigate: Sent:
Status: Zigate: TX commands : 9
Status: Zigate: Max Load (Queue) : 4
Status: Zigate: Max aPDU (Queue) : 0
Status: Zigate: Max nPDU (Queue) : 0
Status: Zigate: TX failed : 0 (0.0%)
Status: Zigate: TX timeout : 0 (0.0%)
Status: Zigate: TX data timeout : 0 (0.0%)
Status: Zigate: TX reTransmit : 0 (0.0%)
Status: Zigate: TX APS Failure : 0 (0.0%)
Status: Zigate: TX APS Ack : 0 (0.0%)
Status: Zigate: TX APS Nck : 0 (0.0%)
Status: Zigate: Received:
Status: Zigate: RX frame : 23
Status: Zigate: RX crc errors : 0 (0.0%)
Status: Zigate: RX lentgh errors : 0 (0.0%)
Status: Zigate: RX clusters : 9
Status: Zigate: RX clusters KO : 0
Status: Zigate: Operating time : 0 Hours 4 Mins 3 Secs
Zigate: logging_thread - ended
Zigate: Logging Thread shutdown
Zigate: onStop called (6) Close Logging Management
Error: (FindModule) Domoticz/DomoticzEx modules not found in interpreter.
Error: Domoticz(pid:31740, tid:31761('Zigate')) received fatal signal 11 (Segmentation fault)
Error: siginfo address=0x7bfc, address=(nil)
Status: Zigate: Stopping threads.
Error: Thread 15 (Thread 0xeedff200 (LWP 31761)):
Error: #0 __waitpid (options=0, stat_loc=0xeedfdfa8, pid=32461) at ../sysdeps/unix/sysv/linux/waitpid.c:30
Error: #1 __waitpid (pid=32461, stat_loc=0xeedfdfa8, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
Error: #2 0x0029121c in dumpstack_gdb(bool) ()
Error: #3 0x002917e8 in signal_handler(int, siginfo_t*, void*) ()
Error: #4 <signal handler called>
Error: #5 raise (sig=11) at ../sysdeps/unix/sysv/linux/raise.c:50
Error: #6 <signal handler called>
Error: #7 0xf67ff724 in ?? () from /lib/arm-linux-gnueabihf/libpython3.7m.so
Code : Tout sélectionner
Status: Zigate: Stop directive received.
Zigate: onStop()
Zigate: Connection closed
Status: Zigate: ZigateTransport: ZiGateSerialListen Thread stop.
Status: Zigate: ZigateTransport: writer_thread Thread stop.
Status: Zigate: ZigateTransport: thread_processing_and_sending Thread stop.
Zigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
Zigate: is_domoticz_db_available: True
Status: Zigate: Statistics on message
Status: Zigate: PDM load(s) : 0
Status: Zigate: ZiGate reacting time
Status: Zigate: Max : 0 sec
Status: Zigate: Average : 0 sec
Status: Zigate: ZiGate processing time on Rx
Status: Zigate: Max : 0 sec
Status: Zigate: Average : 0 sec
Status: Zigate: Sent:
Status: Zigate: TX commands : 74
Status: Zigate: Max Load (Queue) : 4
Status: Zigate: Max aPDU (Queue) : 1
Status: Zigate: Max nPDU (Queue) : 5
Status: Zigate: TX failed : 0 (0.0%)
Status: Zigate: TX timeout : 0 (0.0%)
Status: Zigate: TX data timeout : 0 (0.0%)
Status: Zigate: TX reTransmit : 0 (0.0%)
Status: Zigate: TX APS Failure : 0 (0.0%)
Status: Zigate: TX APS Ack : 63 (85.14%)
Status: Zigate: TX APS Nck : 2 (2.7%)
Status: Zigate: Received:
Status: Zigate: RX frame : 312
Status: Zigate: RX crc errors : 0 (0.0%)
Status: Zigate: RX lentgh errors : 0 (0.0%)
Status: Zigate: RX clusters : 36
Status: Zigate: RX clusters KO : 0
Status: Zigate: Operating time : 0 Hours 15 Mins 2 Secs
Zigate: logging_thread - ended
Zigate: Logging Thread shutdown
Zigate: onStop called (6) Close Logging Management
Error: (FindModule) Domoticz/DomoticzEx modules not found in interpreter.
Status: Zigate: Exiting work loop.
Status: Zigate: Stopping threads.
Status: Zigate: Stopped.
Status: Zigate: Entering work loop.
Zigate: Worker thread started.
Status: Zigate: Started.
Status: Zigate: Initialized version 6.0, author 'pipiche38'
Zigate: Zigbee for Domoticz plugin started!
Zigate: load PluginConf
Zigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
Zigate: is_domoticz_db_available: True
Zigate: /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-02.json timestamp is 1646655196.465798
Zigate: Dz PluginConf is older than Json Dz: 0 Json: 1646655196.465798
Zigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
Zigate: is_domoticz_db_available: True
Status: Zigate: enablegroupmanagement set to 1
Status: Zigate: PluginAnalytics set to 1
Status: Zigate: Lang set to fr-FR
Status: Zigate: resetPermit2Join set to 0
Status: Zigate: channel set to 13
Status: Zigate: filename set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-02.json
Status: Zigate: pluginHome set to /home/pi/domoticz/plugins/Domoticz-Zigate/
Status: Zigate: homedirectory set to /home/pi/domoticz/plugins/Domoticz-Zigate/
Status: Zigate: pluginData set to /home/pi/domoticz/plugins/Domoticz-Zigate/Data/
Status: Zigate: pluginConfig set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/
Status: Zigate: pluginOTAFirmware set to /home/pi/domoticz/plugins/Domoticz-Zigate/OTAFirmware/
Status: Zigate: pluginReports set to /home/pi/domoticz/plugins/Domoticz-Zigate/Reports/
Status: Zigate: pluginWWW set to /home/pi/domoticz/plugins/Domoticz-Zigate/www/
Status: Zigate: pluginLogs set to /home/pi/domoticz/plugins/Domoticz-Zigate/Logs/
Status: Zigate: loggingMaxMegaBytes set to 2
Zigate: Starting LoggingManagement thread
Zigate: start_logging_thread
Zigate: logging_thread - listening
Status: Zigate: Please watch plugin log into /home/pi/domoticz/plugins/Domoticz-Zigate/Logs//PluginZigbee_02.log
Status: Zigate: Zigate plugin beta6-6.0.118 started