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

Crash occurs on Android after codepush.restartApp OTA install/restart #6903

Closed
jayshah123 opened this issue Oct 7, 2024 · 3 comments
Closed

Comments

@jayshah123
Copy link

jayshah123 commented Oct 7, 2024

How frequently does the bug occur?

Always

Description

On a release version of the app, When we do a codepush install while the app is already running,

We upgraded from "@realm/[email protected]" to "@realm/[email protected]".
And upgraded from "[email protected]:" to "[email protected]".

we see following crash:

No implementation found for void io.realm.react.RealmReactModule.invalidateCaches() (tried Java_io_realm_react_RealmReactModule_invalidateCaches and Java_io_realm_react_RealmReactModule_invalidateCaches__) - is the library loaded, e.g. System.loadLibrary?

Stacktrace & log output

10-07 10:29:05.928 28635 28705 E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for void io.realm.react.RealmReactModule.invalidateCaches() (tried Java_io_realm_react_RealmReactModule_invalidateCaches and Java_io_realm_react_RealmReactModule_invalidateCaches__) - is the library loaded, e.g. System.loadLibrary?
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at io.realm.react.RealmReactModule.invalidateCaches(Native Method)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at io.realm.react.RealmReactModule.invalidate(RealmReactModule.java:58)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at com.facebook.react.bridge.ModuleHolder.destroy(ModuleHolder.java:109)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at com.facebook.react.bridge.NativeModuleRegistry.notifyJSInstanceDestroy(NativeModuleRegistry.java:86)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at com.facebook.react.bridge.CatalystInstanceImpl$1.run(CatalystInstanceImpl.java:353)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:958)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:205)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:294)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:234)
10-07 10:29:05.928 28635 28705 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:1012)

Can you reproduce the bug?

Always

Reproduction Steps

  1. Have realm initialized.
  2. Get a codepush OTA
  3. Install codepush app update via CodePush.restartApp()
  4. We see a crash.

Version

"@realm/react": "0.10.1", "react": "18.2.0", "react-native": "0.73.9", "realm": "12.13.1",

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Android, all versions

Build environment

"@realm/react": "0.10.1",
"react": "18.2.0",
"react-native": "0.73.9",
"realm": "12.13.1",

Cocoapods version

1.14.3

Copy link

sync-by-unito bot commented Oct 7, 2024

➤ PM Bot commented:

Jira ticket: RJS-2908

@jayshah123 jayshah123 changed the title Seeing a crash after codepush install/restart Crash occurs on Android after codepush install/restart Oct 7, 2024
@jayshah123
Copy link
Author

Would there be a recommended version to downgrade to?
We see 12.7 as the min recommended version as per https://github.com/realm/realm-js/blob/main/CHANGELOG.md#1270-2024-04-17

@jayshah123
Copy link
Author

After downgrading to 12.11.1, issue does not seem to occur.

@jayshah123 jayshah123 changed the title Crash occurs on Android after codepush install/restart Crash occurs on Android after codepush OTA install/restart Oct 7, 2024
@jayshah123 jayshah123 changed the title Crash occurs on Android after codepush OTA install/restart Crash occurs on Android after codepush.restartApp OTA install/restart Oct 7, 2024
@kraenhansen kraenhansen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants