NordicSemiconductor / IOS-nRF-Connect

Info page
https://nordicsemiconductor.github.io/IOS-nRF-Connect/
138 stars 32 forks source link

App crash when it encounters badly configured peripheral #68

Closed AHurnell closed 4 years ago

AHurnell commented 4 years ago

I've noticed the app crashing with a

"Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)" error in utilities/CharacteristicReader.swift at line 42 "let val = aPointer.pointee".

I think if the peripheral device feeds the app bad data it causes this crash. I think this could be handled more safely by checking that aPointer.pointee is a meaningful value of the correct type.

(The badly configured peripheral I'm using is a particle argon using a health thermometer example. I think it became badly configured by attempting to connect to it using this app without pods installed.)

AHurnell commented 4 years ago

Sorry this is an issue with the nRF toolbox, not the connect app!