-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.flutter-gpur: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Description
Steps to reproduce
- Check out https://github.com/flutter/codelabs
- Change directory to
codelabs/intro_flutter_gpu/step_11 - Attempt to run the tests with
flutter test - Get told to add
--enable-flutter-gpu - Try
flutter --enable-flutter-gpu testand get errors.
Expected results
I'd expect tests for Flutter GPU apps to work.
Actual results
$ flutter test
00:01 +0: smoke test
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following _Exception was thrown during paint():
Exception: Flutter GPU must be enabled via the Flutter GPU manifest setting. This can be done either
via command line argument --enable-flutter-gpu or by adding the FLTEnableFlutterGPU key set to true
on iOS or io.flutter.embedding.android.EnableFlutterGPU metadata key to true on Android.
The relevant error-causing widget was:
CustomPaint
CustomPaint:file:///Users/brettmorgan/Documents/GitHub/codelabs/intro_flutter_gpu/step_11/lib/main.dart:56:22
When the exception was thrown, this was the stack:
#0 new GpuContext._createDefault (package:flutter_gpu/src/context.dart:18:7)
#1 gpuContext (package:flutter_gpu/src/context.dart:187:42)
#2 gpuContext (package:flutter_gpu/src/context.dart)
#3 TrianglePainter.paint (package:intro_flutter_gpu/main.dart:73:25)
[...]
$ flutter --enable-flutter-gpu test
Could not find an option named "--enable-flutter-gpu".
Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
$ flutter test --enable-flutter-gpu
Could not find an option named "--enable-flutter-gpu".
Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.Code sample
See https://github.com/domesticmouse/codelabs/tree/main/intro_flutter_gpu for a series of FlutterGPU tests that don't work.
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
$ flutter doctor -v
[✓] Flutter (Channel master, 3.33.0-1.0.pre.747, on macOS 15.5 24F74 darwin-arm64, locale en) [2.4s]
• Flutter version 3.33.0-1.0.pre.747 on channel master at /Users/brettmorgan/flutter
• Upstream repository https://github.com/flutter/flutter
• Framework revision f346592ade (3 hours ago), 2025-06-29 18:43:26 -0400
• Engine revision f346592ade
• Dart version 3.9.0 (build 3.9.0-289.0.dev)
• DevTools version 2.48.0-dev.0
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [2.9s]
• Android SDK at /Users/brettmorgan/Library/Android/sdk
• Emulator version 35.5.10.0 (build_id 13402964) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [1,113ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16F6
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [94ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2) [93ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
[✓] IntelliJ IDEA Community Edition (version 2024.2.4) [92ms]
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 82.1.3
• Dart plugin version 242.22855.32
[✓] VS Code (version 1.101.1) [10ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.112.0
[✓] Connected device (2 available) [6.0s]
• macOS (desktop) • macos • darwin-arm64 • macOS 15.5 24F74 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 138.0.7204.50
[✓] Network resources [1,409ms]
• All expected network resources are available.
• No issues found!smit-aismit-ai
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.flutter-gpur: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Type
Projects
Status
✅ Done