Repository: flutter
Issue: [Impeller] error running Emulator binary 35.3.11.0 on Linux host.
Labels: P3,e: impeller,team-engine,triaged-engine

### Steps to reproduce

Upgrading flutter and everything (dart, android tools and images, IDE, ide plugins, building new emulator AVDs, etc) else from a 4mo old working setup.

now builds fail (even on a newly created project) with:

> `E/flutter ( 3868): [ERROR:flutter/impeller/renderer/backend/vulkan/allocator_vk.cc(522)] Break on 'ImpellerValidationBreak' to inspect point of failure: Unable to allocate a device buffer: ErrorFeatureNotPresent`


### Expected results

Run newly created application on emulator

### Actual results

I can see the application open (white screen, flutter logo on center) and then immediately close.

### Code sample

<details open><summary>Code sample</summary>


(literally the sample code from a new project)
```dart
import 'package:flutter/material.dart';

import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
 runApp(const MyApp());
}
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // TRY THIS: Try running your application with "flutter run". You'll see
        // the application has a purple toolbar. Then, without quitting the app,
        // try changing the seedColor in the colorScheme below to Colors.green
        // and then invoke "hot reload" (save your changes or press the "hot
        // reload" button in a Flutter-supported IDE, or press "r" if you used
        // the command line to start the app).
        //
        // Notice that the counter didn't reset back to zero; the application
        // state is not lost during the reload. To reset the state, use hot
        // restart instead.
        //
        // This works for code too, not just values: Most code changes can be
        // tested with just a hot reload.
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // TRY THIS: Try changing the color here to a specific color (to
        // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
        // change color while the other colors stay the same.
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          //
          // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
          // action in the IDE, or press "p" in the console), to see the
          // wireframe for each widget.
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

https://github.com/user-attachments/assets/4b2dd36e-2df3-46a6-8fcc-97b8a76f331b

</details>


### Logs

<details open><summary>Logs</summary>

```console
Launching lib/main.dart on sdk gphone16k x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk
Installing build/app/outputs/flutter-apk/app-debug.apk...
I/flutter ( 3868): [IMPORTANT:flutter/shell/platform/android/android_context_vk_impeller.cc(60)] Using the Impeller rendering backend (Vulkan).
E/flutter ( 3868): [ERROR:flutter/impeller/renderer/backend/vulkan/allocator_vk.cc(522)] Break on 'ImpellerValidationBreak' to inspect point of failure: Unable to allocate a device buffer: ErrorFeatureNotPresent
F/flutter ( 3868): [FATAL:flutter/impeller/core/host_buffer.cc(33)] Check failed: device_buffer. Failed to allocate device buffer.
Error connecting to the service protocol: failed to connect to http://127.0.0.1:34567/GVyrjALKCqY=/ DartDevelopmentServiceException: WebSocketChannelException: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:34567/GVyrjALKCqY=/ws
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
$ flutter doctor -v
[✓] Flutter (Channel stable, 3.27.2, on Arch Linux 6.12.9-arch1-1, locale en_US.UTF-8)
     Flutter version 3.27.2 on channel stable at /opt/flutter
     Upstream repository https://github.com/flutter/flutter.git
     Framework revision 68415ad1d9 (2 days ago), 2025-01-13 10:22:03 -0800
     Engine revision e672b006cb
     Dart version 3.6.1
     DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
     Android SDK at /home/gcb/Android/Sdk
     Platform android-35, build-tools 35.0.0
     Java binary at: /home/gcb/JAVA_HOME/bin/java
     Java version OpenJDK Runtime Environment (build 21.0.5+11)
     All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✗] Linux toolchain - develop for Linux desktop
     clang version 19.1.6
    ✗ CMake is required for Linux development.
      It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded
      from https://cmake.org/download/
    ✗ ninja is required for Linux development.
      It is likely available from your distribution (e.g.: apt install ninja-build), or can be
      downloaded from https://github.com/ninja-build/ninja/releases
     pkg-config version 2.3.0

[!] Android Studio (not installed)
     Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2024.3)
     IntelliJ at /usr/share/idea
     Flutter plugin version 83.0.4
     Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] Connected device (2 available)
     sdk gphone16k x86 64 (mobile)  emulator-5554  android-x64  Android 15 (API 35) (emulator)
     Linux (desktop)                linux          linux-x64    Arch Linux 6.12.9-arch1-1

[✓] Network resources
     All expected network resources are available
```
(Some doctor check for intellij plugin is broken. This seat does have the dart plugin)

</details>