Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug report] iOS Thumbnail Fetch Crash #1238

Open
Another1dd opened this issue Dec 3, 2024 · 6 comments
Open

[Bug report] iOS Thumbnail Fetch Crash #1238

Another1dd opened this issue Dec 3, 2024 · 6 comments

Comments

@Another1dd
Copy link

Another1dd commented Dec 3, 2024

Version

3.6.3

Platforms

iOS

Device Model

All, iOS 17+

flutter info

[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1.1 24B91 darwin-arm64, locale en-BY)
    • Flutter version 3.24.5 on channel stable at /Users/timofejlemesenko/Flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (3 weeks ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/timofejlemesenko/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] VS Code (version 1.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Network resources
    • All expected network resources are available.

• No issues found!

How to reproduce?

We are currently unable to reliably reproduce this issue, but we have observed a significant number of crashes recorded in Crashlytics.

Logs

# Crashlytics - Stack trace

com.apple.main-thread
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  GraphicsServices               0x11a8 GSEventRunModal + 164
8  UIKitCore                      0x40aae8 -[UIApplication _run] + 888
9  UIKitCore                      0x4bed98 UIApplicationMain + 340
10 UIKitCore                      0x638504 keypath_get_selector_hoverStyle + 11024
11 Runner                         0xa680 main + 4363593344 (AppDelegate.swift:4363593344)
12 ???                            0x1ad2f7154 (Missing)

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  Foundation                     0xc7b5c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0xc79ac -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x41e81c -[UIEventFetcher threadMain] + 420
10 Foundation                     0xde428 __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x606c _pthread_start + 136
12 libsystem_pthread.dylib        0x10d8 thread_start + 8

io.flutter.1.ui
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  Flutter                        0x81f48 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
8  Flutter                        0x81b90 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
9  Flutter                        0x81820 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
10 libsystem_pthread.dylib        0x606c _pthread_start + 136
11 libsystem_pthread.dylib        0x10d8 thread_start + 8

io.flutter.1.raster
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  Flutter                        0x81f48 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
8  Flutter                        0x81b90 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
9  Flutter                        0x81820 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
10 libsystem_pthread.dylib        0x606c _pthread_start + 136
11 libsystem_pthread.dylib        0x10d8 thread_start + 8

io.flutter.1.io
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  Flutter                        0x81f48 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
8  Flutter                        0x81b90 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
9  Flutter                        0x81820 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
10 libsystem_pthread.dylib        0x606c _pthread_start + 136
11 libsystem_pthread.dylib        0x10d8 thread_start + 8

io.worker.1
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x36e4 _pthread_cond_wait + 1228
2  Flutter                        0x60800 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
3  Flutter                        0x7b0dc (Missing UUID 4c4c444f55553144a1340141eeacf94a)
4  libsystem_pthread.dylib        0x606c _pthread_start + 136
5  libsystem_pthread.dylib        0x10d8 thread_start + 8

io.worker.2
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x36e4 _pthread_cond_wait + 1228
2  Flutter                        0x60800 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
3  Flutter                        0x7b0dc (Missing UUID 4c4c444f55553144a1340141eeacf94a)
4  libsystem_pthread.dylib        0x606c _pthread_start + 136
5  libsystem_pthread.dylib        0x10d8 thread_start + 8

io.worker.3
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x36e4 _pthread_cond_wait + 1228
2  Flutter                        0x60800 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
3  Flutter                        0x7b0dc (Missing UUID 4c4c444f55553144a1340141eeacf94a)
4  libsystem_pthread.dylib        0x606c _pthread_start + 136
5  libsystem_pthread.dylib        0x10d8 thread_start + 8

dart:io EventHandler
0  libsystem_kernel.dylib         0x84c8 kevent + 8
1  Flutter                        0x56da6c InternalFlutterGpu_Texture_AsImage + 4654952
2  Flutter                        0x59926c InternalFlutterGpu_Texture_AsImage + 4833128
3  libsystem_pthread.dylib        0x606c _pthread_start + 136
4  libsystem_pthread.dylib        0x10d8 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

com.google.firebase.crashlytics.MachExceptionServer
0  FirebaseCrashlytics            0x1f4c0 FIRCLSProcessRecordAllThreads + 184
1  FirebaseCrashlytics            0x1f8a4 FIRCLSProcessRecordAllThreads + 1180
2  FirebaseCrashlytics            0x17c94 FIRCLSHandler + 48
3  FirebaseCrashlytics            0x1a310 FIRCLSMachExceptionServer + 688
4  libsystem_pthread.dylib        0x606c _pthread_start + 136
5  libsystem_pthread.dylib        0x10d8 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

JavaScriptCore libpas scavenger
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x36e4 _pthread_cond_wait + 1228
2  JavaScriptCore                 0x15671e0 scavenger_thread_main + 1316
3  libsystem_pthread.dylib        0x606c _pthread_start + 136
4  libsystem_pthread.dylib        0x10d8 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Crashed: com.apple.root.default-qos
0  libobjc.A.dylib                0x3c20 objc_msgSend + 32
1  Photos                         0x25f6c -[PHImageManager requestNewCGImageForAsset:targetSize:contentMode:options:resultHandler:] + 344
2  Photos                         0x25de4 -[PHImageManager requestImageForAsset:targetSize:contentMode:options:resultHandler:] + 172
3  photo_manager                  0xa244 -[PMManager fetchThumb:option:resultHandler:progressHandler:] + 452
4  photo_manager                  0xa01c -[PMManager getThumbWithId:option:resultHandler:progressHandler:] + 160
5  photo_manager                  0x12f34 -[PMPlugin handleMethodResultHandler:manager:notificationManager:] + 1916
6  photo_manager                  0x12760 __19-[PMPlugin onAuth:]_block_invoke + 40
7  libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
8  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
9  libdispatch.dylib              0x6f6c _dispatch_queue_override_invoke + 928
10 libdispatch.dylib              0x15894 _dispatch_root_queue_drain + 392
11 libdispatch.dylib              0x1609c _dispatch_worker_thread2 + 156
12 libsystem_pthread.dylib        0x48f8 _pthread_wqthread + 228
13 libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x10c4 start_wqthread + 8159613122

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x72ac __semwait_signal + 8
1  libsystem_c.dylib              0x165f0 nanosleep + 220
2  libsystem_c.dylib              0x7372c sleep + 52
3  KSCrash                        0x7de8 monitorCachedData + 748
4  libsystem_pthread.dylib        0x606c _pthread_start + 136
5  libsystem_pthread.dylib        0x10d8 thread_start + 8

KSCrash Exception Handler (Secondary)
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  KSCrash                        0xa8d8 handleExceptions + 164
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x708c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  CFNetwork                      0xfdc7c _CFHostIsDomainTopLevel + 108176
8  Foundation                     0xde428 __NSThread__start__ + 732
9  libsystem_pthread.dylib        0x606c _pthread_start + 136
10 libsystem_pthread.dylib        0x10d8 thread_start + 8

com.apple.CoreMotion.MotionThread
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  CoreFoundation                 0xc0f04 CFRunLoopRun + 64
8  CoreMotion                     0xfe3c (Missing UUID 5d6e7429116638b3807bdfad246f9132)
9  libsystem_pthread.dylib        0x606c _pthread_start + 136
10 libsystem_pthread.dylib        0x10d8 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x10c4 start_wqthread + 8159613122

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x10c4 start_wqthread + 8159613122

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x10c4 start_wqthread + 8159613122

XPCConnectionManager:0x3002dbcf0
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  libdispatch.dylib              0x1eb18 _dispatch_mach_send_and_wait_for_reply + 544
5  libdispatch.dylib              0x1eeb8 dispatch_mach_send_with_result_and_wait_for_reply + 60
6  libxpc.dylib                   0x10ac8 xpc_connection_send_message_with_reply_sync + 264
7  Foundation                     0x666a8 __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 16
8  Foundation                     0x62d14 -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2160
9  Foundation                     0xdafd4 -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:] + 128
10 Foundation                     0xdad90 _NSXPCDistantObjectSimpleMessageSend2 + 68
11 CoreData                       0xbfe50 -[NSXPCStoreConnection sendMessage:store:error:] + 384
12 CoreData                       0xbfc88 -[NSXPCStoreConnection sendMessageWithContext:] + 48
13 CoreData                       0xbf858 __54-[NSXPCStoreConnectionManager sendMessageWithContext:]_block_invoke + 96
14 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
15 libdispatch.dylib              0x138f8 _dispatch_sync_invoke_and_complete + 56
16 CoreData                       0xc0b98 -[NSXPCStoreConnectionManager sendMessageWithContext:] + 112
17 CoreData                       0xc01c4 -[NSXPCStore sendMessage:fromContext:interrupts:error:] + 348
18 CoreData                       0xc0e34 -[NSXPCStore executeFetchRequest:withContext:error:] + 652
19 CoreData                       0x74c4c -[NSXPCStore executeRequest:withContext:error:] + 212
20 CoreData                       0x71d50 __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke.541 + 4156
21 CoreData                       0x11700 -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] + 264
22 CoreData                       0x10b9c -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 1048
23 CoreData                       0x30c0c -[NSManagedObjectContext executeFetchRequest:error:] + 696
24 PhotoLibraryServices           0x435c -[PLManagedObjectContext _pl_executeFetchRequest:error:] + 264
25 PhotoLibraryServices           0x40a4 -[PLManagedObjectContext executeFetchRequest:error:] + 88
26 Photos                         0x13834 __55+[PHFetchResult fetchObjectIDs:inManagedObjectContext:]_block_invoke + 176
27 PhotoLibraryServices           0x84b0 __53-[PLManagedObjectContext _directPerformBlockAndWait:]_block_invoke + 48
28 CoreData                       0x26fe8 developerSubmittedBlockToNSManagedObjectContextPerform + 156
29 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
30 libdispatch.dylib              0x132c4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
31 CoreData                       0x9d15c -[NSManagedObjectContext performBlockAndWait:] + 264
32 PhotoLibraryServices           0xc1f4 -[PLManagedObjectContext _directPerformBlockAndWait:] + 144
33 PhotoLibraryServices           0xc148 -[PLManagedObjectContext performBlockAndWait:] + 196
34 Photos                         0x8fcc +[PHFetchResult fetchObjectIDs:inManagedObjectContext:] + 588
35 Photos                         0x7c68 __57-[PHFetchResult fetchedObjectsUsingManagedObjectContext:]_block_invoke + 148
36 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
37 libdispatch.dylib              0x132c4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
38 Photos                         0xb000 -[PHFetchResult fetchedObjectsUsingManagedObjectContext:] + 128
39 Photos                         0x8b30 -[PHFetchResult initWithQuery:oids:registerIfNeeded:usingManagedObjectContext:] + 752
40 Photos                         0x149cc -[PHFetchResult initWithQuery:] + 80
41 Photos                         0x14960 __23-[PHQuery executeQuery]_block_invoke + 40
42 Photos                         0x190934 PHQueryForAssetInAlbumKind_UserLibraryAlbum_block_invoke_53 + 204
43 Photos                         0x1486c -[PHQuery executeQuery] + 124
44 Photos                         0x146a8 +[PHAsset fetchAssetsInAssetCollection:options:] + 432
45 photo_manager                  0x510c -[PHAssetCollection(PM_COMMON) obtainAssetCount:] + 32
46 photo_manager                  0x8d58 -[PMManager getAssetCountFromPath:type:filterOption:] + 216
47 photo_manager                  0x12abc -[PMPlugin handleMethodResultHandler:manager:notificationManager:] + 772
48 photo_manager                  0x12760 __19-[PMPlugin onAuth:]_block_invoke + 40
49 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
50 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
51 libdispatch.dylib              0x6f6c _dispatch_queue_override_invoke + 928
52 libdispatch.dylib              0x15894 _dispatch_root_queue_drain + 392
53 libdispatch.dylib              0x1609c _dispatch_worker_thread2 + 156
54 libsystem_pthread.dylib        0x48f8 _pthread_wqthread + 228
55 libsystem_pthread.dylib        0x10cc start_wqthread + 8

com.apple.photos.imgmgr.ctxt.bgchooser
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  libdispatch.dylib              0x1eb18 _dispatch_mach_send_and_wait_for_reply + 544
5  libdispatch.dylib              0x1eeb8 dispatch_mach_send_with_result_and_wait_for_reply + 60
6  libxpc.dylib                   0x10ac8 xpc_connection_send_message_with_reply_sync + 264
7  Foundation                     0x666a8 __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 16
8  Foundation                     0x62d14 -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2160
9  CoreFoundation                 0x20d88 ___forwarding___ + 1016
10 CoreFoundation                 0x208d0 _CF_forwarding_prep_0 + 96
11 CoreServices                   0x2037c +[UTTypeRecord _typeRecordWithIdentifier:allowUndeclared:] + 412
12 UniformTypeIdentifiers         0x3258 _UTTypeGetForIdentifier(NSString*, bool) + 92
13 PhotoLibraryServices           0x5e88 ___populateExtensionFileTypeMappings_block_invoke + 1684
14 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
15 libdispatch.dylib              0x5654 _dispatch_once_callout + 32
16 PhotoLibraryServices           0x1195c _fileExtensionFromFileType + 200
17 PhotoLibraryServices           0x116dc +[PLPrimaryResourceDataStoreUniformFileKey _fileURLFromKeyStruct:assetID:] + 368
18 PhotoLibraryServices           0x1154c +[PLPrimaryResourceDataStoreUniformFileKey fileURLForPayloadKeyData:assetID:] + 28
19 PhotoLibraryServices           0x11500 -[PLTaggedPointerDataStoreKey fileURLForAssetID:] + 176
20 Photos                         0x207e4 PHDecodeImageFromStoreForRequest + 200
21 Photos                         0x1fdbc __30-[PHImageRequest startRequest]_block_invoke.61 + 1068
22 Photos                         0xf6e4 __55-[PHImageResourceChooser presentNextQualifyingResource]_block_invoke + 1060
23 Photos                         0xf230 ___presentResourcesFromHintsUntilStop_block_invoke + 460
24 PhotoLibraryServices           0x4d94 +[PLManagedAsset(RM) enumerateImageRequestHintData:assetWidth:assetHeight:libraryID:startingOffset:assetID:block:] + 776
25 Photos                         0x2104c _presentResourcesFromHintsUntilStop + 344
26 Photos                         0x20cf8 PHChooserListContinueEnumerating + 64
27 Photos                         0x20c10 -[PHImageResourceChooser presentNextQualifyingResource] + 404
28 Photos                         0x1f454 -[PHImageRequest startRequest] + 2248
29 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
30 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
31 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
32 libdispatch.dylib              0xbf64 _dispatch_lane_invoke + 432
33 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
34 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
35 libsystem_pthread.dylib        0x4934 _pthread_wqthread + 288
36 libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1450 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x10c4 start_wqthread + 8159613122
@Another1dd Another1dd changed the title [Bug report] [Bug report] iOS fetch thumb crash Dec 3, 2024
@fluttercandies-dev
Copy link

AI Summary: The user is reporting a crash on iOS 17+ when fetching thumbnails using photo_manager version 3.6.3. They are unable to reliably reproduce the issue but have observed numerous crashes in Crashlytics.

@Another1dd Another1dd changed the title [Bug report] iOS fetch thumb crash [Bug report] iOS Thumbnail Fetch Crash Dec 3, 2024
@AlexV525
Copy link
Member

AlexV525 commented Dec 3, 2024

The failing thread:

Crashed: com.apple.root.default-qos
0  libobjc.A.dylib                0x3c20 objc_msgSend + 32
1  Photos                         0x25f6c -[PHImageManager requestNewCGImageForAsset:targetSize:contentMode:options:resultHandler:] + 344
2  Photos                         0x25de4 -[PHImageManager requestImageForAsset:targetSize:contentMode:options:resultHandler:] + 172
3  photo_manager                  0xa244 -[PMManager fetchThumb:option:resultHandler:progressHandler:] + 452
4  photo_manager                  0xa01c -[PMManager getThumbWithId:option:resultHandler:progressHandler:] + 160
5  photo_manager                  0x12f34 -[PMPlugin handleMethodResultHandler:manager:notificationManager:] + 1916
6  photo_manager                  0x12760 __19-[PMPlugin onAuth:]_block_invoke + 40
7  libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
8  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
9  libdispatch.dylib              0x6f6c _dispatch_queue_override_invoke + 928
10 libdispatch.dylib              0x15894 _dispatch_root_queue_drain + 392
11 libdispatch.dylib              0x1609c _dispatch_worker_thread2 + 156
12 libsystem_pthread.dylib        0x48f8 _pthread_wqthread + 228
13 libsystem_pthread.dylib        0x10cc start_wqthread + 8

@CaiJingLong
Copy link
Member

Try to rollback to 3.6.2?

@Another1dd
Copy link
Author

Try to rollback to 3.6.2?

We have rolled back to version 3.2.3, which was stable in previous app release

@CaiJingLong
Copy link
Member

A QOS priority was added in 3.6.3. I actually want to know if 3.6.2 has the same problem.

@Another1dd
Copy link
Author

A QOS priority was added in 3.6.3. I actually want to know if 3.6.2 has the same problem.

Yes same, we tried it earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants