-
Notifications
You must be signed in to change notification settings - Fork 611
Description
How frequently does the bug occur?
Always
Description
I am updating my React Native application's Realm dependency from v12.14.2 to v12.15.0 to comply with the new Android 16KB page size requirement (Android 15).
After this update, the application consistently crashes only on the very first launch after installation.
- First Launch: Immediate crash or hang.
- Second Launch: The app opens successfully and functions normally.
- Intermittent Issues: Occasionally, I encounter "Realm is closed" or "Realm required a path" errors during operation, which did not happen in v12.14.2.
It appears to be a race condition related to the loading of the new 16KB-aligned native libraries or initialization timing in v12.15.0.
Stacktrace & log output
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) ... librealm.soCan you reproduce the bug?
Always
Reproduction Steps
Update realm from 12.14.2 to 12.15.0 in package.json.
Perform a clean build (cd android && ./gradlew clean).
Install the release APK on an Android device (or Emulator with 16KB support enabled).
Open the app for the first time.
Observe the crash.
Re-open the app.
Observe that it runs correctly.
Version
12.15.0
What services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
Android 15 (API 35) / Android 14
Build environment
React Native 0.79.6 + Expo 53
Cocoapods version
No response