Skip to content

[Impeller][Vulkan] Unhandled VK_ERROR_COMPRESSION_EXHAUSTED_EXT render-target allocation failure crashes the raster thread on PowerVR (Pixel 10) #187564

Closed

Description

@rlueders

Steps to reproduce

Run the demo app on a pixel 10 with impeller enabled. It will crash.
Run the demo app on a pixel 10 with impeller disabled. It does not crash.

Expected results

Demo app doesn't crash with impeller enabled.

Actual results

Demo app crashes.

I/flutter: Using the Impeller rendering backend (Vulkan).
E/flutter: [ERROR:flutter/impeller/renderer/backend/vulkan/allocator_vk.cc(361)]
  Impeller validation: Unable to allocate Vulkan Image: ErrorCompressionExhaustedEXT
  Type: Texture2D Mode: DevicePrivate Usage: { ShaderRead, RenderTarget }
  [VK]Format: R8G8B8A8Unorm
  [VK]Usage: { TransferSrc | TransferDst | Sampled | ColorAttachment | InputAttachment }
  [VK]Mem. Flags: { DeviceLocal }
E/flutter: [ERROR:flutter/impeller/renderer/render_target.cc(439)]
  Impeller validation: Could not create color texture.
E/flutter: [ERROR:flutter/impeller/renderer/render_target.cc(26)]
  Impeller validation: Render target does not have color attachment at index 0.
F/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid NNNN (1.raster)

Code sample

import 'dart:ui' as ui;

import 'package:flutter/material.dart';

void main() => runApp(const App());

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Stack(
          fit: StackFit.expand,
          children: <Widget>[
            // Many large blurred tiles = high baseline render-target pressure.
            GridView.count(
              crossAxisCount: 3,
              physics: const NeverScrollableScrollPhysics(),
              children: List<Widget>.generate(
                60,
                (int i) => RepaintBoundary(
                  child: ImageFiltered(
                    imageFilter: ui.ImageFilter.blur(sigmaX: 6, sigmaY: 6),
                    child: CustomPaint(painter: _HeavyTile(i)),
                  ),
                ),
              ),
            ),
            // Nested full-screen BackdropFilters — each forces another large
            // offscreen render target (the saveLayer / back_texture path).
            for (int i = 0; i < 24; i++)
              Positioned.fill(
                child: Opacity(
                  opacity: 0.3,
                  child: BackdropFilter(
                    filter: ui.ImageFilter.blur(sigmaX: 10, sigmaY: 10),
                    child: const SizedBox.expand(),
                  ),
                ),
              ),
            const Center(
              child: Text('HEAVY',
                  style: TextStyle(color: Colors.white, fontSize: 56)),
            ),
          ],
        ),
      ),
    );
  }
}

/// One tile: a storm of blurred saveLayers — expensive offscreen work.
class _HeavyTile extends CustomPainter {
  _HeavyTile(this.seed);
  final int seed;

  @override
  void paint(Canvas canvas, Size size) {
    for (int i = 0; i < 40; i++) {
      final double dx = ((seed * 37 + i * 53) % 100) / 100 * size.width;
      final double dy = ((seed * 71 + i * 29) % 100) / 100 * size.height;
      final double r = 8.0 + ((seed + i * 13) % 30);
      final Rect rect = Rect.fromCircle(center: Offset(dx, dy), radius: r);
      canvas.saveLayer(rect, Paint());
      canvas.drawCircle(
        Offset(dx, dy),
        r,
        Paint()
          ..color = Colors.tealAccent.withValues(alpha: 0.4)
          ..maskFilter = const MaskFilter.blur(BlurStyle.normal, 6),
      );
      canvas.restore();
    }
  }

  @override
  bool shouldRepaint(_HeavyTile old) => false;
}

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.44.1, on macOS 26.5 25F71 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.5)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.

Activity

  1. saurabh-mirajkar commented on Jun 5, 2026

    @saurabh-mirajkar
    Contributor

    @rlueders Thanks for the report.

    I tried reproducing this locally with Impeller enabled on an Android device, but was unable to trigger the crash. Based on the report, this appears to be specific to the Pixel 10 / PowerVR Vulkan driver path.

    Could you provide the following details from an affected device?

    • flutter run --enable-impeller -v output leading up to the crash.
    • Device model, build number, OS version
    • Whether the crash reproduces in both debug and profile modes.
    • A full error crash log capturing the VK_ERROR_COMPRESSION_EXHAUSTED_EXT failure.
  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    needs repro infoAutomated crash report whose cause isn't yet known
    and removed
    in triagePresently being triaged by the triage team
    on Jun 5, 2026
  3. rlueders commented on Jun 5, 2026

    @rlueders
    ContributorAuthor

    @saurabh-mirajkar I already submitted a PR (#187586) with a fix.

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jun 5, 2026
  5. saurabh-mirajkar commented on Jun 5, 2026

    @saurabh-mirajkar
    Contributor

    @rlueders Thanks for investigating this and for submitting the PR. Routing this issue to the team for further review.

  6. added
    engineflutter/engine related. See also e: labels.
    e: impellerImpeller rendering backend issues and features requests
    platform-androidAndroid applications specifically
    and removed
    needs repro infoAutomated crash report whose cause isn't yet known
    on Jun 5, 2026
  7. added
    P2Important issues not at the top of the work list
    on Jun 8, 2026
  8. added a commit that references this issue on Jun 9, 2026
    5177105
  9. added a commit that references this issue on Jun 26, 2026
    f830307
  10. github-actions commented on Jul 14, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions