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

Better error message when loading native code #6673

Closed
cmelchior opened this issue Nov 26, 2019 · 9 comments · Fixed by #6710
Closed

Better error message when loading native code #6673

cmelchior opened this issue Nov 26, 2019 · 9 comments · Fixed by #6710
Assignees

Comments

@cmelchior
Copy link
Contributor

cmelchior commented Nov 26, 2019

With App Bundle and APK splits, it has become more common that people are sideloading the wrong APK for their device which results in a mismatch of the native code. Right now this results in a rather unfriendly error message like here: #6635

MissingLibraryException librealm-jni.so

If this happens we should try to detect which architecture the device is running and which binaries are available in the APK so we can provide the developer with better diagnostics (and reduce our support load on the matter).

@cmelchior
Copy link
Contributor Author

This should ideally be fixed upstream. I created a PR against ReLinker here KeepSafe/ReLinker#65. We should update our version of ReLinker once it is hopefully accepted.

@danpe
Copy link

danpe commented Dec 23, 2019

When will this be fixed/merged?

@Zhuinden
Copy link
Contributor

@danpe ask the Relinker side of things, although they seem to have ignored the request.

@emarc-m
Copy link

emarc-m commented Jan 6, 2020

Dependency PR KeepSafe/ReLinker#65 on ReLinker side has been merged and released as version 1.4.0. Apologies for the delay.

@cmelchior
Copy link
Contributor Author

I updated ReLinker to 1.4.0. It will be part of 6.1. Hopefully released end of this week.

@Tweener
Copy link

Tweener commented Jan 7, 2020

Brilliant. Thanks @cmelchior !

@yesidlazaro
Copy link

@cmelchior still happening on v6.1.0 , on Nexus 5 with android 6.0.1

@Zhuinden
Copy link
Contributor

@yesidlazaro but is there a new error message?

@yesidlazaro
Copy link

yesidlazaro commented Jan 31, 2020

@Zhuinden , oh yes ,my fault, i just commented here because there is a issue related with loading native lib , #6727 . i think you can keep this issue close. but checkout this new issue please.

@RealmBot RealmBot removed the Blocked This issue is blocked by another issue label Jul 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants