Open r0b1zZle opened 4 years ago
Can you please also compare with earlier versions ?
Can you please also compare with earlier versions ?
What do you mean? Which earlier versions?
@rzr @r0b1zZle The BLE adapter is using noble 1.9.2-8. Any specific versions we should compare with?
Updated to js-controller: 3.1.4, still the same issue.
My app just crashed with:
"Cannot set property 'mtu' of undefined"
/node_modules/@abandonware/noble/lib/noble.js:564
peripheral.mtu = mtu;
Ubuntu Server 18.04, NodeJS 12.18.2, Noble 1.9.2-8. Before the error I had a warning event, but the message was emtpy.
2020-07-22T13:19:22.348Z [info] [START] Scanning for devices with service xyz...
2020-07-22T13:19:22.348Z [info]
2020-07-22T13:19:28.911Z [info]
2020-07-22T13:19:28.912Z [warn] Warning message:
2020-07-22T13:19:28.913Z [info]
2020-07-22T13:19:28.914Z [info]
2020-07-22T13:19:28.914Z [info] [STOP] Stopped scanning.
2020-07-22T13:19:28.915Z [info]
/home/node_modules/@abandonware/noble/lib/noble.js:564
peripheral.mtu = mtu;
^
[ TypeError: Cannot set property 'mtu' of undefined
- noble.js:564 Noble.onMtu
[contact-tracing]/[@abandonware]/noble/lib/noble.js:564:18
- events.js:315 NobleBindings.emit
events.js:315:20
- bindings.js:277 NobleBindings.onMtu
[contact-tracing]/[@abandonware]/noble/lib/hci-socket/bindings.js:277:8
- events.js:315 Gatt.emit
events.js:315:20
- gatt.js:329 Object.callback
[contact-tracing]/[@abandonware]/noble/lib/hci-socket/gatt.js:329:10
- gatt.js:133 Gatt.onAclStreamData
[contact-tracing]/[@abandonware]/noble/lib/hci-socket/gatt.js:133:26
- events.js:327 AclStream.emit
events.js:327:22
- acl-stream.js:33 AclStream.push
[contact-tracing]/[@abandonware]/noble/lib/hci-socket/acl-stream.js:33:10
- bindings.js:288 NobleBindings.onAclDataPkt
[contact-tracing]/[@abandonware]/noble/lib/hci-socket/bindings.js:288:15
- events.js:315 Hci.emit
events.js:315:20
]
This never happened in two months of developing with the library, so it's not easy to reproduce. I just hope it won't crash during critical times
I also just got this error in noble (on node 14.10.1, but not on a similar system running node 12.19.0), did you ever find a solution?
I also just got this error in noble (on node 14.10.1, but not on a similar system running node 12.19.0), did you ever find a solution?
Nope, it didn't happen again, but also I had to work on another different project shortly after so I couldn't continue debugging....
I had the same issue (#164) and I add a PR for it (#165) but in the meantime you can just apply my changes if you still have this issue
Sorry, can you clarify what changes you're referring to @fisherwise?
Description
BLE Adapter is connecting well and consequently getting data from my flower sensors. Unfortunately every like 20 seconds the adapter is restarting due to an error.
Expected behavior
No errors.
` host.raspberrypi4-iob
`
Versions: