-
Notifications
You must be signed in to change notification settings - Fork 564
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
JS hangs inside write transaction with certain nesting of try / catch? #4403
Comments
We are definitely also experience that issue. But you could try to use 10.13.0 instead of 10.20.0-beta.2 to validate the hypothesis. |
Unfortunately, I don't think I can use 10.13.0 as I was experiencing this issue #3837 and upgrading fixed it for me. |
Hey @mfbx9da4, thanks for the report. I don't think this is related to the JSI hanging issues – as I mentioned in the issue, we've found that calling React Native's I tried to reproduce this issue based on the information you provided, but couldn't see it hanging. Could you please take a look at my reproduction repo at https://github.com/tomduncalf/4403-hang-in-write to see what might be different from your implementation? When I run
then it exits, as you'd expect. If the implementation looks to be equivalent to yours then I can try a React Native version to see if it's an exclusively RN issue. Equally if you are able to provide a minimal reproduction repo, that would be helpful! |
Commenting here to get some notifications. I cannot say precisely I've seen the issue, but I've definitely seen JSI hangs both while developing and from production freeze logs. I wasn't able to pinpoint the exact issue but perhaps this is related! I will add more info if I manage to reproduce it consistently. |
Thanks @cristianoccazinsp – I guess it's #3571 which you are referring to (where the UI freezes), which I think is a different issue (though I could be wrong). We're hoping to have a fix for that one soon, we know what the fix is and it just needs a bit of finessing so I will update that ticket when we have released it! |
Sounds like a different issue. I'm sorry I haven't had the time to replicate, it's on my backlog! |
@mfbx9da4 Are you able to replicate this? |
No, I haven't had the time to isolate this and @tomduncalf 's code also works fine on React native so feel free to close. I doubt I will dedicate the time to isolate the issue near term. |
Thanks @mfbx9da4. If anyone else is encountering this issue and is able to supply reproduction code (or can reproduce the issue with the sample repo linked in this comment), please feel free to reopen this issue with more details and a link to the reproduction. |
How frequently does the bug occur?
All the time
Description
I am experiencing a similar issue to #2434.
Where I do something like
by refactoring to
Realm seems to have some issues with async functions see #4375 . Could this be related to JSI hanging issues? facebook/react-native#33006
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
I appreciate the sample code is not a fully reproducible example so it's okay if this issue gets closed. However, I imagine the core developers might have seen an issue like this before and might be able to provide workarounds.
Version
10.20.0-beta.2
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
ios
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: