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

Unclear MissingLibraryException when IOException occurs during getSupportedABIs() #107

Open
MrHadiSatrio opened this issue May 2, 2024 · 0 comments · May be fixed by #108
Open

Unclear MissingLibraryException when IOException occurs during getSupportedABIs() #107

MrHadiSatrio opened this issue May 2, 2024 · 0 comments · May be fixed by #108

Comments

@MrHadiSatrio
Copy link

Similar to previous reports (#98, #93, and #88), we've encountered MissingLibraryException errors in Production that haven't been reproducible locally. The specific error message is:

Fatal Exception: com.getkeepsafe.relinker.MissingLibraryException: Could not find '<REDACTED>.so'. Looked for: [arm64-v8a, armeabi-v7a, armeabi], but only found: [].

According to the source, there are three scenarios where an empty array might be returned from getSupportedABIs() (whose result is then used to construct the exception):

  1. sourceDirectories(context) returns empty.
  2. IOException occurs during ZipFile initialization.
  3. ZipFile doesn't contain matching library entries.

This report focuses on the second scenario. Currently, the error message doesn't provide any indication that the library might still be present despite the exception. While it wouldn't necessarily help resolve the root cause, a clearer message would reduce ambiguity for those investigating the issue.

Expected

getSupportedABIs() should specify whether or not it was able to look into all available directories without errors in addition to the detected ABIs, for example:

Fatal Exception: com.getkeepsafe.relinker.MissingLibraryException: Could not find '<REDACTED>.so'. Looked for: [arm64-v8a, armeabi-v7a, armeabi], but only found: []. **Error encountered when trying to scan: [<source_dir_1>, <source_dir_2>, <source_dir_n>].**

Actual

Fatal Exception: com.getkeepsafe.relinker.MissingLibraryException: Could not find '<REDACTED>.so'. Looked for: [arm64-v8a, armeabi-v7a, armeabi], but only found: [].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant