Skip to content
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

Expo app crashes on reload #6902

Open
RobertPetricevic opened this issue Oct 5, 2024 · 4 comments
Open

Expo app crashes on reload #6902

RobertPetricevic opened this issue Oct 5, 2024 · 4 comments

Comments

@RobertPetricevic
Copy link

How frequently does the bug occur?

Always

Description

I've created a demo app. Initialized with expo-create-stack and only added realm and @realm/react libraries.
I expect it to app behave normally after the refresh in development or production. Instead, it crashes on app reload.

Stacktrace & log output

null pointer dereference: SIGSEGV  0x0000000000000028
#00 pc 0x532424 librealm.so (BuildId: 3062b2018d1411aaf7adf1e1b1bd215288355875)
#01 pc 0x4ed478 librealm.so (BuildId: 3062b2018d1411aaf7adf1e1b1bd215288355875)
#02 pc 0x4fd204 librealm.so (BuildId: 3062b2018d1411aaf7adf1e1b1bd215288355875)
#03 pc 0x27410 libhermes_executor.so (BuildId: b58ea9fa364ca130)
#04 pc 0x95560 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
#05 pc 0x951c0 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
#06 pc 0x9bc50 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
#07 pc 0xabf0c libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
#08 pc 0xad8c0 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
#09 pc 0xacf78 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
#10 pc 0x9bd60 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
#11 pc 0x8de54 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
#12 pc 0xb97a0 libreactnativejni.so (BuildId: 18aa28824c388ff9)
#13 pc 0xb4d48 libreactnativejni.so (BuildId: 18aa28824c388ff9)
#14 pc 0xb542c libreactnativejni.so (BuildId: 18aa28824c388ff9)
#15 pc 0xc1140 libreactnativejni.so (BuildId: 18aa28824c388ff9)
#16 pc 0xcb0a0 libreactnativejni.so (BuildId: 18aa28824c388ff9)
#17 pc 0x92e74 libreactnativejni.so (BuildId: 18aa28824c388ff9)
#18 pc 0x19804 libfbjni.so (BuildId: a22242831a7971267de570e06121acb588ce64cd)
#19 pc 0x19744 libfbjni.so (BuildId: a22242831a7971267de570e06121acb588ce64cd)

Can you reproduce the bug?

Always

Reproduction Steps

In development, the app crashes on every app refresh or reload.

In production, I have the next flow: if the app is opened, and the user changes (in my case) notification permission and gets back to running the app, on most Android devices, it produces an app reload. Once reload happens, the app crashes.

In this demo app, I only added a button that reload the app using reloadAsync function from expo.
Demo app: https://github.com/RobertPetricevic/rn-realm

Version

"expo": "^51.0.36", "realm": "^12.13.1", "@realm/react": "^0.11.0"

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Android, v14

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

Copy link

sync-by-unito bot commented Oct 5, 2024

➤ PM Bot commented:

Jira ticket: RJS-2907

@RobertPetricevic
Copy link
Author

any news?

@augustosnk12
Copy link

@RobertPetricevic did you find any solution? The same is happening to me 😭

@RobertPetricevic
Copy link
Author

@augustosnk12 nope, still waiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants