question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Occasional crashes on app startup

See original GitHub issue

How frequently does the bug occur?

Sometimes

Description

Previously, with expo sdk 46 and realm 11.* app crashed on every app open in release build (which made sense, since realm 11 expects React Native 0.70). After upgrading expo SDK to latest beta, the app crashes on start in around 30% of cases in release mode with weird exception, I will attach the stack trace below.

I didn’t have any luck reproducing it in nightly build or in the local release build with expo dev-client. The only reproducible case for now is building production app via EAS.

Environment:

"expo": "~47.0.0-beta.8",
"react-native": "0.70.4",
"realm": "11.1.0",
"@realm/react": "0.4.0",

What I can see in the logs (second line is caused by the first, I assume):

Unhandled JS Exception: Error: Missing Realm constructor. Did you run "pod install"? Please see https://docs.mongodb.com/realm/sdk/react-native/install/ for troubleshooting, js engine: hermes

Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
        A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes

For additional context (I’ve seen those as reasons for crashes in other tickets):

  • I’m not using firebase libraries in my app.
  • Don’t have useFrameworks set.

Stacktrace & log output

No response

Can you reproduce the bug?

Yes, sometimes

Reproduction Steps

No response

Version

11.1.0

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

No response

Cocoapods version

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MusabBasheercommented, Dec 5, 2022

any update on this ??

0reactions
ammarlakhocommented, Dec 7, 2022

Facing the same issue in RN 0.70.6, realm 11.3.0. Any update?

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes immediately on start u… | Apple Developer Forums
The vast majority of crashes that only show up in TestFlight (and App Review and with end users) are caused by differences between...
Read more >
Why do my apps keep crashing on Android, How to fix it
How to fix apps that keep crashing on Android · 1. Force stop the app · 2. Restart the device · 4. Reinstall...
Read more >
What to do when your apps keep crashing - Popular Science
Don't put up with misbehaving software. If one of your apps keeps crashing, follow this advice to make the troublesome program run smoothly....
Read more >
Programs Keep Crashing on Windows 10? Try These 4 ...
Windows 10 apps are crashing due to an update that was installed incorrectly, an outdated OS, or corrupted system files.
Read more >
How to Fix Crashing Apps on iPhone & iPad | OSXDaily
2: Quit and Re-Launch the App ... Sometimes the simplest solution to a resolve a crashing application in iOS is to quit the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found