shorebirdtech / shorebird

Code Push for Flutter and other tools for Flutter businesses.
https://shorebird.dev
Other
2.35k stars 142 forks source link

fix: iOS Crashing at 0xffffffffe #1698

Closed eseidel closed 9 months ago

eseidel commented 9 months ago

Two crashes just came in for the same app:

AppVariant:          1:iPhone10,1:15
Code Type:           ARM-64 (Native)
Thread 9 name:
Thread 9 Crashed:
0   ???                                     0xfffffffffffffffe 0x0 + -2
1   App                             0x000000010b67e2c4 0x10b668000 + 90820
2   App                             0x000000010b67e154 0x10b668000 + 90452
3   App                             0x000000010b67c284 0x10b668000 + 82564
4   App                             0x000000010b67cb6c 0x10b668000 + 84844
5   App                             0x000000010bd442e0 0x10b668000 + 7193312
6   App                             0x000000010b66c588 0x10b668000 + 17800
8   App                             0x000000010b67e2c4 0x10b668000 + 90820
9   App                             0x000000010b67e154 0x10b668000 + 90452
10  App                             0x000000010b67c284 0x10b668000 + 82564
11  App                             0x000000010b67ec74 0x10b668000 + 93300
12  App                             0x000000010bc9d7c8 0x10b668000 + 6510536
13  App                             0x000000010b74f14c 0x10b668000 + 946508
14  App                             0x000000010bd48ef8 0x10b668000 + 7212792
15  App                             0x000000010b732970 0x10b668000 + 829808
16  App                             0x000000010b66c588 0x10b668000 + 17800

These could happen when we end up on the CPU unwinding stacks which were made on the Simulator. I'm not yet sure why that would happen, but we've seen this kind of crash before.

eseidel commented 9 months ago

Interesting, the second one is 0x0000007ffffffffe? That's not something I would expect.

eseidel commented 9 months ago

I split off the second one into a separate issue: https://github.com/shorebirdtech/shorebird/issues/1699

eseidel commented 9 months ago

Developer reports: """ I have experienced a consistent crash on my iPhone 8 which is operating on iOS 15.6 and iPhone XR, iOS17.0.3 In contrast, I’ve also tested the app on an iPhone 13 Mini with iOS 17.3, where it functions seamlessly without any crashes. """

eseidel commented 9 months ago

I believe this is 6b08519a-93e2-4f55-90c7-ce1c04db32ca.

vlazdra commented 9 months ago

Hey @eseidel I think I maybe experienced the same crash on iOS. Sharing the stacktrace that was caught by Sentry, maybe it helps maybe! 🙌

The devices tested on:

Shorebird 0.25.1 • git@github.com:shorebirdtech/shorebird.git Flutter 3.16.9 • revision e6ed4c18fc150b2ec17c379dac27991d9ace69e9 Engine • revision dcbbf162662ed6c2539db27d4322d719808cb5f9

Stacktrace OS Version: iOS 17.2.1 (21C66) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: BUS_NOOP Crashed Thread: 2 Application Specific Information: Exception 1, Code 257, Subcode 18446744073709551614 > EXC_ARM_DA_ALIGN at 0xfffffffffffffffe. Thread 2 Crashed: 0 0xffffffffe [inlined] 1 0xffffffffe 2 App 0x10a8e9324 kDartIsolateSnapshotInstructions 3 App 0x10a8e91b4 kDartIsolateSnapshotInstructions 4 App 0x10a8e767c kDartIsolateSnapshotInstructions 5 App 0x10a8e7294 kDartIsolateSnapshotInstructions 6 App 0x10ae82d18 kDartIsolateSnapshotInstructions 7 App 0x10a8b8588 kDartVmSnapshotInstructions 8 0xffffffffe 9 App 0x10a8e9324 kDartIsolateSnapshotInstructions 10 App 0x10a8e91b4 kDartIsolateSnapshotInstructions 11 App 0x10a8e767c kDartIsolateSnapshotInstructions 12 App 0x10a8ec080 kDartIsolateSnapshotInstructions 13 App 0x10adc2f80 kDartIsolateSnapshotInstructions 14 App 0x10aa810ac kDartIsolateSnapshotInstructions 15 App 0x10ae868f4 kDartIsolateSnapshotInstructions 16 App 0x10a8e39c8 kDartIsolateSnapshotInstructions 17 App 0x10a8b8588 kDartVmSnapshotInstructions Thread 0 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3cd060e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3cd060c64 mach_msg 4 CoreFoundation 0x33e231b18 __CFRunLoopServiceMachPort 5 CoreFoundation 0x33e22fa10 __CFRunLoopRun 6 CoreFoundation 0x33e22f474 CFRunLoopRunSpecific 7 GraphicsServices 0x3c4d114f4 GSEventRunModal 8 UIKitCore 0x34287e628 -[UIApplication _run] 9 UIKitCore 0x34287dc64 UIApplicationMain 10 Runner 0x202268970 11 0x1d91f2dcc Thread 1 name: com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3cd060e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3cd060c64 mach_msg 4 CoreFoundation 0x33e231b18 __CFRunLoopServiceMachPort 5 CoreFoundation 0x33e22fa10 __CFRunLoopRun 6 CoreFoundation 0x33e22f474 CFRunLoopRunSpecific 7 Foundation 0x33c15c488 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] 8 Foundation 0x33c189748 -[NSRunLoop(NSRunLoop) runUntilDate:] 9 UIKitCore 0x3427e04a4 -[UIEventFetcher threadMain] 10 Foundation 0x33c1dfddc __NSThread__start__ 11 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 2 name: io.flutter.1.ui Crashed: 0 0xffffffffe [inlined] 1 0xffffffffe 2 App 0x10a8e9324 kDartIsolateSnapshotInstructions 3 App 0x10a8e91b4 kDartIsolateSnapshotInstructions 4 App 0x10a8e767c kDartIsolateSnapshotInstructions 5 App 0x10a8e7294 kDartIsolateSnapshotInstructions 6 App 0x10ae82d18 kDartIsolateSnapshotInstructions 7 App 0x10a8b8588 kDartVmSnapshotInstructions 8 0xffffffffe 9 App 0x10a8e9324 kDartIsolateSnapshotInstructions 10 App 0x10a8e91b4 kDartIsolateSnapshotInstructions 11 App 0x10a8e767c kDartIsolateSnapshotInstructions 12 App 0x10a8ec080 kDartIsolateSnapshotInstructions 13 App 0x10adc2f80 kDartIsolateSnapshotInstructions 14 App 0x10aa810ac kDartIsolateSnapshotInstructions 15 App 0x10ae868f4 kDartIsolateSnapshotInstructions 16 App 0x10a8e39c8 kDartIsolateSnapshotInstructions 17 App 0x10a8b8588 kDartVmSnapshotInstructions Thread 3 name: io.flutter.1.raster 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3cd060e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3cd060c64 mach_msg 4 CoreFoundation 0x33e231b18 __CFRunLoopServiceMachPort 5 CoreFoundation 0x33e22fa10 __CFRunLoopRun 6 CoreFoundation 0x33e22f474 CFRunLoopRunSpecific 7 Flutter 0x107354210 core::core_simd::swizzle::Which::fmt 8 Flutter 0x107353884 core::core_simd::swizzle::Which::fmt 9 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 4 name: io.flutter.1.io 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3cd060e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3cd060c64 mach_msg 4 CoreFoundation 0x33e231b18 __CFRunLoopServiceMachPort 5 CoreFoundation 0x33e22fa10 __CFRunLoopRun 6 CoreFoundation 0x33e22f474 CFRunLoopRunSpecific 7 Flutter 0x107354210 core::core_simd::swizzle::Which::fmt 8 Flutter 0x107353884 core::core_simd::swizzle::Which::fmt 9 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 5 name: io.worker.1 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 6 name: io.worker.2 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 7 name: io.worker.3 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 8 name: io.worker.4 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 9 name: io.worker.5 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 10 name: io.worker.6 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 11 name: dart:io EventHandler 0 libsystem_kernel.dylib 0x3cd06ef0c kevent 1 Flutter 0x10760cbd8 core::core_simd::swizzle::Which::fmt 2 Flutter 0x10763a6cc core::core_simd::swizzle::Which::fmt 3 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 12 name: io.worker.1 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 13 name: io.worker.2 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 14 name: io.worker.3 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 15 name: io.worker.4 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccfd0 _pthread_cond_wait 2 Flutter 0x1070c1c34 core::core_simd::swizzle::Which::fmt 3 Flutter 0x10734d464 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 16 name: com.google.firebase.crashlytics.MachExceptionServer 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3cd060e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3cd060c64 mach_msg 4 FirebaseCrashlytics 0x1041cf260 + 104 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 17 0 libsystem_kernel.dylib 0x3cd061978 __semwait_signal 1 libsystem_c.dylib 0x34e271f1c nanosleep 2 libsystem_c.dylib 0x34e2801d8 sleep 3 Sentry 0x1049ffc1c + 676 4 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 18 name: SentryCrash Exception Handler (Secondary) 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3cd060e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3cd060c64 mach_msg 4 Sentry 0x104a0bf48 + 172 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 20 name: io.sentry.app-hang-tracker 0 libsystem_kernel.dylib 0x3cd061978 __semwait_signal 1 libsystem_c.dylib 0x34e271f1c nanosleep 2 Foundation 0x33c876768 +[NSThread sleepForTimeInterval:] 3 Sentry 0x1049ee468 + 560 4 Foundation 0x33c1dfddc __NSThread__start__ 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 21 name: com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3cd060e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3cd060c64 mach_msg 4 CoreFoundation 0x33e231b18 __CFRunLoopServiceMachPort 5 CoreFoundation 0x33e22fa10 __CFRunLoopRun 6 CoreFoundation 0x33e22f474 CFRunLoopRunSpecific 7 CFNetwork 0x34060405c estimatedPropertyListSize 8 Foundation 0x33c1dfddc __NSThread__start__ 9 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 22 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 IOKit 0x34f699a98 io_connect_method 3 IOKit 0x34f699824 IOConnectCallMethod 4 IOGPU 0x42ae4eed8 IOGPUCommandQueueSubmitCommandBuffers 5 IOGPU 0x42ae4ecf4 -[IOGPUMetalCommandQueue _submitCommandBuffers:count:] 6 IOGPU 0x42ae4eb6c -[IOGPUMetalCommandQueue submitCommandBuffers:count:] 7 Metal 0x33d9d5a94 -[_MTLCommandQueue _submitAvailableCommandBuffers] 8 libdispatch.dylib 0x34e1de2fc _dispatch_client_callout 9 libdispatch.dylib 0x34e1e17b4 _dispatch_continuation_pop 10 libdispatch.dylib 0x34e1f55bc _dispatch_source_latch_and_call 11 libdispatch.dylib 0x34e1f418c _dispatch_source_invoke 12 libdispatch.dylib 0x34e1e5714 _dispatch_lane_serial_drain 13 libdispatch.dylib 0x34e1e63c0 _dispatch_lane_invoke 14 libdispatch.dylib 0x34e1f1000 _dispatch_root_queue_drain_deferred_wlh 15 libdispatch.dylib 0x34e1f0874 _dispatch_workloop_worker_thread 16 libsystem_pthread.dylib 0x4121cd960 _pthread_wqthread Thread 23 0 libsystem_kernel.dylib 0x3cd0696d0 __workq_kernreturn 1 libsystem_pthread.dylib 0x4121cd9ac _pthread_wqthread Thread 24 0 libsystem_pthread.dylib 0x4121cd9fc start_wqthread Thread 25 0 libsystem_kernel.dylib 0x3cd061178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3cd060f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3cd060e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3cd060c64 mach_msg 4 QuartzCore 0x340f49d9c CAImageQueuePing_ 5 QuartzCore 0x340f2e634 CAImageQueueInsertImage_ 6 QuartzCore 0x340f35e70 layer_private_present_impl 7 QuartzCore 0x340f35928 -[CAMetalDrawable present] 8 Metal 0x33db1a818 __45-[_MTLCommandBuffer presentDrawable:options:]_block_invoke 9 Metal 0x33d9cfdbc MTLDispatchListApply 10 Metal 0x33d9cfd04 -[_MTLCommandBuffer didScheduleWithStartTime:endTime:error:] 11 IOGPU 0x42ae4f0b4 IOGPUNotificationQueueDispatchAvailableCompletionNotifications 12 IOGPU 0x42ae4efcc __IOGPUNotificationQueueSetDispatchQueue_block_invoke 13 libdispatch.dylib 0x34e1de3bc _dispatch_client_callout4 14 libdispatch.dylib 0x34e1fa3d4 _dispatch_mach_msg_invoke 15 libdispatch.dylib 0x34e1e5714 _dispatch_lane_serial_drain 16 libdispatch.dylib 0x34e1fb110 _dispatch_mach_invoke 17 libdispatch.dylib 0x34e1e5714 _dispatch_lane_serial_drain 18 libdispatch.dylib 0x34e1e63f4 _dispatch_lane_invoke 19 libdispatch.dylib 0x34e1e5714 _dispatch_lane_serial_drain 20 libdispatch.dylib 0x34e1e63c0 _dispatch_lane_invoke 21 libdispatch.dylib 0x34e1f1000 _dispatch_root_queue_drain_deferred_wlh 22 libdispatch.dylib 0x34e1f0874 _dispatch_workloop_worker_thread 23 libsystem_pthread.dylib 0x4121cd960 _pthread_wqthread Thread 26 0 libsystem_kernel.dylib 0x3cd0696d0 __workq_kernreturn 1 libsystem_pthread.dylib 0x4121cd9ac _pthread_wqthread Thread 28 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 29 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 30 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 31 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 32 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 33 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 34 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 35 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 36 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 37 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 38 name: DartWorker 0 libsystem_kernel.dylib 0x3cd061b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x4121ccffc _pthread_cond_wait 2 Flutter 0x107703b88 InternalFlutterGpuTestClass_Method 3 Flutter 0x10774b21c InternalFlutterGpuTestClass_Method 4 Flutter 0x107703554 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x4121ce4d0 _pthread_start Thread 39 name: DartWorker 0 App 0x10ae80f80 kDartIsolateSnapshotInstructions 1 App 0x10a8d5fb8 kDartIsolateSnapshotInstructions 2 App 0x10a8d5d80 kDartIsolateSnapshotInstructions 3 App 0x10a8d5d14 kDartIsolateSnapshotInstructions 4 App 0x10adcd3cc kDartIsolateSnapshotInstructions 5 App 0x10ad211bc kDartIsolateSnapshotInstructions 6 App 0x10ad1eef4 kDartIsolateSnapshotInstructions 7 App 0x10ad1e390 kDartIsolateSnapshotInstructions 8 App 0x10ad5c828 kDartIsolateSnapshotInstructions 9 App 0x10aa81b4c kDartIsolateSnapshotInstructions 10 App 0x10aa81acc kDartIsolateSnapshotInstructions 11 App 0x10aa89948 kDartIsolateSnapshotInstructions 12 App 0x10aa898a0 kDartIsolateSnapshotInstructions 13 App 0x10aa89848 kDartIsolateSnapshotInstructions 14 App 0x10aa895ac kDartIsolateSnapshotInstructions 15 App 0x10aa89520 kDartIsolateSnapshotInstructions 16 App 0x10ae868f4 kDartIsolateSnapshotInstructions 17 App 0x10a8e5e54 kDartIsolateSnapshotInstructions 18 App 0x10ae868f4 kDartIsolateSnapshotInstructions 19 App 0x10a8e39c8 kDartIsolateSnapshotInstructions 20 App 0x10a8b8588 kDartVmSnapshotInstructions Thread 2 crashed with ARM Thread State (64-bit): x0: 0x000000010d0f1409 x1: 0x000000010d0f1be9 x2: 0x0000000103d08081 x3: 0x000000010d0f85b9 x4: 0x00000000000000ac x5: 0x000000010d0f15d9 x6: 0x000000010d0f1d38 x7: 0x00000000000000ff x8: 0x000000011f5e7971 x9: 0x00000001069002a0 x10: 0x0000000107c233d0 x11: 0x000000016e590170 x12: 0x69123f48047f5d50 x13: 0x0000000000000000 x14: 0x0000000000000011 x15: 0x000000012c1a3ac8 x16: 0x0000000000000000 x17: 0x0000000000000008 x18: 0x0000000000000000 x19: 0x41907258e4000000 x20: 0x41907258e4000000 x21: 0x000000012c208000 x22: 0x0000000103d08081 x23: 0x41907258e4000000 x24: 0x00000001059a4f21 x25: 0x000000012c0c3000 x26: 0x0000000128073c00 x27: 0x0000000106580080 x28: 0x0000000800000000 fp: 0x000000012c1a3ae8 lr: 0xfffffffffffffffe sp: 0x000000012c0c3000 pc: 0xfffffffffffffffe cpsr: 0x0000000040000000 EOF
vlazdra commented 9 months ago

Also it might be connected to this one (https://github.com/shorebirdtech/shorebird/issues/1709), since the crash happens to me as well when I do a navigation attempt. Although the navigation part for me is changing the bottom navigation selected page, and adding a custom Navigator to do child navigation. But all 4 bottom navigation options have the same setup, but only one crashes the entire app on iOS. Android is working as expected.

eseidel commented 9 months ago

Thank you very much for the report! We've isolated 2 crashers and have fixes in progress which we expect to release today. I'm still not sure if those will fix this issue though.

We've also added a guide on downloading .dSYM files for any given release which if uploaded to Sentry will give you slightly more detailed crash reports: https://docs.shorebird.dev/guides/crash-reporting

We've also done a little work for automating symbolication (adding in names instead of numbers into crash reports), but that will probably be a while before we release something automated there.

eseidel commented 9 months ago

Our current belief is that this crash is related to async handling inside our new iOS engine. We're in the middle of fixing an ffi crasher which we found: https://github.com/shorebirdtech/shorebird/issues/1702 which we expect to release today and then tackle this one.

The reason we haven't attacked this one yet, is we've not yet been able to reproduce it, but the stack traces are helpful, thank you!

vlazdra commented 9 months ago

Hey @eseidel thanks for the updated info regarding the dSYM option to upload the symbols to Sentry.

I just did that, downloaded the correct dSYM as described in the docs, and uploaded to Sentry via a fastlane plugin. It's registered inside Sentry:

Screenshot 2024-02-07 at 16 57 05

Sharing the new unsymbolicated stacktrace:

OS Version: iOS 17.2.1 (21C66)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: BUS_NOOP
Crashed Thread: 8

Application Specific Information:
Exception 1, Code 257, Subcode 18446744073709551614 >
EXC_ARM_DA_ALIGN at 0xfffffffffffffffe.

Thread 8 Crashed:
0   <unknown>                       0xffffffffe         [inlined] <redacted>
1   <unknown>                       0xffffffffe         <redacted>
2   App                             0x10de1d324         kDartIsolateSnapshotInstructions
3   App                             0x10de1d1b4         kDartIsolateSnapshotInstructions
4   App                             0x10de1b67c         kDartIsolateSnapshotInstructions
5   App                             0x10de1b294         kDartIsolateSnapshotInstructions
6   App                             0x10e3b6d18         kDartIsolateSnapshotInstructions
7   App                             0x10ddec588         kDartVmSnapshotInstructions
8   <unknown>                       0xffffffffe         <redacted>
9   App                             0x10de1d324         kDartIsolateSnapshotInstructions
10  App                             0x10de1d1b4         kDartIsolateSnapshotInstructions
11  App                             0x10de1b67c         kDartIsolateSnapshotInstructions
12  App                             0x10de20080         kDartIsolateSnapshotInstructions
13  App                             0x10e2f6f80         kDartIsolateSnapshotInstructions
14  App                             0x10dfb50ac         kDartIsolateSnapshotInstructions
15  App                             0x10e3ba8f4         kDartIsolateSnapshotInstructions
16  App                             0x10de179c8         kDartIsolateSnapshotInstructions
17  App                             0x10ddec588         kDartVmSnapshotInstructions

Thread 0
0   libsystem_kernel.dylib          0x3cd061178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3cd060f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3cd060e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3cd060c64         mach_msg
4   CoreFoundation                  0x33e231b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x33e22fa10         __CFRunLoopRun
6   CoreFoundation                  0x33e22f474         CFRunLoopRunSpecific
7   GraphicsServices                0x3c4d114f4         GSEventRunModal
8   UIKitCore                       0x34287e628         -[UIApplication _run]
9   UIKitCore                       0x34287dc64         UIApplicationMain
10  Runner                          0x2025f0970         <redacted>
11  <unknown>                       0x1d91f2dcc         <redacted>

Thread 1
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 2
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 3
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 4 name: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib          0x3cd061178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3cd060f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3cd060e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3cd060c64         mach_msg
4   CoreFoundation                  0x33e231b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x33e22fa10         __CFRunLoopRun
6   CoreFoundation                  0x33e22f474         CFRunLoopRunSpecific
7   Foundation                      0x33c15c488         -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
8   Foundation                      0x33c189748         -[NSRunLoop(NSRunLoop) runUntilDate:]
9   UIKitCore                       0x3427e04a4         -[UIEventFetcher threadMain]
10  Foundation                      0x33c1dfddc         __NSThread__start__
11  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 5
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 6
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 7
0   libsystem_pthread.dylib         0x4121cd9fc         start_wqthread

Thread 8 name: io.flutter.1.ui Crashed:
0   <unknown>                       0xffffffffe         [inlined] <redacted>
1   <unknown>                       0xffffffffe         <redacted>
2   App                             0x10de1d324         kDartIsolateSnapshotInstructions
3   App                             0x10de1d1b4         kDartIsolateSnapshotInstructions
4   App                             0x10de1b67c         kDartIsolateSnapshotInstructions
5   App                             0x10de1b294         kDartIsolateSnapshotInstructions
6   App                             0x10e3b6d18         kDartIsolateSnapshotInstructions
7   App                             0x10ddec588         kDartVmSnapshotInstructions
8   <unknown>                       0xffffffffe         <redacted>
9   App                             0x10de1d324         kDartIsolateSnapshotInstructions
10  App                             0x10de1d1b4         kDartIsolateSnapshotInstructions
11  App                             0x10de1b67c         kDartIsolateSnapshotInstructions
12  App                             0x10de20080         kDartIsolateSnapshotInstructions
13  App                             0x10e2f6f80         kDartIsolateSnapshotInstructions
14  App                             0x10dfb50ac         kDartIsolateSnapshotInstructions
15  App                             0x10e3ba8f4         kDartIsolateSnapshotInstructions
16  App                             0x10de179c8         kDartIsolateSnapshotInstructions
17  App                             0x10ddec588         kDartVmSnapshotInstructions

Thread 9 name: io.flutter.1.raster
0   libsystem_kernel.dylib          0x3cd061178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3cd060f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3cd060e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3cd060c64         mach_msg
4   CoreFoundation                  0x33e231b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x33e22fa10         __CFRunLoopRun
6   CoreFoundation                  0x33e22f474         CFRunLoopRunSpecific
7   Flutter                         0x1060c420c         fml::MessageLoopDarwin::Run (message_loop_darwin.mm:51)
8   Flutter                         0x1060c3880         [inlined] fml::MessageLoopImpl::DoRun (message_loop_impl.cc:94)
9   Flutter                         0x1060c3880         [inlined] fml::MessageLoop::Run (message_loop.cc:49)
10  Flutter                         0x1060c3880         [inlined] fml::Thread::Thread::lambda::operator() (thread.cc:85)
11  Flutter                         0x1060c3880         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
12  Flutter                         0x1060c3880         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
13  Flutter                         0x1060c3880         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
14  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 10 name: io.flutter.1.io
0   libsystem_kernel.dylib          0x3cd061178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3cd060f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3cd060e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3cd060c64         mach_msg
4   CoreFoundation                  0x33e231b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x33e22fa10         __CFRunLoopRun
6   CoreFoundation                  0x33e22f474         CFRunLoopRunSpecific
7   Flutter                         0x1060c420c         fml::MessageLoopDarwin::Run (message_loop_darwin.mm:51)
8   Flutter                         0x1060c3880         [inlined] fml::MessageLoopImpl::DoRun (message_loop_impl.cc:94)
9   Flutter                         0x1060c3880         [inlined] fml::MessageLoop::Run (message_loop.cc:49)
10  Flutter                         0x1060c3880         [inlined] fml::Thread::Thread::lambda::operator() (thread.cc:85)
11  Flutter                         0x1060c3880         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
12  Flutter                         0x1060c3880         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
13  Flutter                         0x1060c3880         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
14  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 11 name: io.worker.1
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 12 name: io.worker.2
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 13 name: io.worker.3
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 14 name: io.worker.4
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 15 name: io.worker.5
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 16 name: io.worker.6
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 17 name: dart:io EventHandler
0   libsystem_kernel.dylib          0x3cd06ef0c         kevent
1   Flutter                         0x10637cbd4         dart::bin::EventHandlerImplementation::EventHandlerEntry (eventhandler_macos.cc:459)
2   Flutter                         0x1063aa6c8         dart::bin::ThreadStart (thread_macos.cc:91)
3   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 18 name: io.worker.1
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 19 name: io.worker.2
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 20 name: io.worker.3
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 21 name: io.worker.4
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   Flutter                         0x105e31c30         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105e31c30         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x1060bd460         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x1060bd460         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x1060bd460         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 22
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 23
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 24
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 25
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 26
0   libsystem_pthread.dylib         0x4121cd9fc         start_wqthread

Thread 27 name: com.google.firebase.crashlytics.MachExceptionServer
0   libsystem_kernel.dylib          0x3cd061178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3cd060f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3cd060e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3cd060c64         mach_msg
4   FirebaseCrashlytics             0x104447260         <unknown> + 104
5   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 28
0   libsystem_kernel.dylib          0x3cd0696d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x4121cd9ac         _pthread_wqthread

Thread 30 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x1064bb218         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x1064bb218         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x1064bb218         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 31 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x1064bb218         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x1064bb218         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x1064bb218         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 32 name: JavaScriptCore libpas scavenger
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccfd0         _pthread_cond_wait
2   JavaScriptCore                  0x36ac731b4         scavenger_thread_main
3   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 33
0   libsystem_kernel.dylib          0x3cd061978         __semwait_signal
1   libsystem_c.dylib               0x34e271f1c         nanosleep
2   libsystem_c.dylib               0x34e2801d8         sleep
3   Sentry                          0x10503fc1c         <unknown> + 676
4   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 34 name: SentryCrash Exception Handler (Secondary)
0   libsystem_kernel.dylib          0x3cd061178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3cd060f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3cd060e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3cd060c64         mach_msg
4   Sentry                          0x10504bf48         <unknown> + 172
5   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 36 name: io.sentry.app-hang-tracker
0   libsystem_kernel.dylib          0x3cd061978         __semwait_signal
1   libsystem_c.dylib               0x34e271f1c         nanosleep
2   Foundation                      0x33c876768         +[NSThread sleepForTimeInterval:]
3   Sentry                          0x10502e468         <unknown> + 560
4   Foundation                      0x33c1dfddc         __NSThread__start__
5   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 37 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x1064bb218         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x1064bb218         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x1064bb218         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 38 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x1064bb218         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x1064bb218         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x1064bb218         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 39 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x1064bb218         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x1064bb218         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x1064bb218         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 40 name: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x3cd061178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3cd060f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3cd060e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3cd060c64         mach_msg
4   CoreFoundation                  0x33e231b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x33e22fa10         __CFRunLoopRun
6   CoreFoundation                  0x33e22f474         CFRunLoopRunSpecific
7   CFNetwork                       0x34060405c         estimatedPropertyListSize
8   Foundation                      0x33c1dfddc         __NSThread__start__
9   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 41 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x1064d32b0         [inlined] dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x1064d32b0         [inlined] dart::Monitor::Wait (os_thread_macos.cc:421)
4   Flutter                         0x1064d32b0         [inlined] dart::MonitorLocker::Wait (lockers.h:173)
5   Flutter                         0x1064d32b0         [inlined] dart::SafepointHandler::LevelHandler::WaitUntilThreadsReachedSafepointLevel (safepoint.cc:226)
6   Flutter                         0x1064d32b0         dart::SafepointHandler::SafepointThreads (safepoint.cc:131)
7   Flutter                         0x106412850         [inlined] dart::SafepointOperationScope::SafepointOperationScope (safepoint.cc:21)
8   Flutter                         0x106412850         [inlined] dart::DeoptSafepointOperationScope::DeoptSafepointOperationScope (safepoint.h:46)
9   Flutter                         0x106412850         [inlined] dart::DeoptSafepointOperationScope::DeoptSafepointOperationScope (safepoint.h:46)
10  Flutter                         0x106412850         dart::IsolateGroup::RunWithStoppedMutatorsCallable (isolate.cc:2841)
11  Flutter                         0x106428238         [inlined] dart::IsolateGroup::RunWithStoppedMutators<T> (isolate.h:648)
12  Flutter                         0x106428238         [inlined] dart::CodePatcher::PatchNativeCallAt (code_patcher_arm64.cc:172)
13  Flutter                         0x106428238         dart::NativeEntry::LinkNativeCall (native_entry.cc:307)
14  App                             0x10ddf60f0         kDartVmSnapshotInstructions
15  App                             0x10ddfa840         kDartIsolateSnapshotInstructions
16  Flutter                         0x1064ad0e8         dart::Simulator::DecodeExceptionGen (simulator_arm64.cc:1741)
17  Flutter                         0x1064b07c0         [inlined] dart::Simulator::DecodeCompareBranch (simulator_arm64.cc:1911)
18  Flutter                         0x1064b07c0         [inlined] dart::Simulator::InstructionDecodeImpl (simulator_arm64.cc:3724)
19  Flutter                         0x1064b07c0         [inlined] dart::Simulator::ExecuteNoTrace (simulator_arm64.cc:3840)
20  Flutter                         0x1064b07c0         dart::Simulator::Execute (simulator_arm64.cc:3824)
21  Flutter                         0x1064040b8         [inlined] dart::Simulator::Call (simulator_arm64.cc:3941)
22  Flutter                         0x1064040b8         dart::DartEntry::InvokeFunction (dart_entry.cc:114)
23  Flutter                         0x1064102c4         [inlined] dart::DartEntry::InvokeFunction (dart_entry.cc:37)
24  Flutter                         0x1064102c4         [inlined] dart::DartLibraryCalls::HandleMessage (dart_entry.cc:718)
25  Flutter                         0x1064102c4         dart::IsolateMessageHandler::HandleMessage (isolate.cc:1413)
26  Flutter                         0x10641593c         dart::MessageHandler::HandleMessages (message_handler.cc:238)
27  Flutter                         0x10641563c         [inlined] dart::MessageHandler::TaskCallback (message_handler.cc:457)
28  Flutter                         0x10641563c         dart::MessageHandlerTask::Run (message_handler.cc:31)
29  Flutter                         0x1064bb108         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:158)
30  Flutter                         0x1064bb108         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
31  Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
32  libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 42 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x10640ad20         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x10640ad20         dart::MutatorThreadPool::OnEnterIdleLocked (isolate.cc:305)
5   Flutter                         0x1064bb24c         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:167)
6   Flutter                         0x1064bb24c         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
7   Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
8   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 43 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x1064bb218         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x1064bb218         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x1064bb218         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 44 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x1064bb218         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x1064bb218         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x1064bb218         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x106473550         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x4121ce4d0         _pthread_start

Thread 8 crashed with ARM Thread State (64-bit):
    x0: 0x0000000124fec049   x1: 0x0000000124fec829   x2: 0x000000010b508081   x3: 0x0000000124ff2179
    x4: 0x00000000000000ac   x5: 0x0000000124fec219   x6: 0x0000000124fec978   x7: 0x00000000000000ff
    x8: 0x000000010d1e77b1   x9: 0x00000001102940e0  x10: 0x00000001069933d0  x11: 0x000000016e294170
   x12: 0xc74a63ef186dbac7  x13: 0x0000000000000000  x14: 0x0000000000000011  x15: 0x000000010d2ffac8
   x16: 0x0000000000000000  x17: 0x0000000000000008  x18: 0x0000000000000000  x19: 0x4173867ae0000000
   x20: 0x4173867ae0000000  x21: 0x000000011012c000  x22: 0x000000010b508081  x23: 0x4173867ae0000000
   x24: 0x000000010ec24af1  x25: 0x000000010d21f000  x26: 0x0000000107864a00  x27: 0x000000010fd00080
   x28: 0x0000000800000000   fp: 0x000000010d2ffae8   lr: 0xfffffffffffffffe   sp: 0x000000010d21f000
    pc: 0xfffffffffffffffe cpsr: 0x0000000040000000

EOF
eseidel commented 9 months ago

Thanks!

eseidel commented 9 months ago

BTW, you'll notice that after uploading the .dSYM for flutter, you now see symbol information for Flutter symbols, e.g.:

Thread 42 name: DartWorker
0   libsystem_kernel.dylib          0x3cd061b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x4121ccffc         _pthread_cond_wait
2   Flutter                         0x106473b84         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x10640ad20         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x10640ad20         dart::MutatorThreadPool::OnEnterIdleLocked (isolate.cc:305)

Which is cool, but in this case, since the crash is entirely in Dart code (App library), rather than Flutter, so the Flutter.dSYM doesn't tell you much.

We have an internal tool @bryanoltman has been working on where we can match what you just sent against your cached release binary and fill in the symbols. We can try running that tomorrow and see if we can fill in the missing details for the crashing thread:

Thread 8 name: io.flutter.1.ui Crashed:
0   <unknown>                       0xffffffffe         [inlined] <redacted>
1   <unknown>                       0xffffffffe         <redacted>
2   App                             0x10de1d324         kDartIsolateSnapshotInstructions
3   App                             0x10de1d1b4         kDartIsolateSnapshotInstructions
4   App                             0x10de1b67c         kDartIsolateSnapshotInstructions
5   App                             0x10de1b294         kDartIsolateSnapshotInstructions
6   App                             0x10e3b6d18         kDartIsolateSnapshotInstructions
7   App                             0x10ddec588         kDartVmSnapshotInstructions
eseidel commented 9 months ago

Actually, there isn't enough information in that trace for us to do those lookups. Typically crash reports either have a "Binary Images" section at the bottom which show where libraries (like Flutter and App) are loaded, or they might include symbol-relative offsets, e.g. kDartIsolateSnapshotInstructions + 128238. This one has neither, so we won't be able to map the function addresses to the symbol addresses.

If Sentry offers a crash report that includes the "Binary Images" section (typically included in a raw .ips or .crash file) or you could make sentry symbolicate App symbols for you by uploading the App.dsym. We can figure out how to expose that in your Console for you if you don't have it cached. https://github.com/shorebirdtech/shorebird/issues/1718

gauravmehta13 commented 9 months ago

I am also facing the same issue. image

"deviceModel" : "iPhone13,4", "osVersion" : "14.3", "locale" : "nl-NL", "architecture" : "arm64e", "connectionStatus" : "WI_FI", "pairedAppleWatch" : "", "appUptimeMillis" : 23485000, "availableDiskBytes" : 8016166912, "totalDiskBytes" : 255881465856, "networkType" : null, "batteryPercentage" : 72, "screenWidth" : 428, "screenHeight" : 926,

stacktrace OS Version: iOS 14.3 (18C66) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: BUS_NOOP Crashed Thread: 6 Application Specific Information: Exception 1, Code 257, Subcode 18446744073709551614 > EXC_ARM_DA_ALIGN at 0xfffffffffffffffe. Thread 6 Crashed: 0 0xffffffffe [inlined] 1 0xffffffffe 2 App 0x106de364c [inlined] _RootZone.runUnary (zone.dart:1661) 3 App 0x106de364c _FutureListener.handleValue (future_impl.dart:162) 4 App 0x106de34dc Future._propagateToListeners.handleValueCallback (future_impl.dart:846) 5 App 0x106de164c Future._propagateToListeners (future_impl.dart:875) 6 App 0x106de1ee8 Future._completeWithValue (future_impl.dart:647) 7 App 0x1073c02f4 _SuspendState._returnAsync (async_patch.dart:352) 8 App 0x106dd0584 RunDartOnCPU 9 0xffffffffe 10 App 0x106de364c [inlined] _RootZone.runUnary (zone.dart:1661) 11 App 0x106de364c _FutureListener.handleValue (future_impl.dart:162) 12 App 0x106de34dc Future._propagateToListeners.handleValueCallback (future_impl.dart:846) 13 App 0x106de164c Future._propagateToListeners (future_impl.dart:875) 14 App 0x106de7ad0 Future._complete (future_impl.dart:638) 15 App 0x107316308 _SyncCompleter.complete (future_impl.dart:59) 16 App 0x106e6cfd4 Isolate._spawnCommon. (isolate_patch.dart:487) 17 App 0x1073c8800 _Closure.call 18 App 0x106de42cc _RawReceivePort._handleMessage (isolate_patch.dart:184) 19 App 0x106dd0584 RunDartOnCPU Thread 0 0 libsystem_kernel.dylib 0x36f30c2d0 mach_msg_trap 1 libsystem_kernel.dylib 0x36f30b65c mach_msg 2 CoreFoundation 0x3136c0c2c __CFRunLoopServiceMachPort 3 CoreFoundation 0x3136bac10 __CFRunLoopRun 4 CoreFoundation 0x3136ba218 CFRunLoopRunSpecific 5 GraphicsServices 0x342d59780 GSEventRunModal 6 UIKitCore 0x318008fdc -[UIApplication _run] 7 UIKitCore 0x31800e850 UIApplicationMain 8 Runner 0x2021d8868 main (AppDelegate.swift:9) 9 libdyld.dylib 0x3130d36ac start Thread 1 0 libsystem_kernel.dylib 0x36f331184 __workq_kernreturn 1 libsystem_pthread.dylib 0x3aa80b84c _pthread_wqthread Thread 2 0 libsystem_kernel.dylib 0x36f331184 __workq_kernreturn 1 libsystem_pthread.dylib 0x3aa80b84c _pthread_wqthread Thread 3 0 libsystem_pthread.dylib 0x3aa812754 start_wqthread Thread 4 name: com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x36f30c2d0 mach_msg_trap 1 libsystem_kernel.dylib 0x36f30b65c mach_msg 2 CoreFoundation 0x3136c0c2c __CFRunLoopServiceMachPort 3 CoreFoundation 0x3136bac10 __CFRunLoopRun 4 CoreFoundation 0x3136ba218 CFRunLoopRunSpecific 5 Foundation 0x315caadec -[NSRunLoop(NSRunLoop) runMode:beforeDate:] 6 Foundation 0x315caacb8 -[NSRunLoop(NSRunLoop) runUntilDate:] 7 UIKitCore 0x3180bcd44 -[UIEventFetcher threadMain] 8 Foundation 0x315e1ca30 __NSThread__start__ 9 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 5 0 libsystem_pthread.dylib 0x3aa812754 start_wqthread Thread 6 name: io.flutter.1.ui Crashed: 0 0xffffffffe [inlined] 1 0xffffffffe 2 App 0x106de364c [inlined] _RootZone.runUnary (zone.dart:1661) 3 App 0x106de364c _FutureListener.handleValue (future_impl.dart:162) 4 App 0x106de34dc Future._propagateToListeners.handleValueCallback (future_impl.dart:846) 5 App 0x106de164c Future._propagateToListeners (future_impl.dart:875) 6 App 0x106de1ee8 Future._completeWithValue (future_impl.dart:647) 7 App 0x1073c02f4 _SuspendState._returnAsync (async_patch.dart:352) 8 App 0x106dd0584 RunDartOnCPU 9 0xffffffffe 10 App 0x106de364c [inlined] _RootZone.runUnary (zone.dart:1661) 11 App 0x106de364c _FutureListener.handleValue (future_impl.dart:162) 12 App 0x106de34dc Future._propagateToListeners.handleValueCallback (future_impl.dart:846) 13 App 0x106de164c Future._propagateToListeners (future_impl.dart:875) 14 App 0x106de7ad0 Future._complete (future_impl.dart:638) 15 App 0x107316308 _SyncCompleter.complete (future_impl.dart:59) 16 App 0x106e6cfd4 Isolate._spawnCommon. (isolate_patch.dart:487) 17 App 0x1073c8800 _Closure.call 18 App 0x106de42cc _RawReceivePort._handleMessage (isolate_patch.dart:184) 19 App 0x106dd0584 RunDartOnCPU Thread 7 name: io.flutter.1.raster 0 libsystem_kernel.dylib 0x36f30c2d0 mach_msg_trap 1 libsystem_kernel.dylib 0x36f30b65c mach_msg 2 CoreFoundation 0x3136c0c2c __CFRunLoopServiceMachPort 3 CoreFoundation 0x3136bac10 __CFRunLoopRun 4 CoreFoundation 0x3136ba218 CFRunLoopRunSpecific 5 Flutter 0x103fcfe04 core::core_simd::swizzle::Which::fmt 6 Flutter 0x103fcf478 core::core_simd::swizzle::Which::fmt 7 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 8 name: io.flutter.1.io 0 libsystem_kernel.dylib 0x36f30c2d0 mach_msg_trap 1 libsystem_kernel.dylib 0x36f30b65c mach_msg 2 CoreFoundation 0x3136c0c2c __CFRunLoopServiceMachPort 3 CoreFoundation 0x3136bac10 __CFRunLoopRun 4 CoreFoundation 0x3136ba218 CFRunLoopRunSpecific 5 Flutter 0x103fcfe04 core::core_simd::swizzle::Which::fmt 6 Flutter 0x103fcf478 core::core_simd::swizzle::Which::fmt 7 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 9 name: io.worker.1 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 10 name: io.worker.2 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 11 name: io.worker.3 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 12 name: io.worker.4 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 13 name: io.worker.5 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 14 name: io.worker.6 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 15 name: dart:io EventHandler 0 libsystem_kernel.dylib 0x36f332230 kevent 1 Flutter 0x1042887cc core::core_simd::swizzle::Which::fmt 2 Flutter 0x1042b62c0 core::core_simd::swizzle::Which::fmt 3 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 16 name: io.worker.1 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 17 name: io.worker.2 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 18 name: io.worker.3 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 19 name: io.worker.4 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d454 _pthread_cond_wait 2 Flutter 0x103d3d828 core::core_simd::swizzle::Which::fmt 3 Flutter 0x103fc9058 core::core_simd::swizzle::Which::fmt 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 20 name: AVAudioSession Notify Thread 0 libsystem_kernel.dylib 0x36f30c2d0 mach_msg_trap 1 libsystem_kernel.dylib 0x36f30b65c mach_msg 2 CoreFoundation 0x3136c0c2c __CFRunLoopServiceMachPort 3 CoreFoundation 0x3136bac10 __CFRunLoopRun 4 CoreFoundation 0x3136ba218 CFRunLoopRunSpecific 5 AudioSession 0x322cbb0c0 GenericRunLoopThread::Entry 6 AudioSession 0x322cbd258 CAPThread::Entry 7 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 21 0 libsystem_kernel.dylib 0x36f331184 __workq_kernreturn 1 libsystem_pthread.dylib 0x3aa80b84c _pthread_wqthread Thread 22 name: com.google.firebase.crashlytics.MachExceptionServer 0 libsystem_kernel.dylib 0x36f30c2d0 mach_msg_trap 1 libsystem_kernel.dylib 0x36f30b65c mach_msg 2 FirebaseCrashlytics 0x102da32b4 [inlined] FIRCLSMachExceptionReadMessage (FIRCLSMachException.c:192) 3 FirebaseCrashlytics 0x102da32b4 FIRCLSMachExceptionServer (FIRCLSMachException.c:168) 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 23 0 libsystem_kernel.dylib 0x36f331184 __workq_kernreturn 1 libsystem_pthread.dylib 0x3aa80b84c _pthread_wqthread Thread 25 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x1043c6e10 InternalFlutterGpuTestClass_Method 4 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 26 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x1043c6e10 InternalFlutterGpuTestClass_Method 4 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 27 0 libsystem_kernel.dylib 0x36f330814 __semwait_signal 1 libsystem_c.dylib 0x325f2b70c nanosleep 2 libsystem_c.dylib 0x325f2b4f0 sleep 3 Sentry 0x103193c74 monitorCachedData (SentryCrashCachedData.c:145) 4 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 28 name: SentryCrash Exception Handler (Secondary) 0 libsystem_kernel.dylib 0x36f30c2d0 mach_msg_trap 1 libsystem_kernel.dylib 0x36f30b65c mach_msg 2 Sentry 0x10319ff90 handleExceptions (SentryCrashMonitor_MachException.c:314) 3 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 30 name: io.sentry.app-hang-tracker 0 libsystem_kernel.dylib 0x36f330814 __semwait_signal 1 libsystem_c.dylib 0x325f2b70c nanosleep 2 Foundation 0x315d057ac +[NSThread sleepForTimeInterval:] 3 Sentry 0x10318246c -[SentryANRTracker detectANRs] (SentryANRTracker.m:105) 4 Foundation 0x315e1ca30 __NSThread__start__ 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 31 name: com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x36f30c2d0 mach_msg_trap 1 libsystem_kernel.dylib 0x36f30b65c mach_msg 2 CoreFoundation 0x3136c0c2c __CFRunLoopServiceMachPort 3 CoreFoundation 0x3136bac10 __CFRunLoopRun 4 CoreFoundation 0x3136ba218 CFRunLoopRunSpecific 5 CFNetwork 0x3146b42bc _CFURLStorageSessionCopyCache 6 Foundation 0x315e1ca30 __NSThread__start__ 7 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 32 name: DartWorker 0 App 0x107290a4c _ChunkedJsonParser.parseString (convert_patch.dart:1027) 1 App 0x10728e5c4 _ChunkedJsonParser.parse (convert_patch.dart:838) 2 App 0x10728dae8 _parseJson (convert_patch.dart:35) 3 App 0x10728d978 [inlined] JsonDecoder.convert (json.dart:610) 4 App 0x10728d978 JsonCodec.decode (json.dart:216) 5 App 0x106e6c014 jsonDecode (json.dart:155) 6 App 0x106e6c08c jsonDecode 7 App 0x106e6dbd0 _IsolateConfiguration.applyAndTime. (compute_io.dart:128) 8 App 0x106e6db28 Timeline.timeSync (timeline.dart:173) 9 App 0x106e6dad0 _IsolateConfiguration.applyAndTime (compute_io.dart:126) 10 App 0x106e6d860 _spawn (compute_io.dart:148) 11 App 0x106e6d7d8 _spawn (compute_io.dart:143) 12 App 0x1073c8800 _Closure.call 13 App 0x106de53c0 _delayEntrypointInvocation. (isolate_patch.dart:300) 14 App 0x1073c8800 _Closure.call 15 App 0x106de42cc _RawReceivePort._handleMessage (isolate_patch.dart:184) 16 App 0x106dd0584 RunDartOnCPU Thread 33 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x1043c6e10 InternalFlutterGpuTestClass_Method 4 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 34 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x104316918 InternalFlutterGpuTestClass_Method 4 Flutter 0x1043c6e44 InternalFlutterGpuTestClass_Method 5 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 6 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 35 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x1043c6e10 InternalFlutterGpuTestClass_Method 4 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 36 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x1043c6e10 InternalFlutterGpuTestClass_Method 4 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 37 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x1043c6e10 InternalFlutterGpuTestClass_Method 4 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 38 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x1043c6e10 InternalFlutterGpuTestClass_Method 4 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 39 name: DartWorker 0 libsystem_kernel.dylib 0x36f3301ac __psynch_cvwait 1 libsystem_pthread.dylib 0x3aa80d480 _pthread_cond_wait 2 Flutter 0x10437f77c InternalFlutterGpuTestClass_Method 3 Flutter 0x1043c6e10 InternalFlutterGpuTestClass_Method 4 Flutter 0x10437f148 InternalFlutterGpuTestClass_Method 5 libsystem_pthread.dylib 0x3aa809b3c _pthread_start Thread 6 crashed with ARM Thread State (64-bit): x0: 0x000000010bbb9f69 x1: 0x000000010bbbaa89 x2: 0x0000000107a88081 x3: 0x000000010bc01079 x4: 0x00000000000000ac x5: 0x000000010bbba479 x6: 0x000000010bbbabd8 x7: 0x00000000000000ff x8: 0x0000000107c55501 x9: 0x0000000109618460 x10: 0x00000001048c4ab8 x11: 0x000000016e58f150 x12: 0x94d4210375967f21 x13: 0x0000000000000000 x14: 0x0000000000000011 x15: 0x00000001243ffac8 x16: 0x0000000000000000 x17: 0x0000000000000008 x18: 0x0000000000000000 x19: 0x4156574340000000 x20: 0x4156574340000000 x21: 0x000000012440c000 x22: 0x0000000107a88081 x23: 0x4156574340000000 x24: 0x0000000107fa3a51 x25: 0x000000012431f000 x26: 0x0000000123055200 x27: 0x0000000109000080 x28: 0x0000000800000000 fp: 0x00000001243ffae8 lr: 0xfffffffffffffffe sp: 0x000000012431f000 pc: 0xfffffffffffffffe cpsr: 0x0000000040001000 EOF
vlazdra commented 9 months ago

Hey @eseidel ! Thank you for sharing in so much detail! It's really cool to get a better insight into what's what in the stacktraces. I've added my App.dSYM and sharing the new stacktrace if it helps, but it looks similiar as @gauravmehta13 already shared.

This one is with shorebird 0.25.2

OS Version: iOS 17.2.1 (21C66)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: BUS_NOOP
Crashed Thread: 8

Application Specific Information:
Exception 1, Code 257, Subcode 18446744073709551614 >
EXC_ARM_DA_ALIGN at 0xfffffffffffffffe.

Thread 8 Crashed:
0   <unknown>                       0xffffffffe         [inlined] <redacted>
1   <unknown>                       0xffffffffe         <redacted>
2   App                             0x1095f13a0         [inlined] _RootZone.runUnary (zone.dart:1661)
3   App                             0x1095f13a0         _FutureListener.handleValue (future_impl.dart:162)
4   App                             0x1095f1230         Future._propagateToListeners.handleValueCallback (future_impl.dart:846)
5   App                             0x1095ef6f8         Future._propagateToListeners (future_impl.dart:875)
6   App                             0x1095ef310         Future._completeWithValue (future_impl.dart:647)
7   App                             0x109b8b734         _SuspendState._returnAsync (async_patch.dart:352)
8   App                             0x1095c0590         RunDartOnCPU
9   <unknown>                       0xffffffffe         <redacted>
10  App                             0x1095f13a0         [inlined] _RootZone.runUnary (zone.dart:1661)
11  App                             0x1095f13a0         _FutureListener.handleValue (future_impl.dart:162)
12  App                             0x1095f1230         Future._propagateToListeners.handleValueCallback (future_impl.dart:846)
13  App                             0x1095ef6f8         Future._propagateToListeners (future_impl.dart:875)
14  App                             0x1095f40fc         Future._complete (future_impl.dart:638)
15  App                             0x109acb984         _SyncCompleter.complete (future_impl.dart:59)
16  App                             0x109789684         Isolate._spawnCommon.<T> (isolate_patch.dart:487)
17  App                             0x109b8f310         _Closure.call
18  App                             0x1095eba44         _RawReceivePort._handleMessage (isolate_patch.dart:184)
19  App                             0x1095c0590         RunDartOnCPU

Thread 0
0   libsystem_kernel.dylib          0x3a4dc9178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a4dc8f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a4dc8e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a4dc8c64         mach_msg
4   CoreFoundation                  0x315f99b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x315f97a10         __CFRunLoopRun
6   CoreFoundation                  0x315f97474         CFRunLoopRunSpecific
7   GraphicsServices                0x39ca794f4         GSEventRunModal
8   UIKitCore                       0x31a5e6628         -[UIApplication _run]
9   UIKitCore                       0x31a5e5c64         UIApplicationMain
10  Runner                          0x200e48970         <redacted>
11  <unknown>                       0x1b0f5adcc         <redacted>

Thread 1
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 2
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 3
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 4 name: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib          0x3a4dc9178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a4dc8f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a4dc8e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a4dc8c64         mach_msg
4   CoreFoundation                  0x315f99b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x315f97a10         __CFRunLoopRun
6   CoreFoundation                  0x315f97474         CFRunLoopRunSpecific
7   Foundation                      0x313ec4488         -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
8   Foundation                      0x313ef1748         -[NSRunLoop(NSRunLoop) runUntilDate:]
9   UIKitCore                       0x31a5484a4         -[UIEventFetcher threadMain]
10  Foundation                      0x313f47ddc         __NSThread__start__
11  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 5
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 6
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 7
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 8 name: io.flutter.1.ui Crashed:
0   <unknown>                       0xffffffffe         [inlined] <redacted>
1   <unknown>                       0xffffffffe         <redacted>
2   App                             0x1095f13a0         [inlined] _RootZone.runUnary (zone.dart:1661)
3   App                             0x1095f13a0         _FutureListener.handleValue (future_impl.dart:162)
4   App                             0x1095f1230         Future._propagateToListeners.handleValueCallback (future_impl.dart:846)
5   App                             0x1095ef6f8         Future._propagateToListeners (future_impl.dart:875)
6   App                             0x1095ef310         Future._completeWithValue (future_impl.dart:647)
7   App                             0x109b8b734         _SuspendState._returnAsync (async_patch.dart:352)
8   App                             0x1095c0590         RunDartOnCPU
9   <unknown>                       0xffffffffe         <redacted>
10  App                             0x1095f13a0         [inlined] _RootZone.runUnary (zone.dart:1661)
11  App                             0x1095f13a0         _FutureListener.handleValue (future_impl.dart:162)
12  App                             0x1095f1230         Future._propagateToListeners.handleValueCallback (future_impl.dart:846)
13  App                             0x1095ef6f8         Future._propagateToListeners (future_impl.dart:875)
14  App                             0x1095f40fc         Future._complete (future_impl.dart:638)
15  App                             0x109acb984         _SyncCompleter.complete (future_impl.dart:59)
16  App                             0x109789684         Isolate._spawnCommon.<T> (isolate_patch.dart:487)
17  App                             0x109b8f310         _Closure.call
18  App                             0x1095eba44         _RawReceivePort._handleMessage (isolate_patch.dart:184)
19  App                             0x1095c0590         RunDartOnCPU

Thread 9 name: io.flutter.1.raster
0   IOGPU                           0x402bb44e8         IOGPUMetalResourcePoolCreatePooledResource
1   IOGPU                           0x402bb4368         IOGPUMetalCommandBufferStorageAllocResourceAtIndex
2   AGXMetalA12                     0x44819b9d4         AGX::DataBufferAllocator<T>::initializeDataBuffer
3   AGXMetalA12                     0x44819afb0         AGX::ContextCommon<T>::newCommand
4   AGXMetalA12                     0x44826a1cc         AGX::RenderContext<T>::beginRenderPass
5   AGXMetalA12                     0x44827b1bc         -[AGXA12FamilyRenderContext initWithCommandBuffer:descriptor:subEncoderIndex:framebuffer:]
6   AGXMetalA12                     0x448191830         -[AGXA12FamilyCommandBuffer renderCommandEncoderWithDescriptor:]
7   Flutter                         0x1062856a0         impeller::CommandBufferMTL::SubmitCommandsAsync (command_buffer_mtl.mm:200)
8   Flutter                         0x106279538         impeller::InlinePassContext::EndPass (inline_pass_context.cc:58)
9   Flutter                         0x106271d94         [inlined] impeller::InlinePassContext::~InlinePassContext (inline_pass_context.cc:33)
10  Flutter                         0x106271d94         [inlined] impeller::InlinePassContext::~InlinePassContext (inline_pass_context.cc:31)
11  Flutter                         0x106271d94         impeller::EntityPass::OnRender (entity_pass.cc:1012)
12  Flutter                         0x1061e5984         [inlined] impeller::EntityPass::Render (entity_pass.cc:486)
13  Flutter                         0x1061e5984         impeller::AiksContext::Render (aiks_context.cc:49)
14  Flutter                         0x10609b984         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__value_func<T>::operator()[abi:v15000] (function.h:512)
15  Flutter                         0x10609b984         [inlined] std::_LIBCPP_ABI_NAMESPACE::function<T>::operator() (function.h:1187)
16  Flutter                         0x10609b984         impeller::Renderer::Render (renderer.cc:48)
17  Flutter                         0x10631db0c         [inlined] flutter::GPUSurfaceMetalImpeller::AcquireFrameFromCAMetalLayer::lambda::operator() (gpu_surface_metal_impeller.mm:159)
18  Flutter                         0x10631db0c         [inlined] fml::internal::CopyableLambda<T>::operator()<T> (make_copyable.h:24)
19  Flutter                         0x10631db0c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
20  Flutter                         0x10631db0c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke_void_return_wrapper<T>::__call<T> (invoke.h:479)
21  Flutter                         0x10631db0c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__alloc_func<T>::operator()[abi:v15000] (function.h:185)
22  Flutter                         0x10631db0c         std::_LIBCPP_ABI_NAMESPACE::__function::__func<T>::operator() (function.h:359)
23  Flutter                         0x1061e3eac         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__value_func<T>::operator()[abi:v15000] (function.h:512)
24  Flutter                         0x1061e3eac         [inlined] std::_LIBCPP_ABI_NAMESPACE::function<T>::operator() (function.h:1187)
25  Flutter                         0x1061e3eac         [inlined] flutter::SurfaceFrame::PerformSubmit (surface_frame.cc:68)
26  Flutter                         0x1061e3eac         flutter::SurfaceFrame::Submit (surface_frame.cc:46)
27  Flutter                         0x10611da88         flutter::Rasterizer::DrawToSurfaceUnsafe (rasterizer.cc:653)
28  Flutter                         0x10611dcdc         [inlined] flutter::Rasterizer::DrawToSurface::lambda::operator() (rasterizer.cc:526)
29  Flutter                         0x10611dcdc         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
30  Flutter                         0x10611dcdc         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke_void_return_wrapper<T>::__call<T> (invoke.h:488)
31  Flutter                         0x10611dcdc         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__alloc_func<T>::operator()[abi:v15000] (function.h:185)
32  Flutter                         0x10611dcdc         std::_LIBCPP_ABI_NAMESPACE::__function::__func<T>::operator() (function.h:359)
33  Flutter                         0x106019084         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__value_func<T>::operator()[abi:v15000] (function.h:512)
34  Flutter                         0x106019084         [inlined] std::_LIBCPP_ABI_NAMESPACE::function<T>::operator() (function.h:1187)
35  Flutter                         0x106019084         fml::SyncSwitch::Execute
36  Flutter                         0x10611d370         flutter::Rasterizer::DrawToSurface (rasterizer.cc:522)
37  Flutter                         0x10611e6d4         [inlined] flutter::Rasterizer::DoDraw (rasterizer.cc:415)
38  Flutter                         0x10611e6d4         [inlined] flutter::Rasterizer::Draw::lambda::operator() (rasterizer.cc:226)
39  Flutter                         0x10611e6d4         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
40  Flutter                         0x10611e6d4         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke_void_return_wrapper<T>::__call<T> (invoke.h:488)
41  Flutter                         0x10611e6d4         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__alloc_func<T>::operator()[abi:v15000] (function.h:185)
42  Flutter                         0x10611e6d4         std::_LIBCPP_ABI_NAMESPACE::__function::__func<T>::operator() (function.h:359)
43  Flutter                         0x10611df14         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__value_func<T>::operator()[abi:v15000] (function.h:512)
44  Flutter                         0x10611df14         [inlined] std::_LIBCPP_ABI_NAMESPACE::function<T>::operator() (function.h:1187)
45  Flutter                         0x10611df14         [inlined] flutter::Pipeline<T>::Consume (pipeline.h:201)
46  Flutter                         0x10611df14         flutter::Rasterizer::Draw (rasterizer.cc:231)
47  Flutter                         0x106136264         [inlined] flutter::Shell::OnAnimatorDraw::lambda::operator() (shell.cc:1244)
48  Flutter                         0x106136264         [inlined] fml::internal::CopyableLambda<T>::operator()<T> (make_copyable.h:24)
49  Flutter                         0x106136264         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
50  Flutter                         0x106136264         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke_void_return_wrapper<T>::__call<T> (invoke.h:488)
51  Flutter                         0x106136264         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__alloc_func<T>::operator()[abi:v15000] (function.h:185)
52  Flutter                         0x106136264         std::_LIBCPP_ABI_NAMESPACE::__function::__func<T>::operator() (function.h:359)
53  Flutter                         0x1060176b8         [inlined] std::_LIBCPP_ABI_NAMESPACE::__function::__value_func<T>::operator()[abi:v15000] (function.h:512)
54  Flutter                         0x1060176b8         [inlined] std::_LIBCPP_ABI_NAMESPACE::function<T>::operator() (function.h:1187)
55  Flutter                         0x1060176b8         fml::MessageLoopImpl::FlushTasks (message_loop_impl.cc:126)
56  Flutter                         0x10601ae4c         [inlined] fml::MessageLoopImpl::RunExpiredTasksNow (message_loop_impl.cc:139)
57  Flutter                         0x10601ae4c         fml::MessageLoopDarwin::OnTimerFire (message_loop_darwin.mm:85)
58  CoreFoundation                  0x3160113e8         __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
59  CoreFoundation                  0x316011090         __CFRunLoopDoTimer
60  CoreFoundation                  0x315f9ac80         __CFRunLoopDoTimers
61  CoreFoundation                  0x315f97c98         __CFRunLoopRun
62  CoreFoundation                  0x315f97474         CFRunLoopRunSpecific
63  Flutter                         0x10601af38         fml::MessageLoopDarwin::Run (message_loop_darwin.mm:51)
64  Flutter                         0x10601a5ac         [inlined] fml::MessageLoopImpl::DoRun (message_loop_impl.cc:94)
65  Flutter                         0x10601a5ac         [inlined] fml::MessageLoop::Run (message_loop.cc:49)
66  Flutter                         0x10601a5ac         [inlined] fml::Thread::Thread::lambda::operator() (thread.cc:85)
67  Flutter                         0x10601a5ac         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
68  Flutter                         0x10601a5ac         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
69  Flutter                         0x10601a5ac         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
70  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 10 name: io.flutter.1.io
0   libsystem_kernel.dylib          0x3a4dc9178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a4dc8f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a4dc8e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a4dc8c64         mach_msg
4   CoreFoundation                  0x315f99b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x315f97a10         __CFRunLoopRun
6   CoreFoundation                  0x315f97474         CFRunLoopRunSpecific
7   Flutter                         0x10601af38         fml::MessageLoopDarwin::Run (message_loop_darwin.mm:51)
8   Flutter                         0x10601a5ac         [inlined] fml::MessageLoopImpl::DoRun (message_loop_impl.cc:94)
9   Flutter                         0x10601a5ac         [inlined] fml::MessageLoop::Run (message_loop.cc:49)
10  Flutter                         0x10601a5ac         [inlined] fml::Thread::Thread::lambda::operator() (thread.cc:85)
11  Flutter                         0x10601a5ac         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
12  Flutter                         0x10601a5ac         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
13  Flutter                         0x10601a5ac         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
14  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 11 name: io.worker.1
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 12 name: io.worker.2
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 13 name: io.worker.3
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 14 name: io.worker.4
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 15 name: io.worker.5
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 16 name: io.worker.6
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 17 name: dart:io EventHandler
0   libsystem_kernel.dylib          0x3a4dd6f0c         kevent
1   Flutter                         0x1062d3900         dart::bin::EventHandlerImplementation::EventHandlerEntry (eventhandler_macos.cc:459)
2   Flutter                         0x1063013f4         dart::bin::ThreadStart (thread_macos.cc:91)
3   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 18 name: io.worker.1
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 19 name: io.worker.2
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 20 name: io.worker.3
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 21 name: io.worker.4
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   Flutter                         0x105d8895c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__libcpp_condvar_wait[abi:v15000] (__threading_support:335)
3   Flutter                         0x105d8895c         std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait (condition_variable.cpp:46)
4   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait<T> (__mutex_base:398)
5   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::WorkerMain (concurrent_message_loop.cc:75)
6   Flutter                         0x10601418c         [inlined] fml::ConcurrentMessageLoop::ConcurrentMessageLoop::lambda::operator() (concurrent_message_loop.cc:20)
7   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__invoke[abi:v15000]<T> (invoke.h:403)
8   Flutter                         0x10601418c         [inlined] std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<T> (thread:284)
9   Flutter                         0x10601418c         std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<T> (thread:295)
10  libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 22
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 23
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 24
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 25 name: com.google.firebase.crashlytics.MachExceptionServer
0   libsystem_kernel.dylib          0x3a4dc9178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a4dc8f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a4dc8e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a4dc8c64         mach_msg
4   FirebaseCrashlytics             0x102dc3260         <unknown> + 104
5   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 26
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 27
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 28
0   libsystem_kernel.dylib          0x3a4dd16d0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e9f359ac         _pthread_wqthread

Thread 29 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106361a34         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106361a34         dart::MutatorThreadPool::OnEnterIdleLocked (isolate.cc:305)
5   Flutter                         0x106411f7c         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:167)
6   Flutter                         0x106411f7c         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
7   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
8   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 30 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 31 name: JavaScriptCore libpas scavenger
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34fd0         _pthread_cond_wait
2   JavaScriptCore                  0x3429db1b4         scavenger_thread_main
3   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 32
0   libsystem_kernel.dylib          0x3a4dc9978         __semwait_signal
1   libsystem_c.dylib               0x325fd9f1c         nanosleep
2   libsystem_c.dylib               0x325fe81d8         sleep
3   Sentry                          0x1035f3c1c         <unknown> + 676
4   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 33 name: SentryCrash Exception Handler (Secondary)
0   libsystem_kernel.dylib          0x3a4dc9178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a4dc8f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a4dc8e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a4dc8c64         mach_msg
4   Sentry                          0x1035fff48         <unknown> + 172
5   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 35 name: io.sentry.app-hang-tracker
0   libsystem_kernel.dylib          0x3a4dc9978         __semwait_signal
1   libsystem_c.dylib               0x325fd9f1c         nanosleep
2   Foundation                      0x3145de768         +[NSThread sleepForTimeInterval:]
3   Sentry                          0x1035e2468         <unknown> + 560
4   Foundation                      0x313f47ddc         __NSThread__start__
5   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 36 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 37 name: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x3a4dc9178         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a4dc8f0c         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a4dc8e24         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a4dc8c64         mach_msg
4   CoreFoundation                  0x315f99b18         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x315f97a10         __CFRunLoopRun
6   CoreFoundation                  0x315f97474         CFRunLoopRunSpecific
7   CFNetwork                       0x31836c05c         estimatedPropertyListSize
8   Foundation                      0x313f47ddc         __NSThread__start__
9   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 38 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 39 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 40 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 41 name: DartWorker
0   App                             0x109b83e80         String._substringUncheckedNative (string_patch.dart:1017)
1   App                             0x1095e3920         _StringBase.substring (string_patch.dart:399)
2   App                             0x109a29e48         _JsonStringParser.getString (convert_patch.dart:1399)
3   App                             0x109a29d00         _ChunkedJsonParser.parseString (convert_patch.dart:1020)
4   App                             0x109a278c0         _ChunkedJsonParser.parse (convert_patch.dart:838)
5   App                             0x109a26d88         _parseJson (convert_patch.dart:35)
6   App                             0x109a6522c         [inlined] JsonDecoder.convert (json.dart:610)
7   App                             0x109a6522c         JsonCodec.decode (json.dart:216)
8   App                             0x10978a124         jsonDecode (json.dart:155)
9   App                             0x10978a0a4         jsonDecode (json.dart:153)
10  App                             0x109791f20         _IsolateConfiguration.applyAndTime.<T> (compute_io.dart:128)
11  App                             0x109791e78         Timeline.timeSync (timeline.dart:173)
12  App                             0x109791e20         _IsolateConfiguration.applyAndTime (compute_io.dart:126)
13  App                             0x109791b84         _spawn (compute_io.dart:148)
14  App                             0x109791af8         _spawn (compute_io.dart:143)
15  App                             0x109b8f310         _Closure.call
16  App                             0x1095eded0         _delayEntrypointInvocation.<T> (isolate_patch.dart:300)
17  App                             0x109b8f310         _Closure.call
18  App                             0x1095eba44         _RawReceivePort._handleMessage (isolate_patch.dart:184)
19  App                             0x1095c0590         RunDartOnCPU

Thread 42 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 43 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 44 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 45 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 46 name: DartWorker
0   libsystem_kernel.dylib          0x3a4dc9b1c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3e9f34ffc         _pthread_cond_wait
2   Flutter                         0x1063ca898         dart::Monitor::WaitMicros (os_thread_macos.cc:449)
3   Flutter                         0x106411f48         [inlined] dart::MonitorLocker::WaitMicros (lockers.h:181)
4   Flutter                         0x106411f48         [inlined] dart::ThreadPool::WorkerLoop (thread_pool.cc:183)
5   Flutter                         0x106411f48         dart::ThreadPool::Worker::Main (thread_pool.cc:330)
6   Flutter                         0x1063ca264         dart::ThreadStart (os_thread_macos.cc:136)
7   libsystem_pthread.dylib         0x3e9f364d0         _pthread_start

Thread 8 crashed with ARM Thread State (64-bit):
    x0: 0x0000000122d3d629   x1: 0x0000000122d3de09   x2: 0x0000000102988081   x3: 0x0000000123204ce9
    x4: 0x00000000000000ac   x5: 0x0000000122d3d7f9   x6: 0x0000000122d3df58   x7: 0x00000000000000ff
    x8: 0x00000001045e77b1   x9: 0x00000001054bf580  x10: 0x0000000106910b58  x11: 0x000000016fa3c170
   x12: 0xfa7627e3029810a6  x13: 0x0000000000000000  x14: 0x0000000000000011  x15: 0x0000000118197ac8
   x16: 0x0000000000000000  x17: 0x0000000000000008  x18: 0x0000000000000000  x19: 0x4173523050000000
   x20: 0x4173523050000000  x21: 0x0000000118208000  x22: 0x0000000102988081  x23: 0x4173523050000000
   x24: 0x00000001048a4af1  x25: 0x00000001180b7000  x26: 0x0000000114857200  x27: 0x0000000105100080
   x28: 0x0000000800000000   fp: 0x0000000118197ae8   lr: 0xfffffffffffffffe   sp: 0x00000001180b7000
    pc: 0xfffffffffffffffe cpsr: 0x0000000040000000

EOF
eseidel commented 9 months ago

Thank you very much for the report! After some help from another customer this morning we're now able to reproduce and we're working on reducing the failure and fixing! I hope we'll have a reduction within the next few hours and hopefully a fix tomorrow. 🤞

eseidel commented 9 months ago

OK, we found the bug. This is the repro:

main.dart:

import 'a.dart';

Future<void> main() async {
  await compute();
}

a.dart:

import 'b.dart' as b;

const Future<void> Function() compute = b.compute;

b.dart

Future<void> compute() async {
  await Future.delayed(Duration.zero);
}

It doesn't seem to crash upstream flutter, but it definitely crashes Shorebird. I think it's still causes incorrect execution in upstream flutter, just doesn't crash.

We found it earlier in the day and filed as https://github.com/dart-lang/sdk/issues/54860, but didn't realize it was also causing our crash!

This happens to be triggered by package:dio, which is a relatively popular package. It could also be triggered by other packages, but I suspect almost all reports are from package:dio.

eseidel commented 9 months ago

Turns out we can't easily fix this for Flutter 3.16.9 because it requires a change to a part of Dart we don't currently use our forked copy for. So we're starting an upgrade to Dart 3.3.0 in anticipation of Flutter 3.19.0 presumably being soon after: https://github.com/shorebirdtech/shorebird/issues/1723

eseidel commented 9 months ago

We've prepared a release of Flutter 3.19.0-beta and Dart 3.3.0 for Monday. We decided it was better to move our Dart forward than trying to make more patches to work around this upstream bug.

eseidel commented 9 months ago

Thank you to the many who have helped and offered to help! We've built 3.19.0-beta and finished most of our pre-launch checks. We have a couple more to complete monday morning and then we'll launch. Dart 3.3.0 appears to be already pushed to stable, and my guess is that Flutter 3.19.0 will soon too, so we picked the Flutter 3.19.0-beta to ensure we depended on a recent enough Dart to include this upstream fix in it. Thank you all again for your patience.

eseidel commented 9 months ago

More context as to why we didn't fix this in our Dart for 3.16.9:

Currently when you run shorebird we pull our own (lightly customized) version of flutter into a cache directory. That flutter in turn, pulls artifacts (including dart) from download.shorebird.dev, our "artifact proxy". However we only replace a few of the artifacts Flutter needs and the rest of them we forward the request on to Google for download. The dart sdk is one of the artifacts we don't replace, and instead forward. And the bug here is in the dart-sdk itself, in the generation of the app.dill file which when executed inside our modified Dart runtime crashes in this way. It probably has (slightly) incorrect behavior when executing in an unmodified Dart runtime too, it just doesn't crash (it does ASSERT in Debug mode, but in Release mode it seems to work upstream, only crashing in our modified Dart).

Replacing the Dart SDK on downloads.shorebird.dev would be a little tricky. Our modified Dart SDK doesn't necessarily work for development / JIT workloads, since we only test it in the AOT / arm64 / iOS cases. So we'd want to either fix our SDK to ensure it worked for all JIT / command line workloads and test it. Or we'd want to build yet-another copy of Dart. In either case it would be sizable infrastructure work that we avoided by just updating our Dart dependency to the just-published-on-friday stable 3.3.0.

felangel commented 9 months ago

We've landed the fix for this bug 🎉 Thanks to all who helped us track this down!

As @eseidel mentioned, the fix required pulling in changes from upstream Dart so we've created a new Shorebird Flutter release which is based on the current beta (3.19.0-0.4.pre).

To use the beta version we recommend switching to the Flutter beta channel and verifying that your app runs smoothly before releasing with shorebird.

flutter channel beta
flutter upgrade

Once you've upgraded to the beta channel you can point shorebird to the beta release via:

shorebird flutter versions use 3.19.0-0.4.pre

Finally you can create a new iOS release with the beta version:

shorebird release ios

We expect a new stable Flutter release very soon and plan to publish a new stable Shorebird release as soon as Flutter 3.19.0 is out but in the meantime we believe this beta release fixes the crash. Let us know if you encounter any issues and we're more than happy to help!

vlazdra commented 9 months ago

@eseidel @felangel Hey guys, I just updated shorebird to 0.26.0 and created a new iOS release.

I'm happy to confirm that the app no longer experiecens a crash when I do the same exact steps of opening a single tab in my app where the response is bigger than 50Kb (yes I'm using dio).

Awesome work, and many thanks! 🙌