Repository navigation
Add troubleshooting for "couldn't find DSO to load" - #159
Open
ZainnQureshii wants to merge 1 commit into
Open
ZainnQureshii wants to merge 1 commit into
ZainnQureshii wants to merge 1 commit into
Conversation
Explain what the error means, how to check where SoLoader searched and whether the library is packaged for the device's ABI, and why a present APK entry can still end in this error (compressed entries are skipped by DirectApkSoSource, and a linker error makes it move on). Fixes meta#114 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
Hey @cortinico @javache, could one of you take a look at this when you get a chance? This adds a short guide for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #114
Summary
Adds a short "Troubleshooting" section to the README for the
couldn't find DSO to loaderror. It covers what the error means, where to see which sources SoLoader tried (theexisting SO sourcesandNative lib dirlines thatSoLoaderDSONotFoundError.createalready adds), how to check that the library is packaged under the device's ABI (unzip -l), and two reasons a library that is in the APK can still end in this error:DirectApkSoSourceonly indexes entries stored uncompressed (entry.getMethod() == ZipEntry.STORED,DirectApkSoSource.java:215-218), so a compressed.sois skipped by that source.unzip -lvshows the method.UnsatisfiedLinkError,DirectApkSoSourcelogs it as a warning and tries the next path (DirectApkSoSource.java:85-90), so the final message can hide a linker error such as a missing dependency.Every statement was checked against the source on current
main; nothing in the section goes beyond what the loader does.Test plan
Docs only. To check the compressed-entry case, compiled the unchanged
DirectApkSoSourceagainst two ZIP fixtures holdinglib/arm64-v8a/libhermes.so, one stored and one deflated, with the loader stubbed: the stored entry reached the loader (and itsUnsatisfiedLinkErrorwarning), the deflated one was skipped with no loader call.A Copilot review pointed out that
Native lib diris printed whenever a context exists, even when no source searches it, so the section describes it as the app's native library directory rather than a searched path.Prepared with AI assistance (Claude Code) and reviewed with GitHub Copilot.
🤖 Generated with Claude Code