I'm struggling with a intermittent segmentation fault when pushing the "Update" button in the hardware-page. I have a skeleton plugin (just showing the relevant parts, the rest is unchanged from the base template, except the plugin definition in the head):
Code: Select all
class BasePlugin:
enabled = False
coapAdaptor = None
def __init__(self):
return
def onStart(self):
Domoticz.Log("onStart called")
self.CoapAdapter = Domoticz.Connection(Name="Main", Transport="TCP/IP", Protocol="JSON", Address="127.0.0.1", Port="1234")
self.CoapAdapter.Connect()
def onMessage(self, Connection, Data, Status, Extra):
Domoticz.Log("onMessage called with data: {0}".format(Data))
#snipp#
Code: Select all
2017-06-13 23:09:18.790 (Test) Initialized version 1.0.0, author 'moroen'
2017-06-13 23:09:18.791 (Test) onStart called
2017-06-13 23:09:18.791 PluginSystem: Starting I/O service thread.
2017-06-13 23:09:18.841 (Test) onConnect called
2017-06-13 23:09:18.841 (Test) onMessage called with data: b'{"status": "Ok", "action": "clientConnect", "version": "0.1"}'
2017-06-13 23:09:20.290 (Test) Exiting work loop...
2017-06-13 23:09:20.296 (Test) onDisconnect called
2017-06-13 23:09:20.297 (Test) onStop called
2017-06-13 23:09:20.299 Error: CPluginTransport: Base handleRead invoked for Hardware 2
2017-06-13 23:09:20.361 (Test) Stopped.
2017-06-13 23:09:20.428 (Test) Initialized version 1.0.0, author 'moroen'
2017-06-13 23:09:20.429 (Test) onStart called
2017-06-13 23:09:20.429 PluginSystem: Starting I/O service thread.
2017-06-13 23:09:20.479 (Test) onConnect called
2017-06-13 23:09:20.479 (Test) onMessage called with data: b'{"status": "Ok", "action": "clientConnect", "version": "0.1"}'
2017-06-13 23:09:22.085 (Test) onDisconnect called
2017-06-13 23:09:22.085 (Test) onStop called
Segmentation fault

Regards,
M