Hello
I'm creating a CBCentralManager to listen for changes to bluetooth state.
CBCentralManager bluetoothManager = new CBCentralManager(new CBCentralManagerDelegateAdapter() {
@Override
public void didUpdateState(CBCentralManager central) {
super.didUpdateState(central);
}
}, DispatchQueue.create("bluetoothStateManager", null));
I've tried with a private dispatch queue (as above) and with the main dispatch queue (using
DispatchQueue.getMainQueue()).
When the app is running on my phone, I:
- open control centre
- toggle bluetooth mode
- close control centre
- goto step 1
After a variable number of attempts (estimating, I'd say between 1 and 10) the app crashes.
On the console I get the following error:
06/03/16 21:46:25: [ERROR] AppLauncher failed with an exception:
06/03/16 21:46:25: [ERROR] java.lang.RuntimeException: The app crashed: Terminated due to signal 11. Check the device logs in Xcode (Window->Devices) for more info.
06/03/16 21:46:25: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.pipeStdOut(AppLauncher.java:829)
06/03/16 21:46:25: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.launchInternal(AppLauncher.java:734)
06/03/16 21:46:25: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.launch(AppLauncher.java:1052)
06/03/16 21:46:25: [ERROR] at org.robovm.compiler.target.ios.AppLauncherProcess$1.run(AppLauncherProcess.java:67)
I've attached the above-mentioned xcode device logs, but am struggling to see why the crash is occuring.
Is anyone able to shed some light?
Many thanks, sunil.