fuselibs icon indicating copy to clipboard operation
fuselibs copied to clipboard

Many androids device crash on start!

Open ckarmy opened this issue 4 years ago • 7 comments

In the developer console I'm reporting many crash when the user open the app...

The error is:

java.lang.UnsatisfiedLinkError: 
  at java.lang.Runtime.loadLibrary0 (Runtime.java:1016)
  at java.lang.System.loadLibrary (System.java:1669)
  at com.uno.CppManager.LoadLibraries (CppManager.java:27)
  at com.fuse.App.<clinit> (App.java:43)
  at com.fuse.App.Create (App.java:62)
  at com.PreuPDV.PreuPDV.<init> (PreuPDV.java:46)
  at java.lang.Class.newInstance (Native Method)
  at android.app.AppComponentFactory.instantiateActivity (AppComponentFactory.java:69)
  at androidx.core.app.CoreComponentFactory.instantiateActivity (CoreComponentFactory.java:41)
  at android.app.Instrumentation.newActivity (Instrumentation.java:1219)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3015)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3258)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1955)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7073)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:964)

I use this version of fuse:

"devDependencies": {
        "@fuse-open/fuselibs": "https://ci.appveyor.com/api/buildjobs/1e5itniolluxteml/artifacts/fuse-open-fuselibs-2.0.0-beta.0.tgz",
        "@fuse-open/uno": "https://ci.appveyor.com/api/buildjobs/fbjn07mn64e39smo/artifacts/fuse-open-uno-2.0.0-beta.3.tgz"
    }

How can I solve this?

ckarmy avatar Aug 10 '20 21:08 ckarmy

I'm guessing because it's failed to load the application library (the .so file). Can you investigate what kind of android device that has the problems in the developer console?

It might be related to the output of the ABI (architecture Binary Interface e.g armv7, arm64, x86, etc) that is not available on the device that has the problem

ichan-mb avatar Aug 10 '20 23:08 ichan-mb

Thanks for the reply! Some of the device are:

  • Motorola moto g(7) play, brightness_1, Android 9 (SDK 28) (160 cases)
  • Samsung Galaxy A10s, brightness_1, Android 10 (SDK 29) (417 cases)
  • Samsung Galaxy J8 brightness_1, Android 9 (SDK 28)

ckarmy avatar Aug 11 '20 14:08 ckarmy

I downgrade to 1.4. To many errors in a few hours (more than 1900 cases): image

With version 1.4 there are no errors

ckarmy avatar Aug 11 '20 14:08 ckarmy

Any suggestion? Maybe to setup Architectures in unoproj?

ckarmy avatar Aug 13 '20 14:08 ckarmy

Did you use Mobile.ShowStatusbar in your .unoproj?

AndrewEQ avatar Oct 09 '20 14:10 AndrewEQ

Did you use Mobile.ShowStatusbar in your .unoproj?

No, I need to use it?

ckarmy avatar Oct 09 '20 16:10 ckarmy

No, I just identified it as a possible problem... have you tried removing your modules one by one to narrow down the cause?

AndrewEQ avatar Oct 09 '20 16:10 AndrewEQ