Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An uncaught exception occurred: RangeError: index out of range / Bluetooth #1166

Open
sienikam opened this issue Jun 24, 2021 · 0 comments
Open

Comments

@sienikam
Copy link

sienikam commented Jun 24, 2021

Hello,

I have following errors in pimatic:

[pimatic] error: An uncaught exception occurred: RangeError: index out of range
[pimatic] error:> at checkOffset (buffer.js:696:11)
[pimatic] error:> at Buffer.readUInt16LE (buffer.js:742:5)
[pimatic] error:> at null.Gap.onHciLeAdvertisingReport (/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/lib/hci-socket/gap.js:149:31)
[pimatic] error:> at emitMany (events.js:108:13)
[pimatic] error:> at null.emit (events.js:182:7)
[pimatic] error:> at null.Hci.processLeAdvertisingReport (/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/lib/hci-socket/hci.js:651:10
[pimatic] error:> at null.Hci.processLeMetaEvent (/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/lib/hci-socket/hci.js:608:10)
[pimatic] error:> at null.Hci.onSocketData (/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/lib/hci-socket/hci.js:479:12)
[pimatic] error:> at emitOne (events.js:77:13)
[pimatic] error:> at BluetoothHciSocket.emit (events.js:169:7)
[pimatic] error:> This is most probably a bug in pimatic or in a module, please report it!
[pimatic] warn: Keeping pimatic alive, but could be in an undefined state, please restart pimatic as soon as possible!

Pimatic version and plugins:

14:20:41.239 [pimatic] info: Starting pimatic version 0.9.54
14:20:41.249 [pimatic] info: Node.js version 4.6.2
14:20:41.251 [pimatic] info: OpenSSL version 1.0.2j
14:20:43.333 [pimatic, ppm] info: 2.15.12
14:20:43.376 [pimatic] info: Loading plugin: "pimatic-cron" (0.8.8)
14:20:43.886 [pimatic] info: Loading plugin: "pimatic-mobile-frontend" (0.9.16)
14:20:44.600 [pimatic] info: Loading plugin: "pimatic-log-reader" (0.9.3)
14:20:44.638 [pimatic] info: Loading plugin: "pimatic-mail" (0.8.6)
14:20:45.230 [pimatic] info: Loading plugin: "pimatic-led-light" (0.9.5)
14:20:46.152 [pimatic] info: Loading plugin: "pimatic-ble" (0.9.3)
14:20:47.681 [pimatic] info: Loading plugin: "pimatic-ble-mi-flora" (0.0.9)

OS:

pi@raspberrypi:~/pimatic-app $ cat /etc/issue
Raspbian GNU/Linux 10 \n \l

looks like it's related to some bluetooth activity/plugin - alredy tried to reinstall pimatic without success.
after reboot pimatic is starting to work normally for couple of hours and then situation repeats.

any idea?

@sienikam sienikam changed the title An uncaught exception occurred: RangeError: index out of range An uncaught exception occurred: RangeError: index out of range / Bluetooth Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant