Skip to content

[iOS] Crashed: com.apple.main-thread #276

@r0b0t3d

Description

@r0b0t3d

I got this crash today via Crashlytics. It seems we must to handle the code in didPickDocumentsAtURLs on main thread.

Crashed: com.apple.main-thread
0  Stuneo                         0x1050e13b0 -[RNDocumentPicker documentPicker:didPickDocumentsAtURLs:] + 167 (RNDocumentPicker.m:167)
1  UIKitCore                      0x1a03f3384 __74-[UIDocumentPickerViewController _callDelegateWithSelectedURLsAndDismiss:]_block_invoke + 128
2  UIKitCore                      0x1a037124c -[UIViewController dismissViewControllerWithTransition:completion:] + 1236
3  UIKitCore                      0x1a0389128 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 264
4  UIKitCore                      0x1a0385874 -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 132
5  UIKitCore                      0x1a03855b8 -[_UIViewControllerTransitionContext completeTransition:] + 116
6  UIKitCore                      0x1a0dcbfe0 -[UITransitionView notifyDidCompleteTransition:] + 240
7  UIKitCore                      0x1a0dcbc8c -[UITransitionView _didCompleteTransition:] + 1132
8  UIKitCore                      0x1a0e01d90 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 588
9  UIKitCore                      0x1a0dd5c70 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 244
10 UIKitCore                      0x1a0dd6178 -[UIViewAnimationState animationDidStop:finished:] + 240
11 UIKitCore                      0x1a0dd62c8 -[UIViewAnimationState animationDidStop:finished:] + 576
12 QuartzCore                     0x1a3387dac CA::Layer::run_animation_callbacks(void*) + 276
13 libdispatch.dylib              0x19c5bf184 _dispatch_client_callout + 16
14 libdispatch.dylib              0x19c571190 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1044
15 CoreFoundation                 0x19c8705e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
16 CoreFoundation                 0x19c86b5d8 __CFRunLoopRun + 2004
17 CoreFoundation                 0x19c86aadc CFRunLoopRunSpecific + 464
18 GraphicsServices               0x1a680b328 GSEventRunModal + 104
19 UIKitCore                      0x1a097863c UIApplicationMain + 1936
20 Stuneo                         0x104a48864 main + 14 (main.m:14)
21 libdyld.dylib                  0x19c6f4360 start + 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions