rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
288 stars 327 forks source link

App crash on startup iOS 14+ #249

Closed Wian-TMC closed 3 years ago

Wian-TMC commented 3 years ago

The app still crashes on startup often, but not always. This only seems to happen for iOS.

Here is the crash log:


Launch Time:         2021-06-14 14:49:46.9571 +0200
OS Version:          iPhone OS 14.6 (18F72)
Release Type:        User
Baseband Version:    2.05.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                  0x1952e2754 __exceptionPreprocess + 220 (NSException.m:199)
1   libobjc.A.dylib                 0x1a9da97a8 objc_exception_throw + 60 (objc-exception.mm:565)
2   CoreFoundation                  0x1951e43f8 +[NSException raise:format:arguments:] + 100 (NSException.m:146)
3   Foundation                      0x1965b8714 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 132 (NSException.m:231)
4   Flutter                         0x1062f115c 0x1062e0000 + 69980
5   background_locator              0x1060f3dcc 0x1060ec000 + 32204
6   background_locator              0x1060f3bac 0x1060ec000 + 31660
7   background_locator              0x1060f3c2c 0x1060ec000 + 31788
8   CoreLocation                    0x19b19376c -[CLLocationManager onClientEventLocation:forceMapMatching:type:] + 1544 (CLLocationManager.m:2497)
9   CoreLocation                    0x19b192a80 -[CLLocationManager onClientEvent:supportInfo:] + 1416 (CLLocationManager.m:2250)
10  CoreLocation                    0x19b178d1c invocation function for block in CLClientInvokeCallback(__CLClient*, CLClientEvent, objc_object*) + 180 (CLClient.mm:711)
11  CoreFoundation                  0x19525c718 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28 (CFRunLoop.c:1815)
12  CoreFoundation                  0x19525b96c __CFRunLoopDoBlocks + 408 (CFRunLoop.c:1857)
13  CoreFoundation                  0x195255f54 __CFRunLoopRun + 1728 (CFRunLoop.c:3172)
14  CoreFoundation                  0x195255360 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
15  GraphicsServices                0x1ac893734 0x1ac890000 + 14132
16  UIKitCore                       0x197cd0584 -[UIApplication _run] + 1072 (UIApplication.m:3269)
17  UIKitCore                       0x197cd5df4 UIApplicationMain + 168 (UIApplication.m:4740)
18  Runner                          0x104969d90 0x104964000 + 23952
19  libdyld.dylib                   0x194f11cf8 start + 4
Wian-TMC commented 3 years ago

This could be related to #237