-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Labels
Description
Description:
We’re encountering a reproducible issue where Rive animations, native animations, and scroll views stop functioning when the app resumes from background after ~1 minute. This issue only occurs when Impeller is enabled and Rive is present in the widget tree during backgrounding.
Flutter Version:
3.32.7
Device Details:
- Model: Asus 6Z
- OS: Android 11
- Renderer: Vulkan (Impeller enabled)
Steps to Reproduce:
- Launch an app with a screen containing a Rive animation.
- Background the app (e.g., press Home).
- Wait for ~1 minute or more.
- Resume the app.
- Observe that:
- ❌ Rive animations freeze
- ❌ Native animations & scroll views stop responding
- ✅ Touch inputs still work (taps, gestures)
Expected Behavior:
The app should resume without animation/rendering issues after being backgrounded.
Actual Behavior:
- Rive and native animations freeze.
- Scroll views are unresponsive.
- Touch inputs work fine.
- The following error logs are printed:
[ERROR:flutter/impeller/renderer/backend/vulkan/swapchain/khr/khr_swapchain_impl_vk.cc(358)] Impeller validation: Could not wait for fence.
[ERROR:flutter/shell/gpu/gpu_surface_vulkan_impeller.cc(95)] No surface available.
Notes:
- The issue is consistent when Rive is present in the widget tree during backgrounding.
- Disabling Impeller resolves the issue.
- Similar symptoms were discussed in a previously closed issue: Flutter Vulkan Support (ImpellerValidationBreak) Issue Android flutter/flutter#162975
Impact:
This issue severely affects apps using Rive on Android with Impeller + Vulkan. Animations and scroll views become unusable until the app is restarted.