rive-android icon indicating copy to clipboard operation
rive-android copied to clipboard

App Crash on Rive Initialisation

Open devesh053 opened this issue 1 year ago • 8 comments

Hi team , I am updating the rive version from 5.0.0 to 9.6.4. I am using OnePlus9 with android 14.

App is crashing on app launch with stack trace : Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/data/tech.vance.app.debug/app_lib/librive-android.so"... at java.lang.Runtime.load0(Runtime.java:933) at java.lang.System.load(System.java:1625) at com.getkeepsafe.relinker.SystemLibraryLoader.loadPath(SystemLibraryLoader.java:31) at com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal(ReLinkerInstance.java:206) at com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary(ReLinkerInstance.java:136) at com.getkeepsafe.relinker.ReLinker.loadLibrary(ReLinker.java:70) at com.getkeepsafe.relinker.ReLinker.loadLibrary(ReLinker.java:51) at app.rive.runtime.kotlin.core.Rive.init(Rive.kt:42) at app.rive.runtime.kotlin.core.Rive.init$default(Rive.kt:37) at app.rive.runtime.kotlin.RiveInitializer.create(RiveInitializer.kt:34) at app.rive.runtime.kotlin.RiveInitializer.create(RiveInitializer.kt:32) at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:180)

devesh053 avatar Aug 19 '24 08:08 devesh053

Hi @devesh053, can you try cleaning your build folder and trying with a fresh build

HayesGordon avatar Aug 23 '24 16:08 HayesGordon

Hi @HayesGordon , I tried that also. Still facing the above mentioned error.

devesh053 avatar Aug 23 '24 18:08 devesh053

Hi @devesh053 are you only seeing this on OnePlus 9 devices? Does this repro on an Android 14 emulator? Can you share a reproducible example that we can run?

umberto-sonnino avatar Aug 27 '24 08:08 umberto-sonnino

I have encountered the same problem, how can I solve it?

15189611 avatar Sep 09 '25 04:09 15189611

@umberto-sonnino I have encountered the same problem, how can I solve it?

15189611 avatar Sep 09 '25 04:09 15189611

@devesh053, @15189611 - Release 10.1.6 added the recursive flag to ReLinker, which should help with finding native libraries in the /data folder. Can you ensure your project uses at least this version and see if the issue persists?

ErikUggeldahl avatar Sep 09 '25 14:09 ErikUggeldahl

@ErikUggeldahl How much is the minimum version of Gradle supported for 10.1.6? Our project is currently graded 7.2.2, can we use 10.1.6?

15189611 avatar Sep 09 '25 14:09 15189611

@ErikUggeldahl how to find native libraries in the /data folder...in 10.1.6 also error

15189611 avatar Sep 09 '25 15:09 15189611