-
Notifications
You must be signed in to change notification settings - Fork 17
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
React Native Tor on android freezes #30
Comments
Thanks for reporting this will look. |
Copied from BlueWallet/BlueWallet#3079 (comment) IssueReact native Tor hangs on React Native's default JS engine. For some reason RN's rendering thread just silently fails with no errors in logs etc. Note that the main thread still works fine and that's why Scroll views still work even after this issues happens (Scroll views run on the main thread). In true trolling bug fashion when you attempt to debug the issue using Chrome the bug will never happen, which at first seemed like a massive troll but eventually you realize that chrome runs v8 XD Current Workaround:Install react native v8 https://github.com/Kudo/react-native-v8 Desired SolutionWould appreciate anyone's input on how to fix this on React Native's default JS engine. |
This works great! thanks a lot for your help! |
Changing module architecture to JSI could be a possible solution (avoid bridge): |
there is even a fresh guide https://blog.notesnook.com/getting-started-react-native-jsi/ |
@Overtorment yes it is. Will explore it this weekend. |
Any updates on this? It's quite a blocker for using BlueWallet with a Tor-only node. And nodes that only available through Tor are quite common because not many ISPs provide IPv6, and WAN IPv4 are scarce, many individual customers are behind CGNAT and have no other choice. |
WIP: it's quite a bit of work to get it refactored and working as JSI c++ module . |
great news? is that a commit we can actually start testing in BW? cc @marcosrdz |
@Overtorment no still needs cleanup and update will ping you when android is testable. (1-2 days) |
BlueWallet 6.2.17 freezes/crashes on Android 11 when using custom electrum server (umbrel) over internal tor. Workaround:
|
Enabling hermes will help you fix this issue. |
ios seems to run fine (i use ios day-to-day, and using tor electrum causes no issues).
this doesn't look like native bridge clog: I did enable bridge monitor, and I didn't notice anything unusual there - when the freeze happens there is no activity on the bridge, and freeze still happens.
I still think this is some kind of deadlock on android native code inside tor module.
none of our native modules causes a freeze, so this doesn't look like our misuse or smth.
to reproduce it would be best to checkout bluewallet's master https://github.com/BlueWallet/BlueWallet/
BlueWallet/BlueWallet#3079
The text was updated successfully, but these errors were encountered: