Android App Crashes on First Launch after Updating to Realm v12.15.0 (for 16KB Page Support)
T-BugSDK-Use:LocalFrequency:AlwaysRepro:AlwaysEncryption:On
### 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.
<img width="1616" height="834" alt="Image" src="https://github.com/user-attachments/assets/a2da9357-dd70-4b05-a3d8-176b1d663a5a" />
### Stacktrace & log output
```shell
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) ... librealm.so
```
### Can 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_
关闭于 2025-12-16 3 条评论