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

Android crashes playing simple spinner animation (FORTIFY: pthread_mutex_lock called on a destroyed mutex)

Open
#243 0 comments 2 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

Displaying a simple spinner animation on android causes a crash about half the time.
No errors on JS side, logcat logs FORTIFY: pthread_mutex_lock called on a destroyed mutex.
It's been working fine for months, only started crashing and crashing a lot in the past week.

Provide a Repro
<Rive
  style={{ width: 64, height: 64 }}
  resourceName="app_animations"
  artboardName="activity-indicator"
/>
Source .riv/.rev file

I don't have the rights to share the source .riv.

Expected behavior
Screenshots
Device & Versions (please complete the following information)
  • Device: Pixel 6a, also getting reports of this happening a lot on Miui devices
  • OS: Android 14
  • NPM Version: 10.2.5
Additional context

The crashes started with rive-react-native version 7.0.2 and are still occurring on 7.0.4

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 component using resourceName="app_animations" and artboardName="activity-indicator" on Android 14, reproducing on a Pixel 6a or a reported MIUI device. Compare behavior across rive-react-native 7.0.2 and 7.0.4 and inspect the native crash around pthread_mutex_lock. Done means the spinner no longer crashes during playback.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native, typescript
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.