fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

Many androids device crash on start! #1367

Open ckarmy opened 3 years ago

ckarmy commented 3 years ago

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?

ichan-mb commented 3 years ago

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

ckarmy commented 3 years ago

Thanks for the reply! Some of the device are:

ckarmy commented 3 years ago

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 commented 3 years ago

Any suggestion? Maybe to setup Architectures in unoproj?

AndrewEQ commented 3 years ago

Did you use Mobile.ShowStatusbar in your .unoproj?

ckarmy commented 3 years ago

Did you use Mobile.ShowStatusbar in your .unoproj?

No, I need to use it?

AndrewEQ commented 3 years ago

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