intuit/LocationManager

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'INTULocationManager should only be called from the main thread.' *** First throw call stack:

MeGaPk opened this issue · 1 comments

Found bug:

  • When you are opening App switch to Airplane mode and switch Bluetooth ON
  • App will crash
Aug  2 11:28:30 MeGaPk-iPhone Taxofon[1849] <Warning>: *** Assertion failure in -[INTULocationManager requestLocationWithDesiredAccuracy:timeout:delayUntilAuthorized:block:], /Users/Ivan/Documents/Workspace/client-ios/Pods/INTULocationManager/LocationManager/INTULocationManager/INTULocationManager.m:198
Aug  2 11:28:30 MeGaPk-iPhone Taxofon[1849] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'INTULocationManager should only be called from the main thread.'
    *** First throw call stack:
    (0x18138adb0 0x1809eff80 0x18138ac80 0x181d10154 0x100b2c6cc 0x10013619c 0x10012a058 0x1869c06b0 0x186ae4438 0x186ae4180 0x1869c0320 0x186ae4438 0x186ae45b0 0x186ae4180 0x1869bf688 0x186861230 0x186626118 0x1864e88ec 0x1864e8844 0x18662daf4 0x18662d8f8 0x18662d730 0x186630698 0x1864f75b4 0x18663246c 0x186630f70 0x186501374 0x1865010e8 0x18669be5c 0x1865a7e40 0x1865a7b1c 0x1865a7a84 0x1864e41e4 0x183e7698c 0x183e715c8 0x183e71488 0x183e70ab8 0x183e70818 0x183e9fbcc 0x180fee1e0 0x180fedd58 0x180fed53c 0x180fed020)

I suspect this was because your code was calling it from a background thread? Give the latest release a try, 4.3.0.