FilipDem / Domoticz-NEST-plugin

NEST Plugin for Domoticz using the Google credentials.
13 stars 4 forks source link

Error: Received fatal signal 11 (Segmentation fault) #31

Closed ghost closed 2 years ago

ghost commented 2 years ago

So I managed to get it all added, and installed pip3 (wasn't installed by default) and the packages.

When rebooting, the error log shows this:

2021-12-04 12:33:50.582 Status: Domoticz V2021.1 (c)2012-2021 GizMoCuz
2021-12-04 12:33:50.582 Status: Build Hash: 8547c5b7e, Date: 2021-04-17 16:29:11
2021-12-04 12:33:50.582 Status: Startup Path: /home/pi/domoticz/
2021-12-04 12:33:51.676 Sunrise: 07:46:00 SunSet: 15:50:00
2021-12-04 12:33:51.676 Day length: 08:04:00 Sun at south: 11:48:00
2021-12-04 12:33:51.676 Civil twilight start: 07:06:00 Civil twilight end: 16:29:00
2021-12-04 12:33:51.676 Nautical twilight start: 06:24:00 Nautical twilight end: 17:12:00
2021-12-04 12:33:51.676 Astronomical twilight start: 05:43:00 Astronomical twilight end: 17:52:00
2021-12-04 12:33:52.002 Status: PluginSystem: Started, Python version '3.9.2'.
2021-12-04 12:33:52.012 Active notification Subsystems: (0/13)
2021-12-04 12:33:52.044 Starting shared server on: :::6144
2021-12-04 12:33:52.025 Status: WebServer(HTTP) started on address: :: with port 80
2021-12-04 12:33:52.040 Status: WebServer(SSL) started on address: :: with port 443
2021-12-04 12:33:52.044 Status: TCPServer: shared server started...
2021-12-04 12:33:52.045 Status: RxQueue: queue worker started...
2021-12-04 12:33:54.045 Nest hardware started.
2021-12-04 12:33:54.045 Status: Weather: Started...
2021-12-04 12:33:54.045 Status: Nest: (Nest) Entering work loop.
2021-12-04 12:33:54.045 Status: Nest: (Nest) Started.
2021-12-04 12:33:54.046 Status: NotificationSystem: thread started...
2021-12-04 12:33:54.049 Status: EventSystem: reset all events...
2021-12-04 12:33:54.053 Status: EventSystem: reset all device statuses...
2021-12-04 12:33:54.125 Status: Python EventSystem: Initalizing event module.
2021-12-04 12:33:54.125 Status: EventSystem: Started
2021-12-04 12:33:54.125 Status: EventSystem: Queue thread started...
2021-12-04 12:33:54.200 Status: PluginSystem: 1 plugins started.
2021-12-04 12:33:55.332 Nest: (Nest) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter HardwareID: 3
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter HomeFolder: /home/pi/domoticz/plugins/GoogleNest/
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter StartupFolder: /home/pi/domoticz/
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter UserDataFolder: /home/pi/domoticz/
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Database: /home/pi/domoticz/domoticz.db
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Language: en
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Version: 2.1.0
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Author: Filip Demaertelaere
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Name: Nest
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Port: 0
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Key: GoogleNest
## parameter line hidden
## parameter line hidden 
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Mode5: 1
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter Mode6: Debug
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter DomoticzVersion: 2021.1
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter DomoticzHash: 8547c5b7e
2021-12-04 12:33:55.332 Nest: (Nest) > Parameter DomoticzBuildTime: 2021-04-17 16:29:11
2021-12-04 12:33:55.332 Nest: (Nest) > Got 0 devices:
2021-12-04 12:33:55.329 Status: Nest: (Nest) Initialized version 2.1.0, author 'Filip Demaertelaere'
2021-12-04 12:33:55.337 Error: Domoticz(pid:875, tid:965('Nest')) received fatal signal 11 (Segmentation fault)
2021-12-04 12:33:55.337 Error: siginfo address=0x36b, address=(nil)
ghost commented 2 years ago

Oh, it's also stopped Domoticz from running (no access to Domoticz at all).

Any idea what signal 11 means?

FilipDem commented 2 years ago

This is a crash of Domoticz and you will need to restart domoticz (sudo service domoticz restart). I recommend to use first the nest functionality outside Domoticz with python3 nest.py (don't forget the environment variables). If this recognises your devices, we should get it working in Domoticz. If it doesn't there is already another problem.