rive-app / rive-app/rive-android
Segfault crash on physical devices
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 538
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Description
Getting a crash on FireTV devices:
Segfault: rive::gpu::PaintAuxData::set
Provide a Repro
Playing an animation (Compose, using AndroidView) crashes the app. This happens very sporadically (hard to reproduce) on an emulator, but consistently on a TV, specifically Fire TV Stick 4K - 1st Gen (2018).
It happens for one Rive file specifically, but not for another (just using two in the app for now).
It crashes immediately when the view is created (the animation is not triggered at this point, we simply give it the raw resource ID and use autobind.
Android 7.1.2, Rive version 10.1.0
Stacktrace:
librive-android
+0x2bef00
rive::gpu::PaintAuxData::set
librive-android
+0x2c6444
rive::gpu::RenderContext::LogicalFlush::pushPath
librive-android
+0x2cbf9c
rive::gpu::PathDraw::pushToRenderContext
librive-android
+0x2c5958
rive::gpu::RenderContext::LogicalFlush::writeResources
librive-android
+0x2c3e88
rive::gpu::RenderContext::flush
librive-android
+0x0e7914
rive_android::PLSWorkerImpl::flush
Source .riv/.rev file
Pending approval
Expected behavior
The animation should play without crashing.
Device & Versions (please complete the following information)
- Fire TV Stick 4K - 1st Gen (2018)
- Android 7.1.2, API level 25
- Rive version 10.1.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 with the PaintAuxData::set and RenderContext stack-trace entries, then reproduce on the Fire TV Stick 4K with the affected .riv/.rev file once its pending approval is resolved. Compare behavior with the working animation and emulator results. Done means the supplied animation loads and plays without a segfault on the reported device.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100