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

java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found

Open GOVINDDIXIT opened this issue 2 years ago • 4 comments

Description

Getting following issue while initialising rive for Vivo and Oneplus devices

Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found: needed by /data/data/com.dreamplug.androidapp/app_lib/librive-android.so in namespace clns-5
       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:133)
       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:43)
       at app.rive.runtime.kotlin.core.Rive.init$default(Rive.kt:38)
       at com.dreamplug.fabrik.ui.main.MainActivity$onCreate$1.invokeSuspend(MainActivity.kt:246)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
       at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
       at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:5793)

Provide a Repro

Just initialising the Rive is able to repro the crash

Device & Versions (please complete the following information)

  • Device: Brand: Vivo Model: X90

  • SDK Level Android 14 (API level 34)

  • rive version using v8.5.0

GOVINDDIXIT avatar Feb 19 '24 15:02 GOVINDDIXIT

Hi @GOVINDDIXIT, we also test against a OnePlus 7Pro on our end and everything runs smoothly over here. Which OnePlus device are you seeing this on? Are you seeing this by just running the example app in this repo?

umberto-sonnino avatar Apr 03 '24 15:04 umberto-sonnino

Hi @umberto-sonnino I am unable to reporduce this crash but I have reports on Crashlytics indicating the same crash as mentioned above.

  • Devices: Samsung Gallaxy J4 Core Samsung Gallaxy A2 Core

100% of affected devices are running Android 8.

  • Rive version: 8.3.0

DJPretorius avatar Dec 12 '24 06:12 DJPretorius

I'm seeing this for users on Android 7, 8, and 9. Also for several manufacturers including Samsung. We are on Rive 9.13.6.

ChristaCmb avatar Jan 28 '25 17:01 ChristaCmb

Seeing this for 2 users, OnePlus Nord N30 5G and Moto G Play - 2024 both running Android 14. Rive 10.0.5

nshurtz avatar Jun 06 '25 17:06 nshurtz