iobroker-community-adapters / ioBroker.roomba

Connect your iRobot Roomba to ioBroker
MIT License
6 stars 4 forks source link

When setting log level to error, adapter restarts in loop #184

Open thesnoopy opened 4 months ago

thesnoopy commented 4 months ago

As mentiond in the subject, as soon as I set the log level to ERROR the adapter goes into a restart loop. Log below:

2024-04-05 09:28:12.169 - info: roomba.0 (9252) starting. Version 1.2.2 in /opt/iobroker/node_modules/iobroker.roomba, node: v18.20.1, js-controller: 5.0.19 2024-04-05 09:28:12.191 - info: roomba.0 (9252) Connecting to Roomba (172.16.29.23).. 2024-04-05 09:28:12.284 - info: roomba.0 (9252) Restored last mission (#2505). 2024-04-05 09:28:15.529 - info: roomba.0 (9252) Roomba online. Connection established. 2024-04-05 09:28:15.531 - info: roomba.0 (9252) State value to set for "roomba.0.states._connected" has to be type "string" but received type "boolean" 2024-04-05 09:28:16.330 - info: roomba.0 (9252) Roomba has resumed a previous mission (#2505). 2024-04-05 09:28:16.335 - error: roomba.0 (9252) uncaught exception: Cannot read properties of undefined (reading 'theta') 2024-04-05 09:28:16.336 - error: roomba.0 (9252) TypeError: Cannot read properties of undefined (reading 'theta') at mapMission (/opt/iobroker/node_modules/iobroker.roomba/roomba.js:720:51) at MqttClient. (/opt/iobroker/node_modules/iobroker.roomba/roomba.js:363:6) at MqttClient.emit (node:events:517:28) at Timeout._onTimeout (/opt/iobroker/node_modules/@karlvr/dorita980/lib/v2/local.js:48:16) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) 2024-04-05 09:28:16.336 - error: roomba.0 (9252) Cannot read properties of undefined (reading 'theta') 2024-04-05 09:28:16.337 - info: roomba.0 (9252) Adapter stopped und unloaded. 2024-04-05 09:28:16.338 - info: roomba.0 (9252) terminating 2024-04-05 09:28:16.339 - warn: roomba.0 (9252) Terminated (UNCAUGHT_EXCEPTION): Without reason 2024-04-05 09:28:16.340 - info: roomba.0 (9252) State value to set for "roomba.0.states._connected" has to be type "string" but received type "boolean" 2024-04-05 09:28:16.840 - info: roomba.0 (9252) terminating 2024-04-05 09:28:16.909 - error: host.iobroker instance system.adapter.roomba.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2024-04-05 09:28:16.909 - warn: host.iobroker Do not restart adapter system.adapter.roomba.0 because restart loop detected

mcm1957 commented 4 months ago

Please add release version information to every problem reported:

thesnoopy commented 4 months ago

Hi, as requested:

version of adapter: 1.2.2 version of js-controller: 5.0.19 nodeJS version installed: 18.20.1 Operation system type / version: Raspberry pi 5 with Debian GNU/Linux 12 (bookworm)