Repository navigation
[Impeller] .webp assets are broken on macOS. #136365
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- Flutter 3.13.6
- macOS Sonoma
Image.asset('assets/image.webp')
Expected results
Regular Image view with asset displayed
Actual results
Broken image widget
Code sample
Code sample
Image.asset('assets/image.webp')Screenshots or Video
Logs
Logs
[ERROR:flutter/shell/platform/embedder/embedder_external_texture_metal.mm(100)] Could not create external texture: 105553158460032
[ERROR:flutter/shell/platform/embedder/embedder_external_texture_metal.mm(100)] Could not create external texture: 105553158460032
[ERROR:flutter/shell/platform/embedder/embedder_external_texture_metal.mm(100)] Could not create external texture: 105553158460032
[ERROR:flutter/shell/platform/embedder/embedder_external_texture_metal.mm(100)] Could not create external texture: 105553158460032
embedder.cc (2691): 'FlutterEngineMarkExternalTextureFrameAvailable' returned 'kInternalInconsistency'. Could not mark the texture frame as being available.
2023-10-11 16:27:40.668 Konflikt[66554:659692] Unable to mark texture with id 105553158460032 as available.
Lost connection to device.
MediaKitEventLoopHandler::Register: std::thread exit: 140156038447120
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.6, on macOS 14.0 23A344 darwin-x64, locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for chäeMil’s iPad Pro. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
! Doctor found issues in 1 category.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Type
Projects
- StatusShow more project fields🖥️ Desktop

Activity
[-]`.webp` assets are broken on macOS with Impeller enabled[/-][+][Impeller] `.webp` assets are broken on macOS.[/+]chinmaygarde commentedon Oct 16, 2023
I thought we shipped the webp codec as part of the engine. So we should not depend on the host codec availability. Will investigate.
jason-simmons commentedon Oct 17, 2023
I was able to render an example WebP image from https://developers.google.com/speed/webp/gallery1 in a Flutter desktop app on macOS Sonoma with Impeller.
Is there a specific WebP asset that is failing to decode?
chaeMil commentedon Oct 18, 2023
For me its all
webpimages. But im compressing them with Squash mac app. Will try some example one too. But it should be solved since its working on iOS.chaeMil commentedon Oct 18, 2023
Update. Its all images with impeller. Tried the example
webp,jpgorpngI have 2019 Macbook Pro 16' with Intel and Radeon graphics. It happens on both of them when using Impeller. 🤷♂️
jason-simmons commentedon Oct 19, 2023
There was another report of this happening on an Intel Mac (#134399).
Previously we have seen issues with Impeller image codecs on simulators or virtualized environments that do not provide the Metal capabilities required by Impeller (see #126768). Possibly something like that may be happening on this platform?
[Impeller] use DeviceLocal textures for gifs on non-iOS devices. (#16…
Reverts "[Impeller] use DeviceLocal textures for gifs on non-iOS devi…
[Impeller] use device private on non-iOS devices. (#164601)
github-actions commentedon Mar 20, 2025
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 -vand a minimal reproduction of the issue.