noble/bleno

crash during the bonding

Ouverte

#217 ouverte le 18 août 2016

 (9 commentaires) (0 réaction) (0 personne assignée)JavaScript (465 forks)batch import
help wanted

Métriques du dépôt

Stars
 (2 083 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Hi sandeepmistry , first of all thank for your work !

I am here because I am facing an unexpected problem when i'm trying to bonding my phone (android 6.0.1/ OP3) to my rasp on ubutu mate (LTS) with the included bluetooth adapter or with an external adapter.

this is the crash log :

`/home/****/node_modules/bleno/lib/hci-socket/crypto.js:60 var output = new Buffer(input.length); ^

TypeError: Cannot read property 'length' of undefined at swap (/home/_u/node_modules/bleno/lib/hci-socket/crypto.js:60:32) at e (/home//node_modules/bleno/lib/hci-socket/crypto.js:37:9) at Object.c1 (/home/**/node_modules/bleno/lib/hci-socket/crypto.js:22:9) at Smp.handlePairingRandom (/home/**/node_modules/bleno/lib/hci-socket/smp.js:130:12) at Smp.onAclStreamData (/home/**/node_modules/bleno/lib/hci-socket/smp.js:58:10) at emitTwo (events.js:92:20) at emit (events.js:172:7) at AclStream.push (/home/__/node_modules/bleno/lib/hci-socket/acl-stream.js:26:10) at BlenoBindings.onAclDataPkt (/home/_/node_modules/bleno/lib/hci-socket/bindings.js:198:21) at emitThree (events.js:97:13)`

Guide contributeur