You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash! app.rive.runtime.kotlin.core.errors.RiveException: Accessing disposed C++ object RiveArtboardRenderer. #424
Steps to reproduce:
LazyColumn inside each row button with rive.
Quite fast scroll up/down for few seconds.
And we have get a this crash. We are trying to riveView?.pause()/stop - just in case. clear all references. by onRelease. listItem.onRelease = { } do dispose , don't do dispose but still get this crash.
AndroidRuntime E FATAL EXCEPTION: Thread-15
Process: com.letyco, PID: 27929
java.lang.Throwable:
app.rive.runtime.kotlin.core.errors.RiveException: Accessing disposed C++ object RiveArtboardRenderer.
app.rive.runtime.kotlin.core.NativeObject.getCppPointer(NativeObject.kt:55)
app.rive.runtime.kotlin.renderers.Renderer.getWidth(Renderer.kt:215)
app.rive.runtime.kotlin.renderers.RiveArtboardRenderer.resizeArtboard(RiveArtboardRenderer.kt:36)
app.rive.runtime.kotlin.renderers.RiveArtboardRenderer.draw(RiveArtboardRenderer.kt:51)
InputDispatcher E channel 'b67e987 com.letyco/com.letyco.MainActivity' ~ Channel is unrecoverably broken and will be disposed!
You can just create empty LazaColumn. So I've added just empty RiveAnimationView and there no crash and only I uncomment. resId = style.type.resId, I've got crash by fast scroll. I event disabled rive VM. so there only empty view.
Also trying dispose in many ways this view but still get the crash.
I am seeing this same problem in 10.4.4 and would expect to see it in the latest version (which we cannot use quite yet in our project) because I think the problem is that the resize needs to be under the frame lock. I made a PR to do so: #429
The issue for us is happening to 0.025% of production users, and I still haven't been able to repro the crash locally.
Oh, interesting, that method of fixing it doesn't obtain a lock around the call, so theoretically it still could occur, but at least it would be a lot less likely to happen. Thanks for pointing that out.
Hi all, thank you for including the PR, that is very valuable to us. We're aware of the issue and are working on getting it resolved. Thank you for your patience.
Activity
[rive-app#424] Fix: app.rive.runtime.kotlin.core.errors.RiveException…
dabrosch commentedon Dec 8, 2025
I am seeing this same problem in 10.4.4 and would expect to see it in the latest version (which we cannot use quite yet in our project) because I think the problem is that the resize needs to be under the frame lock. I made a PR to do so: #429
The issue for us is happening to 0.025% of production users, and I still haven't been able to repro the crash locally.
[rive-app#424] Fix: app.rive.runtime.kotlin.core.errors.RiveException…
[rive-app#424] Demo attempting to replicate bug rive-app#424 app.rive…
dabrosch commentedon Dec 9, 2025
Here is my attempt at reproducing the crash, but it doesn't seem to repro: https://github.com/dabrosch/rive-android/tree/dabrosch/10.4.4-with-bug-demo
YvgenTroshchiy commentedon Dec 9, 2025
Hi, looks like you fixed it few days after my report.
adb1852
dabrosch commentedon Dec 9, 2025
Oh, interesting, that method of fixing it doesn't obtain a lock around the call, so theoretically it still could occur, but at least it would be a lot less likely to happen. Thanks for pointing that out.
[rive-app#424] Cleanup / Optimizations for race condition fix
[rive-app#424] Added another check for isActive at the innermost lock…
[rive-app#424] Remove override of disposeDependencies since it should…
dabrosch commentedon Jan 26, 2026
I would like to see the proposed PR be merged as well to prevent threadlock or additional errors.
tylernij commentedon Feb 13, 2026
Hi all, thank you for including the PR, that is very valuable to us. We're aware of the issue and are working on getting it resolved. Thank you for your patience.
tylernij commentedon Mar 2, 2026
For confirmation, are we still getting this crash on the latest runtime version of Rive on Android?
Merge origin/master into dabrosch/issue-424 and restore rive-app#424 …
fix(Android): Rewrite rive-app#424 renderer lock tests and mark isAct…