Open tobrun opened 7 years ago
For now I have disabled apk split to be able to ship a release containing v5.1.0-beta.5 in https://github.com/mapbox/mapbox-android-demo/pull/381.
Is this still an issue @tobrun ? Still needs to be addressed? Ticket can be closed?
I don't think we have re-enabled integration for it as the demo app size is 30.14mb, would be great getting this in as this is the the only test with apk-split we have.
I have the same crash on my App and mapboxsdk 5.1.3. I cannot replicate it, but I have about 50 crash reports in firebase, the last of december 2017. All reports on API 23 and on few devices (quite uncommon: FEVER, CUBOT, Acer T11 and other four)
I do not use ApkSplit, but I use abiFilters "armeabi-v7a", "x86" to reduce .apk size
What I understand from the Exception is that it's trying to find a 64 bit native library, but it does not find it. It's quite strange, because all devices reporting the crash supports armeabi-v7a and so they should load it. I tested the App with several devices, boht x86 and Arm and it seems to work fine (except that on few devices that I do not have to test on)
@ArLabDev any chance that you could share the relevant part of your crash log on this ticket?
I'm not able to reproduce the crash. It seems to happens only on few uncommon devices. I see it in firebase report.
The only "relevant" part of the crash I can share is a (not complete) list of the devices: FEVER 11 times CUBOT MAX 7 times Apollo lite 6 times X5max_PRO 3 times X7pro, Upad Pro, T11, Lenovo A7700, CUBOT MANITO, ...
And the stack trace that is very similar to the one reported by you.
Exception java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/mnt/expand/5538a1c1-4225-4890-b6ca-31d19c3a879a/app/com.arlabsmobile.altimeterfree-1/base.apk"],nativeLibraryDirectories=[/mnt/expand/5538a1c1-4225-4890-b6ca-31d19c3a879a/app/com.arlabsmobile.altimeterfree-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "[REDACTED_DOMAIN_NAME]" java.lang.Runtime.loadLibrary (Runtime.java:367) java.lang.System.loadLibrary (System.java:1076) com.mapbox.mapboxsdk.net.NativeConnectivityListener.<clinit> (NativeConnectivityListener.java:9) com.mapbox.mapboxsdk.net.ConnectivityReceiver.instance (ConnectivityReceiver.java:37) com.mapbox.mapboxsdk.Mapbox.getInstance (Mapbox.java:61) com.arlabsmobile.altimeter.MapsFragment.onCreate (MapsFragment.java:616) android.support.v4.app.Fragment.performCreate (Fragment.java:2180) android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManagerImpl.java:1244) android.support.v4.app.FragmentTransition.addToFirstInLastOut (FragmentTransition.java:1085) android.support.v4.app.FragmentTransition.calculateFragments (FragmentTransition.java:976) android.support.v4.app.FragmentTransition.startTransitions (FragmentTransition.java:95) android.support.v4.app.FragmentManagerImpl.executeOpsTogether (FragmentManagerImpl.java:2146) android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps (FragmentManagerImpl.java:2103) android.support.v4.app.FragmentManagerImpl.execPendingActions (FragmentManagerImpl.java:2013) android.support.v4.app.FragmentManagerImpl$1.run (FragmentManagerImpl.java:710) android.os.Handler.handleCallback (Handler.java:815) android.os.Handler.dispatchMessage (Handler.java:104) android.os.Looper.loop (Looper.java:207) android.app.ActivityThread.main (ActivityThread.java:5728) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:888) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:749)
In my stack trace is not reported the name of the .so file. But the 9th line of NativeConnectivityListener.java load the "mapbox-gl" library (that linux should translate in "libmapbox-gl.so" file. Same to your stack trace.
Please, ask me if you need some more info.
Jl
The currently active beta track apk v71 crashes when opening a MapView. Source is either apk split #288 or a proguard issue. We need to fix this to be able to release an update for https://github.com/mapbox/mapbox-gl-native/issues/9315.
cc @langsmith @zugaldia