-
Notifications
You must be signed in to change notification settings - Fork 222
Description
Describe the bug
Thread 10 Crashed:
0 libsystem_kernel.dylib 0x1ec60d1d4 __pthread_kill + 8
1 libsystem_pthread.dylib 0x22477aef8 pthread_kill + 268
2 libsystem_c.dylib 0x1a3fffad8 abort + 128
3 libc++abi.dylib 0x2245895b8 abort_message + 132
4 libc++abi.dylib 0x224577bac demangling_terminate_handler() + 348
5 libobjc.A.dylib 0x19955ee14 _objc_terminate() + 156
6 libc++abi.dylib 0x22458887c std::__terminate(void ()()) + 16
7 libc++abi.dylib 0x22458bdfc __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception) + 88
8 libc++abi.dylib 0x22458bda4 __cxa_throw + 92
9 libobjc.A.dylib 0x19954344c objc_exception_throw + 448
10 CFNetwork 0x19d7d5254 -[__NSURLBackgroundSession performBlockOnQueueAndRethrowExceptions:] + 224
11 CFNetwork 0x19d7d5430 -[__NSURLBackgroundSession _uploadTaskWithTaskForClass:] + 192
12 CloudBackup 0x100b75edc AWSS3StorageService.startUpload(preSignedURL:fileURL:contentType:transferTask:startTransfer:) + 1488
13 CloudBackup 0x100b74ff8 closure #2 in AWSS3StorageService.upload(serviceKey:uploadSource:contentType:metadata:accelerate:onEvent:) + 180
14 CloudBackup 0x100b757e1 partial apply for closure #2 in AWSS3StorageService.upload(serviceKey:uploadSource:contentType:metadata:accelerate:onEvent:) + 1
15 libswift_Concurrency.dylib 0x1a7953e39 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1
Steps To Reproduce
Steps to reproduce the behavior:
1. in our application, transfer all photos to s3 storage (about 2000~6000)
2, it will crash in this process sometimes (2/5)
Expected behavior
1, if need extra permission or error happen, handle it and callback error id, but not crash
Amplify Framework Version
2.26.1
Amplify Categories
Storage
Dependency manager
Swift PM
Swift version
5.0
CLI version
12.x
Xcode version
16
Relevant log output
Thread 10 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000022458df3b x5: 0x000000016fbf5850 x6: 0x000000000000006e x7: 0x0000000000000000
x8: 0x6264785967e03b72 x9: 0x62647858085f4b72 x10: 0x0000000000000051 x11: 0x000000000000000b
x12: 0x000000000000000b x13: 0x000000019c69abbc x14: 0x00000000001ff800 x15: 0x00000000000007fb
x16: 0x0000000000000148 x17: 0x000000016fbf7000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000000002085f x21: 0x000000016fbf70e0 x22: 0x00000001fdf7c000 x23: 0x0000000000000000
x24: 0x000000000003661a x25: 0x000000016fbf70e0 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x000000016fbf70e0 fp: 0x000000016fbf57c0 lr: 0x000000022477aef8
sp: 0x000000016fbf57a0 pc: 0x00000001ec60d1d4 cpsr: 0x40001000
far: 0x0000000000000000 esr: 0x56000080 Address size fault
Is this a regression?
Yes
Regression additional context
2.17.1 SDK did not happen this issue.
Platforms
iOS
OS Version
iOS18
Device
iPhone12/14 etc
Specific to simulators
No response
Additional context
No response