rive-app / rive-app/rive-react-native

IOS app crashes on rendering rive - EXC_BAD_ACCESS

Open
#308 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
783
Forks
81
Avg merge
3d 6h
Merged PRs (30d)
3

Description

Description

<-- A clear and concise description of what the problem is. -->
We are rendering a rive file in our app that makes it crash c. 3% of the time. We only have the bug on IOS. We are on an expo managed project.
Here is more info on the crash, captured through Sentry:

EXC_BAD_ACCESS
contents >
KERN_INVALID_ADDRESS at 0x18.

rive::gpu::RenderContextMetalImpl::makeRenderPassForDraws

Stack trace:
-[RiveRendererView drawRect:]
-[RiveRendererView drawInRect:withCompletion:]
-[RiveRendererContext endFrame:withCompletion:]
-rive::gpu::RenderContext::flush
rive::gpu::RenderContextMetalImpl::flush
rive::gpu::RenderContextMetalImpl::makeRenderPassForDraws

Source .riv/.rev file

https://unlearn-test.s3.eu-west-3.amazonaws.com/app-assets/rive-animations/rive_home_screen.riv

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the RiveRendererView and RenderContextMetalImpl entries named in the Sentry stack trace, then try rendering the provided rive_home_screen.riv file in the Expo managed iOS app. Done means identifying and fixing the intermittent EXC_BAD_ACCESS during rendering, with the animation no longer crashing the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native
Domain
computer-graphics, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.