Closed
Description
[REQUIRED] Step 1: Describe your environment
- Xcode version: 12.2
- Firebase SDK version: 7.1.0
- Installation method: CocoaPods
- Firebase Component: Storage
[REQUIRED] Step 2: Describe the problem
Upon completion of downloadTasks, the APP crash sometimes.
The same crash bug was discussed before in this issue. But it only fixed for UploadTask, why not for DownloadTask and others?
Crash log:
Crashed: com.apple.main-thread
0 FirebaseStorage 0x1022ae7a8 __42-[FIRStorageDownloadTask enqueueWithData:]_block_invoke.93 + 144 (FIRStorageDownloadTask.m:144)
1 GTMSessionFetcher 0x1023fad14 __71-[GTMSessionFetcher invokeFetchCallbacksOnCallbackQueueWithData:error:]_block_invoke + 2512 (GTMSessionFetcher.m:2512)
2 libdispatch.dylib 0x18649724c _dispatch_call_block_and_release + 32
3 libdispatch.dylib 0x186498db0 _dispatch_client_callout + 20
4 libdispatch.dylib 0x1864a6800 _dispatch_main_queue_callback_4CF + 920
5 CoreFoundation 0x18682011c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
6 CoreFoundation 0x18681a120 __CFRunLoopRun + 2508
7 CoreFoundation 0x18681921c CFRunLoopRunSpecific + 600
8 GraphicsServices 0x19d898784 GSEventRunModal + 164
9 UIKitCore 0x189252200 -[UIApplication _run] + 1072
10 UIKitCore 0x189257a74 UIApplicationMain + 168
11 ShotCut 0x100f7e870 main + 25 (ATTemplateEditVC.swift:25)
12 libdyld.dylib 0x1864d96c0 start + 4
Steps to reproduce:
Refer to this.