-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
[iOS] Crashed: com.apple.main-thread #276
Comments
hello and thanks for reporting; from what do you infer that the method must be called on the main thread? Thanks. |
As you can see in the crash log, it issued at |
@r0b0t3d yes, I see that, but I'm just asking why exactly running on the main thread is the right fix for the issue. I'm not an experienced ios "stacktrace reader" :) Thanks. |
@vonovak I did double check the crash on crashlytics
that point to this line in
Basically, this crash indicate that we are accessing an deallocated object. Any chances that |
i am having the same issue. Any solutions? |
Same here, any solution here? |
This crash happens if you tap on the same file multiple times in rapid succession. The resolve object is null, probably because |
@phatmann could you reproduce the issue? I tried multiple times on iOS 12.4 (simulator) and 13.5 (simulator + real device) but can not reproduce. |
It is easy to reproduce for me. Just tap several times quickly. Using iOS 13.5 in simulator.
Tony
… On Jun 14, 2020, at 7:10 AM, Tuan Luong ***@***.***> wrote:
@phatmann could you reproduce the issue? I tried multiple times on iOS 12.4 (simulator) and 13.5 (simulator + real device) but can not reproduce.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@phatmann would you please share the output of your |
I'm having the same problem when fast tapping the file multiple times (iPhone X, ios 13.3, real device). Any quick fix/patch? |
@hungps-2150 My quick thought is that It is easy for you because you can reproduce the issue. Could you please help to confirm that how many time It is something like
|
@r0b0t3d I tried your code and |
@scitbiz thanks for quick update. Finally we found the root cause :D. |
@r0b0t3d no but I'm currently using react-native-navigation and it pops back to the previous screen after selecting. If I'm not using your code (checking for |
@scitbiz It feel like the above code works as expected (no crash). |
@r0b0t3d yes, exactly! |
hi, thanks for the comments, I suspected this would be the case but found it weird that I could not reproduce it. I'll try to fix this soon by extracting the promise logic into separate class. |
Hi, I checked this thread recently and updated react-native-document-picker to version: 3.5.4, (IOS 13.5 in simulator), unfortunately still getting this error on tapping the same file multiple times in rapid succession. |
I looked at the source code for |
Same here, when show document picker I change to google drive and touch many time on a picture -> delay closing -> crash app. Here my log:
|
I also were facing this issue and lost my day on this issue. |
I got this crash today via Crashlytics. It seems we must to handle the code in
didPickDocumentsAtURLs
on main thread.The text was updated successfully, but these errors were encountered: