-
Notifications
You must be signed in to change notification settings - Fork 573
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
App crash on iOS using Realm v12.0.0-alpha.2 #5829
Comments
@AlmiranteTim Thank you for reporting. For v12.0.0-alpha.2 you need to use RN v0.71. The error message says Hermes and still you have Hermes disabled. Can you confirm? |
@kneth Pretty sure this is a bug on iOS. |
@AlmiranteTim Can you provide steps to reproduce the error? |
Now I'm trying to run the build on the iOS simulator, it runs successfully. But then an error appears in the project console, and a white screen appears in the application. pod version 1.11.2 |
@AlmiranteTim |
im also seeing this error. I am using "@realm/react": "^0.4.3" and maybe that version isn't compatible with the alpha version of realm. |
I can duplicate on android so its on iOS |
after i installed "react-native": "0.71.8", i made new project "react": "^18.2.0", |
Having the exact same problem as described above. No matter what, I am unable to import the "Realm" library into my Expo-managed React Native project. Been looking for possible solutions for a few weeks no and still nothing. |
@johnludena were you able to figure it out? |
@johnludena Expo Go is not compatible with 3rd party libraries. You have to install the Feel free to check out our expo template to see it in action. |
@AlmiranteTim For the main issue, I want to apologize as the error message being thrown from this issue is not clear. What actually is happening is that React Native is not able to find the Realm binary. This usually occurs when using an older version of RN or forgetting to update your installed pods using I currently have tested NOTE: I added the @kriit24 We have also solved the |
@takameyer I have react-native-0.71.7 and realm as 11.10.1. I have always been developing using a custom development client. It shows this error. |
@singhayush1403 I just tried our template which is using RN 0.71.8 and realm 11.10.1 and it build and ran without any issues. What version of Node are you using? It's possible Node 20 could cause some issues |
@takameyer I am also getting the similar crash using the latest RC version 12.0.0.rc.1 while writing to the DB Exception Type: EXC_CRASH (SIGABRT) Last Exception Backtrace: Kernel Triage: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread Thread 1:: com.apple.rosetta.exceptionserver Thread 2:: com.apple.uikit.eventfetch-thread Thread 3:: KSCrash Exception Handler (Secondary) Thread 4:: KSCrash Exception Handler (Primary) Thread 5:: com.bugsnag.app-hang-detector Thread 6:: com.facebook.react.JavaScript Thread 7:: com.apple.CFStream.LegacyThread Thread 8:: com.apple.NSURLConnectionLoader Thread 9:: com.facebook.SocketRocket.NetworkThread Thread 10:: com.apple.CFSocket.private Thread 11:: com.apple.CoreMotion.MotionThread Thread 12:: JavaScriptCore libpas scavenger Thread 13:: Realm notification listener Thread 14:: Realm notification listener Thread 15: Thread 16:: Realm notification listener Thread 17:: JIT Worklist Helper Thread Thread 18:: JIT Worklist Helper Thread Thread 19:: JIT Worklist Helper Thread Thread 20:: Heap Helper Thread Thread 21:: Heap Helper Thread Thread 22:: Heap Helper Thread Thread 23:: Heap Helper Thread Thread 24:: Heap Helper Thread Thread 25:: Heap Helper Thread Thread 26:: Heap Helper Thread Thread 27:: JSC Heap Collector Thread Thread 28: Thread 29:: com.google.Maps.LabelingBehavior Thread 30: Thread 31: Thread 32: Thread 33: Thread 0 crashed with X86 Thread State (64-bit): |
@ravindraguptacapgemini Which React Native version do you use? See also #5829 (comment) |
Hey all, we just released a new Release Candidate ( |
Hey @takameyer, I have the same issue on top, and i install the realm@next, but my app doesnt loading with this error: Unable to resolve module bson from node_module realm/dist/bundle.react-native.js: bson could not be found within the project or in these directories. I'm beginner in mongodb, |
@kouamegerard Hmm...thought we fixed that. It should go away when you do |
okay @takameyer I try again |
@takameyer, I install realm@next now I have this version "realm": "^12.0.0-rc.3", I use react-native expo-cli |
@kouamegerard Are you trying to use |
@takameyer, yeah i run on expo dev client |
@kouamegerard Please open a new issue and provide as much info as you can about the environment you are running (expo version, react-native version, etc). Also if you can provide a sample repo that reproduces this, that would be helpful |
Okay, thank you |
How frequently does the bug occur?
Always
Description
Hello, how to make the realm work on react native version 0.69.0 or already on version 0.71.8? you suggested version "realm": "12.0.0-alpha.2" but it doesn't work: TypeError: Cannot read property 'Helpers_get_table' of undefined, js engine: hermes
Even before that error I had to add "bson": "5.2.0"
hermes: disabled
I'm not using Expo
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
12.0.0-alpha.2
What services are you using?
Are you using encryption?
No
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: