rive-app / rive-app/rive-android
java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 538
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at app.rive.runtime.kotlin.core.Rive.init in Rive.kt:43 and inspect how librive-android.so and libc++_shared.so are loaded for Android 14 on Vivo X90 and OnePlus devices. Reproduce by initializing Rive with v8.5.0; done means initialization no longer throws UnsatisfiedLinkError on the reported devices.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100