rive-app / rive-app/rive-flutter

ARCore crash when using Rive + PlatformView (GL_OES texture bind failure) — Regression

Open
#625 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
1.5k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

Submission checklist
  • I have confirmed the issue is present in the latest version of the rive Flutter package
  • I have searched the documentation and forums and could not find an answer
  • I have searched existing issues and this is not a duplicate
Description

Using Rive in a Flutter app that embeds ARSceneView (embedded via PlatformView and backed by ARCore) consistently causes a crash inside ARCore.

AR_ERROR_FATAL: Failed to bind to oes texture
gl_error=1281

The crash only occurs when Rive and ARSceneView are rendered on the same screen simultaneously.

This appears to be a regression in Rive 0.14.x, as the issue does not occur with Rive 0.13.x under the same conditions.

Additionally, the issue does not reproduce in a native Android app using rive-android:11.3.2 together with ARSceneView 2.2.1, suggesting the problem is specific to the Flutter integration.

In some cases, instead of a crash, a black screen is observed.

Reproduction steps / code
  1. Create Flutter app
  2. Add:
    • ARSceneView (via PlatformView)
    • Rive widget on the same screen
  3. Run app
Upload your reproduction files / stack trace

example.zip
stacktrace.txt

Rive Flutter package version

0.14.5

Flutter version

Flutter: 3.41.5

Device

Pixel 9 pro XL

OS version

Android 16

Contributor guide

No contributing guide indexed for this repository

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 example.zip and stacktrace.txt, then reproduce the crash using Rive Flutter 0.14.5 with ARSceneView on the same screen. Compare the behavior with Rive 0.13.x and the native rive-android 11.3.2 setup; done means the ARCore texture-binding crash and black-screen behavior no longer occur in the Flutter integration.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.