Closed Alvish0407 closed 4 months ago
What makes you think it’s this plug-in responsible? All evidence points to some other plug-in named “background_locator_2”.
Last Exception Backtrace: 0 CoreFoundation 0x1804ae0ec __exceptionPreprocess + 160 1 libobjc.A.dylib 0x180087db4 objc_exception_throw + 56 2 Foundation 0x180d17058 userInfoForFileAndLine + 0 3 background_locator_2 0x10525b17c -[BackgroundLocatorPlugin startLocatorService:] + 176 (BackgroundLocatorPlugin.m:165) 4 background_locator_2 0x10525a7d8 -[BackgroundLocatorPlugin application:didFinishLaunchingWithOptions:] + 164 (BackgroundLocatorPlugin.m:62) 5 Flutter 0x10b30d864 -[FlutterPluginAppLifeCycleDelegate application:didFinishLaunchingWithOptions:] + 232
Ohh, it shouldn't be there. I'm Sorry. My bad. I encountered it so many time and saw background
in logs. So, rushed to post.
reset: false
btw, if you don’t know what that option does, delete it.
reset: false
btw, if you don’t know what that option does, delete it.
It overrides config every-time it gets called if it's true
.
Perfectly working. Most of the time it's us who messed things up. I have gone through lots of issues and majority of the time it's developer who does't know the implementations or Philosophy Of Operation
. Thanks for helping us out.
Your Environment
flutter doctor
):• No issues found!
Expected Behavior
Actual Behavior
iOS App should relaunch in background and resume tracking.
Steps to Reproduce
start
the service and simulateCity Bicycle Ride
Runner quit unexpectedly
error will occurContext
Relaunch iOS app in background, after termination of the app
Debug logs
Logs
``` ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Incident Identifier: 9DE5E106-8200-43D0-A4FD-62A05076E175 CrashReporter Key: ECDFF0E1-CED0-4F26-E4C9-33B54D4856EE Hardware Model: MacBookAir10,1 Process: Runner [78461] Path: /Users/USER/Library/Developer/CoreSimulator/Devices/0B9FD8C3-CC16-4CC1-AFAD-DA2309B80698/data/Containers/Bundle/Application/383BEBF6-55AD-4454-A0EF-7DB314C9A6E2/Runner.app/Runner Identifier: * Version: 1.22.3 (95) Code Type: ARM-64 (Native) Role: Non UI Parent Process: launchd_sim [52260] Coalition: com.apple.CoreSimulator.SimDevice.0B9FD8C3-CC16-4CC1-AFAD-DA2309B80698 [6018] Responsible Process: SimulatorTrampoline [4592] Date/Time: 2024-07-22 13:41:24.6805 +0530 Launch Time: 2024-07-22 13:41:23.4841 +0530 OS Version: macOS 14.5 (23F79) Release Type: User Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: SIGNAL 6 Abort trap: 6 Terminating Process: Runner [78461] Triggered by Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x1804ae0ec __exceptionPreprocess + 160 1 libobjc.A.dylib 0x180087db4 objc_exception_throw + 56 2 Foundation 0x180d17058 _userInfoForFileAndLine + 0 3 background_locator_2 0x10525b17c -[BackgroundLocatorPlugin startLocatorService:] + 176 (BackgroundLocatorPlugin.m:165) 4 background_locator_2 0x10525a7d8 -[BackgroundLocatorPlugin application:didFinishLaunchingWithOptions:] + 164 (BackgroundLocatorPlugin.m:62) 5 Flutter 0x10b30d864 -[FlutterPluginAppLifeCycleDelegate application:didFinishLaunchingWithOptions:] + 232 6 Runner 0x10490caec AppDelegate.application(_:didFinishLaunchingWithOptions:) + 332 (AppDelegate.swift:13) 7 Runner 0x10490cf04 @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 196 8 UIKitCore 0x1853cd430 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 312 9 UIKitCore 0x1853ce890 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 2788 10 UIKitCore 0x1853d33d0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 856 11 UIKitCore 0x184a71ee4 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 104 12 UIKitCore 0x184f94bd8 _UIScenePerformActionsWithLifecycleActionMask + 96 13 UIKitCore 0x184a727e4 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 188 14 UIKitCore 0x184a723c4 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 320 15 UIKitCore 0x184a7263c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 576 16 UIKitCore 0x184a72040 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 244 17 UIKitCore 0x184a7c354 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 140 18 UIKitCore 0x184e934a4 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 656 19 UIKitCore 0x184faadec _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 196 20 UIKitCore 0x184a7c060 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 288 21 UIKitCore 0x1848d8528 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.199 + 608 22 UIKitCore 0x1848d72d8 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 208 23 UIKitCore 0x1848d81ac -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 220 24 UIKitCore 0x1853d20f0 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 484 25 UIKitCore 0x184ebae14 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 260 26 FrontBoardServices 0x186f22298 -[FBSScene _callOutQueue_didCreateWithTransitionContext:completion:] + 296 27 FrontBoardServices 0x186f4c388 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.82 + 224 28 FrontBoardServices 0x186f2ee0c -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 160 29 FrontBoardServices 0x186f4c100 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke + 284 30 libdispatch.dylib 0x180171978 _dispatch_client_callout + 16 31 libdispatch.dylib 0x1801758d8 _dispatch_block_invoke_direct + 380 32 FrontBoardServices 0x186f6fad8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 44 33 FrontBoardServices 0x186f6f9b4 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 196 34 FrontBoardServices 0x186f6fb0c -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 24 35 CoreFoundation 0x18040ee48 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 36 CoreFoundation 0x18040ed90 __CFRunLoopDoSource0 + 172 37 CoreFoundation 0x18040e500 __CFRunLoopDoSources0 + 232 38 CoreFoundation 0x180408be8 __CFRunLoopRun + 768 39 CoreFoundation 0x1804084d4 CFRunLoopRunSpecific + 572 40 GraphicsServices 0x18ef2aae4 GSEventRunModal + 160 41 UIKitCore 0x1853d0a28 -[UIApplication _run] + 868 42 UIKitCore 0x1853d46b0 UIApplicationMain + 124 43 Runner 0x10490d07c main + 64 (AppDelegate.swift:6) 44 dyld_sim 0x105275544 start_sim + 20 45 dyld 0x104c220e0 start + 2360 46 ??? 0x717e800000000000 ??? Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x106bd13b0 __pthread_kill + 8 1 libsystem_pthread.dylib 0x106ddf124 pthread_kill + 256 2 libsystem_c.dylib 0x1801655c0 abort + 104 3 libc++abi.dylib 0x1802a7778 abort_message + 128 4 libc++abi.dylib 0x180298ecc demangling_terminate_handler() + 300 5 libobjc.A.dylib 0x180063498 _objc_terminate() + 124 6 libc++abi.dylib 0x1802a6c50 std::__terminate(void (*)()) + 12 7 libc++abi.dylib 0x1802a6c00 std::terminate() + 52 8 libdispatch.dylib 0x18017198c _dispatch_client_callout + 36 9 libdispatch.dylib 0x1801758d8 _dispatch_block_invoke_direct + 380 10 FrontBoardServices 0x186f6fad8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 44 11 FrontBoardServices 0x186f6f9b4 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 196 12 FrontBoardServices 0x186f6fb0c -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 24 13 CoreFoundation 0x18040ee48 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 14 CoreFoundation 0x18040ed90 __CFRunLoopDoSource0 + 172 15 CoreFoundation 0x18040e500 __CFRunLoopDoSources0 + 232 16 CoreFoundation 0x180408be8 __CFRunLoopRun + 768 17 CoreFoundation 0x1804084d4 CFRunLoopRunSpecific + 572 18 GraphicsServices 0x18ef2aae4 GSEventRunModal + 160 19 UIKitCore 0x1853d0a28 -[UIApplication _run] + 868 20 UIKitCore 0x1853d46b0 UIApplicationMain + 124 21 Runner 0x10490d07c main + 64 (AppDelegate.swift:6) 22 dyld_sim 0x105275544 start_sim + 20 23 dyld 0x104c220e0 start + 2360 Thread 1: 0 libsystem_pthread.dylib 0x106dda5cc start_wqthread + 0 Thread 2: 0 libsystem_pthread.dylib 0x106dda5cc start_wqthread + 0 Thread 3: 0 libsystem_pthread.dylib 0x106dda5cc start_wqthread + 0 Thread 4: 0 libsystem_pthread.dylib 0x106dda5cc start_wqthread + 0 Thread 5:: com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x106bc9570 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x106bdab80 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x106bd1798 mach_msg_overwrite + 532 3 libsystem_kernel.dylib 0x106bc98e8 mach_msg + 20 4 CoreFoundation 0x18040e684 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x180408d64 __CFRunLoopRun + 1148 6 CoreFoundation 0x1804084d4 CFRunLoopRunSpecific + 572 7 Foundation 0x180dd340c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208 8 Foundation 0x180dd3630 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60 9 UIKitCore 0x1854773f8 -[UIEventFetcher threadMain] + 404 10 Foundation 0x180df9c64 __NSThread__start__ + 720 11 libsystem_pthread.dylib 0x106ddf414 _pthread_start + 104 12 libsystem_pthread.dylib 0x106dda5e0 thread_start + 8 Thread 6:: Dispatch queue: com.google.fira.worker 0 libsystem_kernel.dylib 0x106bcad60 pread + 8 1 libsqlite3.dylib 0x182b17c08 seekAndRead + 92 2 libsqlite3.dylib 0x182b12e70 unixRead + 204 3 libsqlite3.dylib 0x182b2688c readDbPage + 184 4 libsqlite3.dylib 0x182b2658c getPageNormal + 528 5 libsqlite3.dylib 0x182b527c4 checkTreePage + 332 6 libsqlite3.dylib 0x182b3e39c sqlite3VdbeExec + 39672 7 libsqlite3.dylib 0x182aeb26c sqlite3_step + 960 8 Runner 0x1049b456c -[APMSqliteStore validateDatabaseWithError:] + 88 9 Runner 0x1049b44a0 -[APMSqliteStore openAndValidateDatabase:] + 520 10 Runner 0x1049b0a64 -[APMSqliteStore initWithDatabasePath:error:] + 184 11 Runner 0x104930b54 -[APMDatabase initializeDatabaseResourcesWithContext:databasePath:error:] + 88 12 Runner 0x1049283b0 -[APMDatabase initWithDatabaseName:persistedConfig:error:] + 172 13 Runner 0x104950e44 __47-[APMMeasurement startMeasurementOnWorkerQueue]_block_invoke + 700 14 Runner 0x104950ac0 -[APMMeasurement startMeasurementOnWorkerQueue] + 140 15 Runner 0x10495038c -[APMMeasurement setEnabledOnWorkerQueue:] + 216 16 Runner 0x1049502a4 __29-[APMMeasurement setEnabled:]_block_invoke + 36 17 Runner 0x1049aacc0 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 44 18 libdispatch.dylib 0x180170104 _dispatch_call_block_and_release + 24 19 libdispatch.dylib 0x180171978 _dispatch_client_callout + 16 20 libdispatch.dylib 0x180179b10 _dispatch_lane_serial_drain + 960 21 libdispatch.dylib 0x18017a688 _dispatch_lane_invoke + 388 22 libdispatch.dylib 0x180185a84 _dispatch_root_queue_drain_deferred_wlh + 276 23 libdispatch.dylib 0x1801850d0 _dispatch_workloop_worker_thread + 448 24 libsystem_pthread.dylib 0x106ddb814 _pthread_wqthread + 284 25 libsystem_pthread.dylib 0x106dda5d4 start_wqthread + 8 Thread 7:: io.flutter.1.ui 0 libsystem_kernel.dylib 0x106bc9570 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x106bdab80 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x106bd1798 mach_msg_overwrite + 532 3 libsystem_kernel.dylib 0x106bc98e8 mach_msg + 20 4 CoreFoundation 0x18040e684 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x180408d64 __CFRunLoopRun + 1148 6 CoreFoundation 0x1804084d4 CFRunLoopRunSpecific + 572 7 Flutter 0x10b5f9e78 fml::MessageLoopDarwin::Run() + 88 8 Flutter 0x10b5f3098 fml::MessageLoopImpl::DoRun() + 40 9 Flutter 0x10b5f88f8 void* std::_fl::__thread_proxy[abi:v15000]