Open Bug 1543130 Opened 6 years ago Updated 2 years ago

Show helpful information when incorrectly loading an incorrect arch build

Categories

(GeckoView :: General, enhancement, P3)

68 Branch
Unspecified
All
enhancement

Tracking

(Not tracked)

People

(Reporter: jonalmeida, Unassigned)

References

(Blocks 1 open bug)

Details

We see errors like the one below quite often when someone tries to load an incorrect architecture on a device. It would be helpful if there was some actionable logs that helped the developer understand that the cause might be incorrect arch, and they should check that to make sure it isn't the cause.

This is mostly caused by loading the wrong architecture on a device (e.g. x86 on arm).

2019-04-05 11:27:21.711 3673-3726/? E/GeckoLoader: Couldn't load mozglue. Trying native library dir.
2019-04-05 11:27:21.714 3673-3726/? E/GeckoLoader: Library doesn't exist when it should.
2019-04-05 11:27:21.726 3673-3726/? E/GeckoLoader: Couldn't load /data/user/0/org.mozilla.tv.firefox.gecko.debug/lib/libmozglue.so: java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/user/0/org.mozilla.tv.firefox.gecko.debug/lib/libmozglue.so" not found
2019-04-05 11:27:21.729 3673-3726/? E/GeckoLoader: Couldn't load /data/app-lib/org.mozilla.tv.firefox.gecko.debug/libmozglue.so: java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/app-lib/org.mozilla.tv.firefox.gecko.debug/libmozglue.so" not found
2019-04-05 11:27:21.739 3673-3726/? E/GeckoLoader: Couldn't load /data/data/org.mozilla.tv.firefox.gecko.debug/lib/libmozglue.so: java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/data/org.mozilla.tv.firefox.gecko.debug/lib/libmozglue.so" not found
2019-04-05 11:27:21.743 3673-3726/? E/GeckoLoader: Load diagnostics: LOAD mozglue: ABI: unknown (0x0), x86: Data: /data/user/0/org.mozilla.tv.firefox.gecko.debug, ax=false, ddx=false, -1x=false, -2x=false, nativeLib: /data/app/org.mozilla.tv.firefox.gecko.debug-2/lib/x86, dirx=true, libx=false
2019-04-05 11:27:21.807 3673-3726/? E/AndroidRuntime: FATAL EXCEPTION: Gecko
    Process: org.mozilla.tv.firefox.gecko.debug, PID: 3673
    java.lang.RuntimeException: LOAD mozglue: ABI: unknown (0x0), x86: Data: /data/user/0/org.mozilla.tv.firefox.gecko.debug, ax=false, ddx=false, -1x=false, -2x=false, nativeLib: /data/app/org.mozilla.tv.firefox.gecko.debug-2/lib/x86, dirx=true, libx=false
        at org.mozilla.gecko.mozglue.GeckoLoader.doLoadLibrary(GeckoLoader.java:464)
        at org.mozilla.gecko.mozglue.GeckoLoader.loadMozGlue(GeckoLoader.java:472)
        at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:443)
     Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.mozilla.tv.firefox.gecko.debug-2/base.apk"],nativeLibraryDirectories=[/data/app/org.mozilla.tv.firefox.gecko.debug-2/lib/x86, /data/app/org.mozilla.tv.firefox.gecko.debug-2/base.apk!/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libmozglue.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:984)
        at java.lang.System.loadLibrary(System.java:1530)
        at org.mozilla.gecko.mozglue.GeckoLoader.doLoadLibraryExpected(GeckoLoader.java:385)
        at org.mozilla.gecko.mozglue.GeckoLoader.doLoadLibrary(GeckoLoader.java:411)
        at org.mozilla.gecko.mozglue.GeckoLoader.loadMozGlue(GeckoLoader.java:472) 
        at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:443) 

This could also be solved with a multi-arch build, but that is a much larger issue to solve rather than this.

Type: defect → enhancement
Depends on: 1522581
Priority: -- → P3
Rank: 9
Severity: normal → S3
Rank: 9 → 333

Tasks and enhancements should have severity N/A.

Severity: S3 → N/A
You need to log in before you can comment on or make changes to this bug.