rive-app / rive-app/rive-flutter
ARCore crash when using Rive + PlatformView (GL_OES texture bind failure) — Regression
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
riveFlutter 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
- Create Flutter app
- Add:
- ARSceneView (via PlatformView)
- Rive widget on the same screen
- Run app
Upload your reproduction files / stack trace
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
- 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 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