Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Flutter method channel crash in background #165873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LongXiangGuo opened this issue Mar 25, 2025 · 5 comments
Closed

Flutter method channel crash in background #165873

LongXiangGuo opened this issue Mar 25, 2025 · 5 comments
Labels
a: production Issues experienced in live production apps c: crash Stack traces logged to the console perf: memory Performance issues related to memory platform-ios iOS applications specifically r: timeout Issue is closed due to author not providing the requested details in time team-ios Owned by iOS platform team

Comments

@LongXiangGuo
Copy link

LongXiangGuo commented Mar 25, 2025

Steps to reproduce

Flutter method channel crash in background 1.19% in appstore, 6.62‱ in tester environment, from the stacktrace I could know which feature cause this issue, does some one known this issue, or it's a bug in flutter sdk?

shell/platform/darwin/common/framework/Source/FlutterChannels.mm:
  205  @implementation FlutterMethodCall
  206: + (instancetype)methodCallWithMethodName:(NSString*)method arguments:(id)arguments { // it's the crash line

ENV

Flutter 3.22.3 • channel [user-branch] • unknown source
Framework • revision b0850beeb2 (8 months ago) • 2024-07-16 21:43:41 -0700
Engine • revision 235db911ba
Tools • Dart 3.4.4 • DevTools 2.34.3
Thread 0 name:  com.apple.main-thread
libobjc.A.dylib    _objc_retain (in libobjc.A.dylib)
Flutter    +[FlutterMethodCall methodCallWithMethodName:arguments:] (in Flutter:FlutterChannels.mm:206)
Flutter    -[FlutterMethodChannel invokeMethod:arguments:] (in Flutter:FlutterChannels.mm:279)
libdispatch.dylib    __dispatch_call_block_and_release (in libdispatch.dylib)
libdispatch.dylib    __dispatch_client_callout (in libdispatch.dylib)
libdispatch.dylib    __dispatch_main_queue_drain (in libdispatch.dylib)
libdispatch.dylib    __dispatch_main_queue_callback_4CF (in libdispatch.dylib)
CoreFoundation    ___CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation)
CoreFoundation    ___CFRunLoopRun (in CoreFoundation)
CoreFoundation    _CFRunLoopRunSpecific (in CoreFoundation)
GraphicsServices    _GSEventRunModal (in GraphicsServices)
UIKitCore    -[UIApplication _run] (in UIKitCore)
UIKitCore    _UIApplicationMain (in UIKitCore)
My App    main (in My App:AppDelegate.swift:25)
dyld    start (in dyld)

I have not produce it yet.

Incident Identifier: 7B8356A0-AA62-48C6-ACF8-1E2538E355A4
Distributor ID: com.apple.AppStore
Hardware Model: iPhone17,2
Process: My xxx [40950]
Path: /private/var/containers/Bundle/Application/3A39836B-3708-46F9-96FA-C5418C00FDFD/My xxx.app/My xxx
Identifier: de.xxx.connected.mobile20.cn
Version: 5.3.0 (41515)
AppStoreTools: 16C7015
AppVariant: 1:iPhone17,2:18
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: de.xxx.connected.mobile20.cn [13152]

Date/Time: 2025-03-17 02:11:46.9129 +0800
Launch Time: 2025-03-16 17:13:48.9387 +0800
OS Version: iPhone OS 18.3.1 (22D72)
Release Type: User
Baseband Version: 1.40.03
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000a91679a48
Exception Codes: 0x0000000000000001, 0x0000000a91679a48
VM Region Info: 0xa91679a48 is not in any region. Bytes after previous region: 31967386185 Bytes before following region: 22256575928
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 300000000-320000000 [512.0M] rw-/rwx SM=COW
---> GAP OF 0xca0000000 BYTES
commpage (reserved) fc0000000-1000000000 [ 1.0G] ---/--- SM=NUL reserved VM address space (unallocated)
Triggered by Thread: 0

Thread 0 name:
Thread 0 Crashed:
0 libobjc.A.dylib 0x0000000189fc5c5c objc_retain + 16 (:-1)
1 Flutter 0x000000010a515aa4 0x109f4c000 + 6068900
2 Flutter 0x000000010a512e14 0x109f4c000 + 6057492
3 libdispatch.dylib 0x000000019480d248 _dispatch_call_block_and_release + 32 (init.c:1549)
4 libdispatch.dylib 0x000000019480efa8 _dispatch_client_callout + 20 (object.m:576)
5 libdispatch.dylib 0x000000019481da34 _dispatch_main_queue_drain + 984 (queue.c:8093)
6 libdispatch.dylib 0x000000019481d64c _dispatch_main_queue_callback_4CF + 44 (queue.c:8253)
7 CoreFoundation 0x000000018cac6bcc CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 (CFRunLoop.c:1793)
8 CoreFoundation 0x000000018cac31c0 __CFRunLoopRun + 1996 (CFRunLoop.c:3163)
9 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
10 GraphicsServices 0x00000001d9d814c0 GSEventRunModal + 164 (GSEvent.c:2196)
11 UIKitCore 0x000000018f65e674 -[UIApplication _run] + 816 (UIApplication.m:3846)
12 UIKitCore 0x000000018f284e88 UIApplicationMain + 340 (UIApplication.m:5503)
13 My xxx 0x00000001000bf428 main + 64 (AppDelegate.swift:25)
14 dyld 0x00000001b2d6dde8 start + 2724 (dyldMain.cpp:1338)

Thread 1:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 Foundation 0x000000018b67b0e8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373)
8 Foundation 0x000000018b7d7bb0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 (NSRunLoop.m:420)
9 UIKitCore 0x000000018f6f1a78 -[UIEventFetcher threadMain] + 420 (UIEventFetcher.m:1351)
10 Foundation 0x000000018b766f30 NSThread__start + 724 (NSThread.m:991)
11 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
12 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 Flutter 0x000000010a23aae0 0x109f4c000 + 3074784
8 Flutter 0x000000010a23a728 0x109f4c000 + 3073832
9 Flutter 0x000000010a23a438 0x109f4c000 + 3073080
10 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
11 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 Flutter 0x000000010a23aae0 0x109f4c000 + 3074784
8 Flutter 0x000000010a23a728 0x109f4c000 + 3073832
9 Flutter 0x000000010a23a438 0x109f4c000 + 3073080
10 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
11 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 Flutter 0x000000010a23aae0 0x109f4c000 + 3074784
8 Flutter 0x000000010a23a728 0x109f4c000 + 3073832
9 Flutter 0x000000010a23a438 0x109f4c000 + 3073080
10 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
11 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x00000001de1aa090 __psynch_cvwait + 8 (:-1)
1 libsystem_pthread.dylib 0x0000000217810f98 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2 Flutter 0x0000000109fa4df4 0x109f4c000 + 364020
3 Flutter 0x000000010a2344d0 0x109f4c000 + 3048656
4 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
5 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x00000001de1aa090 __psynch_cvwait + 8 (:-1)
1 libsystem_pthread.dylib 0x0000000217810f98 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2 Flutter 0x0000000109fa4df4 0x109f4c000 + 364020
3 Flutter 0x000000010a2344d0 0x109f4c000 + 3048656
4 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
5 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001de1aa090 __psynch_cvwait + 8 (:-1)
1 libsystem_pthread.dylib 0x0000000217810f98 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2 Flutter 0x0000000109fa4df4 0x109f4c000 + 364020
3 Flutter 0x000000010a2344d0 0x109f4c000 + 3048656
4 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
5 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001de1aa090 __psynch_cvwait + 8 (:-1)
1 libsystem_pthread.dylib 0x0000000217810f98 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2 Flutter 0x0000000109fa4df4 0x109f4c000 + 364020
3 Flutter 0x000000010a2344d0 0x109f4c000 + 3048656
4 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
5 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 10 name:
Thread 10:
0 libsystem_kernel.dylib 0x00000001de1aa090 __psynch_cvwait + 8 (:-1)
1 libsystem_pthread.dylib 0x0000000217810f98 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2 Flutter 0x0000000109fa4df4 0x109f4c000 + 364020
3 Flutter 0x000000010a2344d0 0x109f4c000 + 3048656
4 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
5 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 11 name:
Thread 11:
0 libsystem_kernel.dylib 0x00000001de1aa090 __psynch_cvwait + 8 (:-1)
1 libsystem_pthread.dylib 0x0000000217810f98 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2 Flutter 0x0000000109fa4df4 0x109f4c000 + 364020
3 Flutter 0x000000010a2344d0 0x109f4c000 + 3048656
4 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
5 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 12 name:
Thread 12:
0 libsystem_kernel.dylib 0x00000001de1ab4cc kevent + 8 (:-1)
1 Flutter 0x000000010a4c9e98 0x109f4c000 + 5758616
2 Flutter 0x000000010a4f52f0 0x109f4c000 + 5935856
3 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
4 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 13 name:
Thread 13:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 Flutter 0x000000010a23aae0 0x109f4c000 + 3074784
8 Flutter 0x000000010a23a728 0x109f4c000 + 3073832
9 Flutter 0x000000010a23a438 0x109f4c000 + 3073080
10 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
11 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 14 name:
Thread 14:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 Flutter 0x000000010a23aae0 0x109f4c000 + 3074784
8 Flutter 0x000000010a23a728 0x109f4c000 + 3073832
9 Flutter 0x000000010a23a438 0x109f4c000 + 3073080
10 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
11 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 15 name:
Thread 15:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 Flutter 0x000000010a23aae0 0x109f4c000 + 3074784
8 Flutter 0x000000010a23a728 0x109f4c000 + 3073832
9 Flutter 0x000000010a23a438 0x109f4c000 + 3073080
10 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
11 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 16 name:
Thread 16:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 My xxx 0x00000001001496ec hmd_mach_server + 576 (HMDCrashDetectMach.c:224)
5 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
6 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 17 name:
Thread 17:
0 libsystem_kernel.dylib 0x00000001de1aa2b0 __semwait_signal + 8 (:-1)
1 libsystem_c.dylib 0x00000001948695cc nanosleep + 220 (nanosleep.c:104)
2 libsystem_c.dylib 0x00000001948694e4 usleep + 68 (usleep.c:52)
3 My xxx 0x000000010014214c thread_entrance + 340 (HMDCrashDeadLockMonitor.c:102)
4 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
5 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 18 name:
Thread 18:
0 libsystem_kernel.dylib 0x00000001de1aa090 __psynch_cvwait + 8 (:-1)
1 libsystem_pthread.dylib 0x0000000217810f98 _pthread_cond_wait + 1204 (pthread_cond.c:862)
2 My xxx 0x000000010020d314 HMDMainRunloopMonitor::runMonitor() + 768 (HMDMainRunloopMonitor.mm:418)
3 libdispatch.dylib 0x000000019480d248 _dispatch_call_block_and_release + 32 (init.c:1549)
4 libdispatch.dylib 0x000000019480efa8 _dispatch_client_callout + 20 (object.m:576)
5 libdispatch.dylib 0x00000001948165cc _dispatch_lane_serial_drain + 768 (queue.c:3934)
6 libdispatch.dylib 0x0000000194817124 _dispatch_lane_invoke + 380 (queue.c:4025)
7 libdispatch.dylib 0x000000019482238c _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:7193)
8 libdispatch.dylib 0x0000000194821bd8 _dispatch_workloop_worker_thread + 540 (queue.c:6787)
9 libsystem_pthread.dylib 0x0000000217810680 _pthread_wqthread + 288 (pthread.c:2696)
10 libsystem_pthread.dylib 0x000000021780e474 start_wqthread + 8 (:-1)

Thread 19 name:
Thread 19:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 CFNetwork 0x000000018e033c4c +[__CFN_CoreSchedulingSetRunnable _run:] + 416 (CoreSchedulingSet.mm:1473)
8 Foundation 0x000000018b766f30 NSThread__start + 724 (NSThread.m:991)
9 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
10 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 20 name:
Thread 20:
0 libsystem_kernel.dylib 0x00000001de1a4788 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001de1a7e98 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001de1a7db0 mach_msg_overwrite + 424 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001de1a7bfc mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x000000018cac3804 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2637)
5 CoreFoundation 0x000000018cac2eb0 __CFRunLoopRun + 1212 (CFRunLoop.c:3021)
6 CoreFoundation 0x000000018cb15284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
7 CoreFoundation 0x000000018cb28824 CFRunLoopRun + 64 (CFRunLoop.c:3460)
8 CoreMotion 0x000000019a1a9950 CLMotionCore::runMotionThread(void*) + 1292 (CLMotionCore.mm:376)
9 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
10 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 21 name:
Thread 21:
0 libsystem_platform.dylib 0x0000000217763fcc _platform_memset + 140 (:-1)
1 libsystem_malloc.dylib 0x000000019d07f950 _xzm_xzone_malloc_small + 2220 (xzone_malloc.c:2183)
2 CoreFoundation 0x000000018ca62e04 mdict_rehashd + 88 (NSDictionaryM_Common.h:79)
3 CoreFoundation 0x000000018ca59fbc -[__NSDictionaryM setObject:forKeyedSubscript:] + 788 (NSDictionaryM.m:202)
4 My xxx 0x000000010019e75c IMP_setObject_forKeyedSubscript + 624 (HMDProtectContainers.m:1395)
5 AXCoreUtilities 0x0000000199b64f58 -[AXCodeLoader _initializeCodeItemMappings] + 316
6 AXCoreUtilities 0x0000000199b64e0c -[AXCodeLoader _updateAccessibilityCodeItemDefinitionsIfNeeded] + 264
7 AXCoreUtilities 0x0000000199b63cac __76-[AXCodeLoader beginTrackingLoadedCodeItemsWithMode:completion:targetQueue:]_block_invoke + 104
8 libdispatch.dylib 0x000000019480d248 _dispatch_call_block_and_release + 32 (init.c:1549)
9 libdispatch.dylib 0x000000019480efa8 _dispatch_client_callout + 20 (object.m:576)
10 libdispatch.dylib 0x00000001948165cc _dispatch_lane_serial_drain + 768 (queue.c:3934)
11 libdispatch.dylib 0x0000000194817124 _dispatch_lane_invoke + 380 (queue.c:4025)
12 libdispatch.dylib 0x000000019482238c _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:7193)
13 libdispatch.dylib 0x0000000194821bd8 _dispatch_workloop_worker_thread + 540 (queue.c:6787)
14 libsystem_pthread.dylib 0x0000000217810680 _pthread_wqthread + 288 (pthread.c:2696)
15 libsystem_pthread.dylib 0x000000021780e474 start_wqthread + 8 (:-1)

Thread 22:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 23:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 24:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 25:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 26:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 27 name:
Thread 27:
0 libsystem_kernel.dylib 0x00000001de1a471c semaphore_timedwait_trap + 8 (:-1)
1 libdispatch.dylib 0x000000019480f5c0 _dispatch_sema4_timedwait + 64 (lock.c:154)
2 libdispatch.dylib 0x000000019480fbc0 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3 libdispatch.dylib 0x0000000194820c94 _dispatch_worker_thread + 324 (queue.c:7509)
4 libsystem_pthread.dylib 0x000000021780e7d0 _pthread_start + 136 (pthread.c:931)
5 libsystem_pthread.dylib 0x000000021780e480 thread_start + 8 (:-1)

Thread 28 name:
Thread 28:
0 libsystem_kernel.dylib 0x00000001de1a9570 __ulock_wake + 8 (:-1)
1 libsystem_platform.dylib 0x0000000217762c74 _os_unfair_lock_unlock_slow + 56 (lock.c:651)
2 CFNetwork 0x000000018dfdfef4 RequestBodyStream::cleanup() + 212 (HTTPRequestBody.cpp:420)
3 CFNetwork 0x000000018dfecf94 HTTPTransaction::_onqueue_closeAndCleanup() + 80 (HTTPTransaction.cpp:1200)
4 CFNetwork 0x000000018dfecad8 HTTPTransaction::closeAndClearHandler() + 96 (HTTPTransaction.cpp:834)
5 CFNetwork 0x000000018df89518 HTTPProtocol::destroyReadStream() + 1288 (HTTPProtocol.cpp:2477)
6 CFNetwork 0x000000018df88f90 HTTPProtocol::cleanupStreams() + 24 (HTTPProtocol.cpp:2511)
7 CFNetwork 0x000000018df883bc HTTPProtocol::endEncountered() + 364 (HTTPProtocol.cpp:6204)
8 CFNetwork 0x000000018df785b8 HTTPProtocol::handleStreamEvent(__CFHTTPMessage*, NSObject<OS_dispatch_data>, CFStreamError const) + 840 (HTTPProtocol.cpp:2413)
9 CFNetwork 0x000000018df5f970 HTTPTransaction::_onqueue_invokeHandler() + 400 (HTTPTransaction.cpp:1363)
10 CFNetwork 0x000000018df5f6d8 HTTPConnection::_onqueue_responseDataArrived(NSObject<OS_dispatch_data>, CFStreamError, bool) + 652 (HTTPConnection.cpp:1534)
11 CFNetwork 0x000000018dfc1e8c HTTPEngine::_readBodyFinish(NSObject<OS_dispatch_data>
, CFStreamError, bool) + 156 (HTTPEngine.cpp:1193)
12 CFNetwork 0x000000018e00a558 HTTPEngine::_deliverBodyBytes(NSObject<OS_dispatch_data>, CFStreamError, bool) + 252 (HTTPEngine.cpp:1700)
13 CFNetwork 0x000000018e18a090 HTTPEngine::_chunkedReadTrailerFinish(std::__1::shared_ptr, CFStreamError) + 152 (HTTPEngine.cpp:2909)
14 CFNetwork 0x000000018e189ce8 HTTPEngine::_chunkedReadTrailerDoParse(std::__1::shared_ptr, CFStreamError, bool) + 536 (HTTPEngine.cpp:2883)
15 CFNetwork 0x000000018e188b94 HTTPEngine::_chunkedReadTrailer() + 416 (HTTPEngine.cpp:2799)
16 CFNetwork 0x000000018e189178 HTTPEngine::_chunkedParseHeader(CFStreamError) + 1364 (HTTPEngine.cpp:2448)
17 CFNetwork 0x000000018e189a98 invocation function for block in HTTPEngine::_chunkedReadHeader() + 240 (HTTPEngine.cpp:2754)
18 CFNetwork 0x000000018df86c30 ConnectionReadAggregator::_invokeCB() + 248 (ConnectionReadAggregator.mm:247)
19 CFNetwork 0x000000018df849c0 invocation function for block in NWIOConnection::readWithContext(NSObject<OS_nw_content_context>
, unsigned int, unsigned int, void (NSObject<OS_nw_content_context>, NSObject<OS_dispatch_data>, b... + 580 (NWIOConnection.cpp:247)
20 libdispatch.dylib 0x000000019481e394 _dispatch_block_async_invoke2 + 148 (queue.c:574)
21 libdispatch.dylib 0x000000019480efa8 _dispatch_client_callout + 20 (object.m:576)
22 libdispatch.dylib 0x00000001948165cc _dispatch_lane_serial_drain + 768 (queue.c:3934)
23 libdispatch.dylib 0x0000000194817158 _dispatch_lane_invoke + 432 (queue.c:4025)
24 libdispatch.dylib 0x00000001948185c0 _dispatch_workloop_invoke + 1744 (queue.c:4704)
25 libdispatch.dylib 0x000000019482238c _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:7193)
26 libdispatch.dylib 0x0000000194821bd8 _dispatch_workloop_worker_thread + 540 (queue.c:6787)
27 libsystem_pthread.dylib 0x0000000217810680 _pthread_wqthread + 288 (pthread.c:2696)
28 libsystem_pthread.dylib 0x000000021780e474 start_wqthread + 8 (:-1)

Thread 29:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 30:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 31:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 32 name:
Thread 32:
0 libsystem_kernel.dylib 0x00000001de1aabd0 __ulock_wait + 8 (:-1)
1 libdispatch.dylib 0x000000019480f998 _dlock_wait + 56 (lock.c:326)
2 libdispatch.dylib 0x000000019480f74c _dispatch_thread_event_wait_slow + 56 (lock.c:558)
3 libdispatch.dylib 0x000000019481eae8 DISPATCH_WAIT_FOR_QUEUE + 368 (queue.c:1702)
4 libdispatch.dylib 0x000000019481e694 _dispatch_sync_f_slow + 148 (queue.c:1799)
5 AXCoreUtilities 0x0000000199b76564 AXPerformBlockSynchronouslyOnMainThread + 84
6 libdispatch.dylib 0x000000019480d248 _dispatch_call_block_and_release + 32 (init.c:1549)
7 libdispatch.dylib 0x000000019480efa8 _dispatch_client_callout + 20 (object.m:576)
8 libdispatch.dylib 0x00000001948120f4 _dispatch_queue_override_invoke + 916 (queue.c:5101)
9 libdispatch.dylib 0x0000000194820ec0 _dispatch_root_queue_drain + 392 (queue.c:7331)
10 libdispatch.dylib 0x00000001948216c4 _dispatch_worker_thread2 + 156 (queue.c:7399)
11 libsystem_pthread.dylib 0x0000000217810644 _pthread_wqthread + 228 (pthread.c:2709)
12 libsystem_pthread.dylib 0x000000021780e474 start_wqthread + 8 (:-1)

Thread 33:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 34:
0 libsystem_pthread.dylib 0x000000021780e46c start_wqthread + 0 (:-1)

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x000000012b394780 x1: 0x00000002004daa30 x2: 0x0000000102217bd8 x3: 0x000000012b394780
x4: 0x0000000000002a07 x5: 0x00003a0300000000 x6: 0x0000000000000002 x7: 0x00000000ffffffff
x8: 0x000000010a839000 x9: 0x0000000000000003 x10: 0x00000002130083a0 x11: 0x0000000000000007
x12: 0x000000000030f180 x13: 0x0000000000000000 x14: 0x00000001f50fbe90 x15: 0x00000001f50fbe90
x16: 0x9ae2cf8a91679a2e x17: 0x0000000a91679a28 x18: 0x0000000000000000 x19: 0x0000000102217bd8
x20: 0x000000012b394780 x21: 0x0000000303b6e1c0 x22: 0x00000001717b2da0 x23: 0x0000000000000114
x24: 0x0000000000000000 x25: 0x00000001f50f1be0 x26: 0xffffffff77ffffff x27: 0x000000000000000f
x28: 0x0000000303b1eb80 fp: 0x000000016fd4e770 lr: 0x000000010a515aa4
sp: 0x000000016fd4e750 pc: 0x0000000189fc5c5c cpsr: 0x0
esr: 0x56000080 Address size fault

Expected results

No crash, or some other solution to get more information about this crash.

Actual results


### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
@maheshj01 maheshj01 added the in triage Presently being triaged by the triage team label Mar 26, 2025
@maheshj01
Copy link
Member

Hello @LongXiangGuo, Thanks for filing the issue. You seem to be using very old version of flutter, Is it possible for you to upgrade to latest stable and release and see if the crash reproduces? Is the crash device specific?

@maheshj01 maheshj01 added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 26, 2025
@LongXiangGuo
Copy link
Author

Hello @LongXiangGuo, Thanks for filing the issue. You seem to be using very old version of flutter, Is it possible for you to upgrade to latest stable and release and see if the crash reproduces? Is the crash device specific?

From the analytics portal I have got this informs. Unfortunately, currently I have not reproduce yet.
System version: Both are concentrated on iOS 18 and iOS 17.
100.00% of the crashed thread names are com. apple. main thread;
95.12% of crashes have available memory greater than 500M, which seems unrelated to insufficient physical memory;
76.19% of crashes have a usage duration greater than 60 minutes, and triggering crashes may require the application to be used for a long time
100.00% of crashed pages are: FlutterViewController;
99.95% of crashes occur in the background

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 26, 2025
@maheshj01
Copy link
Member

Thanks for the update labelling for further investigation from the team.

@maheshj01 maheshj01 reopened this Mar 26, 2025
@maheshj01 maheshj01 added c: crash Stack traces logged to the console platform-ios iOS applications specifically a: production Issues experienced in live production apps team-ios Owned by iOS platform team perf: memory Performance issues related to memory and removed in triage Presently being triaged by the triage team labels Mar 26, 2025
@jmagman
Copy link
Member

jmagman commented Apr 9, 2025

We've modernized the memory semantics around this callsite since this older version of the engine was released. This won't be actionable until we get an updated crash log on a newer version of Flutter. Can you update your version of Flutter and see if the crash is still happening?

@jmagman jmagman added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 9, 2025
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.

@maheshj01 maheshj01 added r: timeout Issue is closed due to author not providing the requested details in time and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: production Issues experienced in live production apps c: crash Stack traces logged to the console perf: memory Performance issues related to memory platform-ios iOS applications specifically r: timeout Issue is closed due to author not providing the requested details in time team-ios Owned by iOS platform team
Projects
None yet
Development

No branches or pull requests

3 participants