-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#41037Labels
a: productionIssues experienced in live production appsIssues experienced in live production appsc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
Overview
I'm experiencing unexpected crashes in my Flutter app while in the background. I haven't been able to reproduce the error, but the Firebase Crashlytics report indicates that it occurs 100% in the background.I have not been able to create reproduction code because the reproduction steps are unknown.
Logs
stacktrace
Crashed: com.apple.main-thread
0 Flutter 0x10d6c -[FlutterEngine iosPlatformView] + 84 (ref_ptr.h:84)
1 Flutter 0x11334 -[FlutterEngine notifyViewControllerDeallocated] + 418 (FlutterEngine.mm:418)
2 CoreFoundation 0x373a0 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
3 CoreFoundation 0xde444 ___CFXRegistrationPost_block_invoke + 88
4 CoreFoundation 0xc16f4 _CFXRegistrationPost + 440
5 CoreFoundation 0x4b9b8 _CFXNotificationPost + 704
6 Foundation 0x5cd0c -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
7 Flutter 0x2edb4 -[FlutterViewController deregisterNotifications] + 845 (FlutterViewController.mm:845)
8 Flutter 0x2ee28 -[FlutterViewController dealloc] + 856 (FlutterViewController.mm:856)
9 CoreFoundation 0x86668 _CFXNotificationRegistrationDispose + 112
10 CoreFoundation 0xdb948 _CFXNotificationRegistrationBufferDestroy + 56
11 CoreFoundation 0x4b9e0 _CFXNotificationPost + 744
12 Foundation 0x5cd0c -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
13 UIKitCore 0xd40b7c -[UIApplication _terminateWithStatus:] + 232
14 UIKitCore 0x290708 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 112
15 UIKitCore 0x6a7dec -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 164
16 UIKitCore 0xd3cf74 -[UIApplication workspaceShouldExit:withTransitionContext:] + 176
17 FrontBoardServices 0x41e74 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 72
18 FrontBoardServices 0x6c24 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
19 FrontBoardServices 0x41e14 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 128
20 libdispatch.dylib 0x3f88 _dispatch_client_callout + 20
21 libdispatch.dylib 0x7a08 _dispatch_block_invoke_direct + 264
22 FrontBoardServices 0x10d40 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
23 FrontBoardServices 0x108dc -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
24 FrontBoardServices 0x13184 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
25 CoreFoundation 0xd5f24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
26 CoreFoundation 0xe22fc __CFRunLoopDoSource0 + 176
27 CoreFoundation 0x661c0 __CFRunLoopDoSources0 + 244
28 CoreFoundation 0x7bb7c __CFRunLoopRun + 836
29 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612
30 GraphicsServices 0x1368 GSEventRunModal + 164
31 UIKitCore 0x3a1668 -[UIApplication _run] + 888
32 UIKitCore 0x3a12cc UIApplicationMain + 340
33 XX 0x59f204 main + 40 (AppDelegate.swift:40)
34 ??? 0x1d3bb8960
Environment
% flutter --version
Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9944297138 (7 weeks ago) • 2023-02-08 15:46:04 -0800
Engine • revision 248290d6d5
Tools • Dart 2.19.2 • DevTools 2.20.1
Additional Information
- Initially, I suspected that the issue was the same as [iOS] Crashed: com.apple.main-thread - [FlutterEngine iosPlatformView] #112545, which mentioned that it would be resolved in Flutter version 3.5. Therefore, I upgraded to 3.7.3. However, similar reports are still being submitted.
- The stack trace is the same as in [Production] [iOS] App crashes when closed with PlatformView active (UiKitView/Camera/AVCaptureSession) #98656, but it is unclear whether the workaround described in [Production] [iOS] App crashes when closed with PlatformView active (UiKitView/Camera/AVCaptureSession) #98656 (comment) is the best one in this situation.
Metadata
Metadata
Assignees
Labels
a: productionIssues experienced in live production appsIssues experienced in live production appsc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specifically