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

When disconnecting a Polar device, the app crashes #365

Open
bardram opened this issue Dec 2, 2024 · 1 comment
Open

When disconnecting a Polar device, the app crashes #365

bardram opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working wontfix This will not be worked on wrong repo Not an issue that belongs on this repository

Comments

@bardram
Copy link
Contributor

bardram commented Dec 2, 2024

A Polar Sense device is connected. When turning the Polar device off (using the hardware button) without disconnecting in the app, the app crashes.

Log
D/BluetoothGatt( 7078): onClientConnectionState() - status=8 clientIf=15 device=XX:XX:XX:XX:4E:32
D/BluetoothGatt( 7078): setCharacteristicNotification() - uuid: 00002a37-0000-1000-8000-00805f9b34fb enable: false
D/BluetoothGatt( 7078): close()
D/BluetoothGatt( 7078): unregisterApp() - mClientIf=15
2
D/BluetoothAdapter( 7078): getBleEnabledArray(): ON
D/BluetoothAdapter( 7078): semIsBleEnabled(): ON
D/BluetoothAdapter( 7078): getBleEnabledArray(): ON
D/BluetoothLeScanner( 7078): Start Scan with callback
D/BluetoothLeScanner( 7078): onScannerRegistered() - status=0 scannerId=8 mScannerId=0
E/flutter ( 7078): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(com.polar.androidcommunications.api.ble.exceptions.BleDisconnected, null, null, null)
E/flutter ( 7078): 
E/flutter ( 7078): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(com.polar.androidcommunications.api.ble.exceptions.BleDisconnected, null, null, null)
E/flutter ( 7078): 
E/flutter ( 7078): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(com.polar.androidcommunications.api.ble.exceptions.BleDisconnected, null, null, null)
E/flutter ( 7078): 
E/flutter ( 7078): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(com.polar.androidcommunications.api.ble.exceptions.BleDisconnected, null, null, null)
E/flutter ( 7078): 
E/flutter ( 7078): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(com.polar.androidcommunications.api.ble.exceptions.BleDisconnected, null, null, null)
E/flutter ( 7078): 
E/flutter ( 7078): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(com.polar.androidcommunications.api.ble.exceptions.BleDisconnected, null, null, null)
E/flutter ( 7078): 
E/flutter ( 7078): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(com.polar.androidcommunications.api.ble.exceptions.BleDisconnected, null, null, null)
E/flutter ( 7078): 
[log] [CAMS DEBUG] PolarDeviceManager - Polar event : Instance of 'PolarDeviceDisconnectedEvent'
[log] [CAMS DEBUG] PolarDeviceManager - setting device status: disconnected
[log] [CAMS DEBUG] SQLiteDataManager - wrote measurement to SQLite - id: 2736, type: dk.cachet.carp.error, device role name: Primary Phone.
@bardram bardram self-assigned this Dec 2, 2024
@bardram bardram added the bug Something isn't working label Dec 2, 2024
@bardram
Copy link
Contributor Author

bardram commented Dec 2, 2024

It's an unhandled PlatformException - this is hard to deal with.

Have created an issue in the Polar Plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on wrong repo Not an issue that belongs on this repository
Projects
None yet
Development

No branches or pull requests

1 participant