-
Notifications
You must be signed in to change notification settings - Fork 27.2k
-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter_tools] ShaderCompilerException running impellerc on arm64 platforms #116703
Comments
Hello @jrstrick. Can you confirm if this issue is still reproducible on master? |
I can confirm that it is still reproducible on master, yes. The workaround also still works. |
Hey @jrstrick! logstahatesser@raspberrypi:~/Code/hello $ ../flutter/bin/flutter run -d linux
Downloading linux-arm64/linux-arm64-flutter-gtk tools... 8.5s
Downloading linux-arm64-profile/linux-arm64-flutter-gtk tools... 6.0s
Downloading \-arm64-release/linux-arm64-flutter-gtk tools... 5.2s
Launching lib/main.dart on Linux in debug mode...
ERROR: Compilation to SkSL failed.
/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag: warning: (version, profile) forced to be (460, core), while in source code it is (320, es)
/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:9: error: '#include' : Included file not found. for header name: flutter/runtime_effect.glsl
/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: 'FlutterFragCoord' : no matching overloaded function found
/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: '=' : cannot convert from ' const float' to ' temp 2-component vector of float'
ERROR: Target debug_bundle_linux-arm64_assets failed: ShaderCompilerException: Shader compilation of "/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag" to "/home/tahatesser/Code/hello/build/flutter_assets/shaders/ink_sparkle.frag" failed with exit code 1.
/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag: warning: (version, profile) forced to be (460, core), while in source code it is (320, es)
/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:9: error: '#include' : Included file not found. for header name: flutter/runtime_effect.glsl
/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: 'FlutterFragCoord' : no matching overloaded function found
/home/tahatesser/Code/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: '=' : cannot convert from ' const float' to ' temp 2-component vector of float'
Building Linux application...
Exception: Build process failed flutter doctor -vtahatesser@raspberrypi:~/Code $ flutter/bin/flutter doctor -v
[!] Flutter (Channel master, 3.7.0-9.0.pre.11, on Debian GNU/Linux 11 (bullseye) 5.15.76-v8+, locale en_US.UTF-8)
• Flutter version 3.7.0-9.0.pre.11 on channel master at /home/tahatesser/Code/flutter
! The flutter binary is not on your path. Consider adding /home/tahatesser/Code/flutter/bin to your path.
! The dart binary is not on your path. Consider adding /home/tahatesser/Code/flutter/bin to your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision dbc9306380 (2 hours ago), 2022-12-14 13:53:20 -0800
• Engine revision 0a6a4a58f4
• Dart version 3.0.0 (build 3.0.0-21.0.dev)
• DevTools version 2.20.0
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update
checks and upgrades.
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✗] 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
• Debian clang version 11.0.1-2
• cmake version 3.18.4
• ninja version 1.10.1
• pkg-config version 0.29.2
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-arm64 • Debian GNU/Linux 11 (bullseye) 5.15.76-v8+
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 4 categories. |
We added shader lib to ARM host builds on https://flutter-review.git.corp.google.com/c/recipes/+/36921. Can we try this again on ToT to see if this issue is resolved? |
Not OP and not sure if the fix has landed on master, but having same issue on latest master ( Created counter app using Logs[ +45 ms] Unable to locate an Android SDK.
[ +35 ms] executing: uname -m
[ +10 ms] Exit code 0 from: uname -m
[ ] aarch64
[ +3 ms] executing: [/home/pi/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +12 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 1220245b330c94ec573d9f4801e93c5c72908f4f
[ ] executing: [/home/pi/development/flutter/] git tag --points-at 1220245b330c94ec573d9f4801e93c5c72908f4f
[ +37 ms] Exit code 0 from: git tag --points-at 1220245b330c94ec573d9f4801e93c5c72908f4f
[ +5 ms] executing: [/home/pi/development/flutter/] git describe --match *.*.* --long --tags 1220245b330c94ec573d9f4801e93c5c72908f4f
[ +46 ms] Exit code 0 from: git describe --match *.*.* --long --tags 1220245b330c94ec573d9f4801e93c5c72908f4f
[ ] 3.7.0-20.0.pre-42-g1220245b33
[ +39 ms] executing: [/home/pi/development/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[ +12 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[ ] origin/master
[ ] executing: [/home/pi/development/flutter/] git ls-remote --get-url origin
[ +11 ms] Exit code 0 from: git ls-remote --get-url origin
[ +4 ms] https://github.com/flutter/flutter.git
[ +62 ms] executing: [/home/pi/development/flutter/] git rev-parse --abbrev-ref HEAD
[ +16 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] master
[ +73 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +11 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +361 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +34 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +7 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +441 ms] Skipping pub get: version match.
[ +556 ms] Initializing file store
[ +29 ms] Skipping target: gen_localizations
[ +21 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
/home/pi/projects/my_app/.dart_tool/package_config_subset}
[ +125 ms] gen_dart_plugin_registrant: Complete
[ +3 ms] Skipping target: _composite
[ +6 ms] complete
[ +20 ms] Launching lib/main.dart on Linux in debug mode...
[ +11 ms] /home/pi/development/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/pi/development/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root
/home/pi/development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.RFZNPA/flutter_tool.PSCHRM/app.dill --packages
/home/pi/projects/my_app/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --verbosity=error
--flutter-widget-cache --enable-experiment=alternative-invalidation-strategy
[ +86 ms] Building Linux application...
[ +73 ms] <- compile package:my_app/main.dart
[ +12 ms] executing: [build/linux/arm64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-arm64
/home/pi/projects/my_app/linux
[ +185 ms] -- Configuring done
[ +2 ms] -- Generating done
[ +19 ms] -- Build files have been written to: /home/pi/projects/my_app/build/linux/arm64/debug
[ +26 ms] executing: ninja -C build/linux/arm64/debug install
[ +27 ms] ninja: Entering directory `build/linux/arm64/debug'
[+12308 ms] [1/6] Generating /home/pi/projects/my_app/linux/flutter/ephemeral/libflutter_linux_gtk.so,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_engine.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_method_response.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_view.h,
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[ +40 ms] FAILED: /home/pi/projects/my_app/linux/flutter/ephemeral/libflutter_linux_gtk.so
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_engine.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_method_call.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_method_response.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_value.h /home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/fl_view.h
/home/pi/projects/my_app/linux/flutter/ephemeral/flutter_linux/flutter_linux.h flutter/_phony_
[ +9 ms] cd /home/pi/projects/my_app/build/linux/arm64/debug/flutter && /usr/bin/cmake -E env FLUTTER_ROOT=/home/pi/development/flutter
PROJECT_DIR=/home/pi/projects/my_app DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== DART_OBFUSCATION=false TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=false PACKAGE_CONFIG=/home/pi/projects/my_app/.dart_tool/package_config.json FLUTTER_TARGET=/home/pi/projects/my_app/lib/main.dart
/home/pi/development/flutter/packages/flutter_tools/bin/tool_backend.sh linux-arm64 Debug
[ +3 ms] [ +73 ms] Unable to locate an Android SDK.
[ ] [ +78 ms] executing: uname -m
[ ] [ +22 ms] Exit code 0 from: uname -m
[ +1 ms] [ +1 ms] aarch64
[ ] [ +5 ms] executing: [/home/pi/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] [ +16 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] [ +1 ms] 1220245b330c94ec573d9f4801e93c5c72908f4f
[ +1 ms] [ +1 ms] executing: [/home/pi/development/flutter/] git tag --points-at 1220245b330c94ec573d9f4801e93c5c72908f4f
[ ] [ +46 ms] Exit code 0 from: git tag --points-at 1220245b330c94ec573d9f4801e93c5c72908f4f
[ +1 ms] [ +6 ms] executing: [/home/pi/development/flutter/] git describe --match *.*.* --long --tags 1220245b330c94ec573d9f4801e93c5c72908f4f
[ ] [ +52 ms] Exit code 0 from: git describe --match *.*.* --long --tags 1220245b330c94ec573d9f4801e93c5c72908f4f
[ +1 ms] [ +1 ms] 3.7.0-20.0.pre-42-g1220245b33
[ ] [ +82 ms] executing: [/home/pi/development/flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +14 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] [ +1 ms] master
[ +1 ms] [ +96 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] [ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +1 ms] [ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +2 ms] [ +19 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] [ +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ +1 ms] [ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] [ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +1 ms] [ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +1 ms] [ +718 ms] executing: [/home/pi/development/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[ +1 ms] [ +17 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[ +1 ms] [ ] origin/master
[ +2 ms] [ +1 ms] executing: [/home/pi/development/flutter/] git ls-remote --get-url origin
[ ] [ +13 ms] Exit code 0 from: git ls-remote --get-url origin
[ +1 ms] [ ] https://github.com/flutter/flutter.git
[ +1 ms] [ +3 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +3 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +1 ms] [ +6 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +1 ms] [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +1 ms] [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ ] [ +219 ms] Initializing file store
[ +1 ms] [ +51 ms] Done initializing file store
[ ] [ +170 ms] Skipping target: gen_localizations
[ ] [ +56 ms] Skipping target: gen_dart_plugin_registrant
[ +2 ms] [+1931 ms] Skipping target: unpack_linux
[ +1 ms] [+1584 ms] Skipping target: kernel_snapshot
[ +1 ms] [ +11 ms] debug_bundle_linux-arm64_assets: Starting due to {}
[ +3 ms] [ +668 ms] shaderc command: [/home/pi/development/flutter/bin/cache/artifacts/engine/linux-arm64/impellerc, --sksl, --iplr,
--sl=/home/pi/projects/my_app/build/flutter_assets/shaders/ink_sparkle.frag,
--spirv=/home/pi/projects/my_app/build/flutter_assets/shaders/ink_sparkle.frag.spirv,
--input=/home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag, --input-type=frag, --remap-samplers,
--include=/home/pi/development/flutter/packages/flutter/lib/src/material/shaders,
--include=/home/pi/development/flutter/bin/cache/artifacts/engine/linux-arm64/shader_lib]
[ +4 ms] [ +583 ms] Compilation to SkSL failed.
[ +1 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag: GLSL to SPIRV failed; Compilation
error. 3 error(s) and 1 warning(s).
[ +6 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag: warning: (version, profile) forced to
be (460, core), while in source code it is (320, es)
[ +18 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:9: error: '#include' : Included file
not found. for header name: flutter/runtime_effect.glsl
[ +2 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: 'FlutterFragCoord' : no
matching overloaded function found
[ +2 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: '=' : cannot convert from
' const float' to ' temp 2-component vector of float'
[ +3 ms] [ +13 ms] Persisting file store
[ +1 ms] [ +35 ms] Done persisting file store
[ +2 ms] [ +21 ms] Target debug_bundle_linux-arm64_assets failed: ShaderCompilerException: Shader compilation of
"/home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag" to
"/home/pi/projects/my_app/build/flutter_assets/shaders/ink_sparkle.frag" failed with exit code 1.
[ +3 ms] impellerc stdout:
[ +1 ms] impellerc stderr:
[ +1 ms] Compilation to SkSL failed.
[ +1 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag: GLSL to SPIRV failed; Compilation
error. 3 error(s) and 1 warning(s).
[ +7 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag: warning: (version, profile) forced to
be (460, core), while in source code it is (320, es)
[ +2 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:9: error: '#include' : Included file
not found. for header name: flutter/runtime_effect.glsl
[ +2 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: 'FlutterFragCoord' : no
matching overloaded function found
[ +3 ms] /home/pi/development/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag:93: error: '=' : cannot convert from
' const float' to ' temp 2-component vector of float'
[ +2 ms] #0 ShaderCompiler.compileShader (package:flutter_tools/src/build_system/targets/shader_compiler.dart:202:9)
[ ] <asynchronous suspension>
[ +14 ms] #1 copyAssets.<anonymous closure> (package:flutter_tools/src/build_system/targets/assets.dart:134:25)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #2 Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
[ +1 ms] <asynchronous suspension>
[ +2 ms] #3 copyAssets (package:flutter_tools/src/build_system/targets/assets.dart:105:3)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #4 BundleLinuxAssets.build (package:flutter_tools/src/build_system/targets/linux.dart:141:29)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #5 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:847:9)
[ ] <asynchronous suspension>
[ +1 ms] #6 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:614:16)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #7 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:334:32)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #8 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1275:27)
[ ] <asynchronous suspension>
[ +2 ms] #9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #10 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[ +1 ms] <asynchronous suspension>
[ +2 ms] #11 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:290:9)
[ +6 ms] <asynchronous suspension>
[ +1 ms] #12 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[ ] <asynchronous suspension>
[ +1 ms] #13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #14 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #15 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[ ] <asynchronous suspension>
[ ] #16 main (package:flutter_tools/executable.dart:91:3)
[ +1 ms] <asynchronous suspension>
[ +1 ms] [ +59 ms] "flutter assemble" took 6,283ms.
[ +1 ms] [ +17 ms]
[ +1 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
[ +1 ms] #1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:351:7)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1275:27)
[ +5 ms] <asynchronous suspension>
[ +1 ms] #3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[ ] <asynchronous suspension>
[ +1 ms] #4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[ +2 ms] <asynchronous suspension>
[ +1 ms] #5 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:290:9)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[ ] <asynchronous suspension>
[ +1 ms] #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
[ ] <asynchronous suspension>
[ +1 ms] #8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
[ +2 ms] <asynchronous suspension>
[ +1 ms] #9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #10 main (package:flutter_tools/executable.dart:91:3)
[ +1 ms] <asynchronous suspension>
[ +1 ms] [ +20 ms] ensureAnalyticsSent: 16ms
[ +1 ms] [ ] Running 0 shutdown hooks
[ +2 ms] [ ] Shutdown hooks complete
[ +1 ms] [ +1 ms] exiting with code 1
[ +1 ms] ninja: build stopped: subcommand failed.
[ +56 ms] Building Linux application... (completed in 13.0s)
[+52096 ms] Exception: Build process failed
[ +24 ms] "flutter run" took 66,973ms.
[ +17 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:722:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1275:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:290:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
[ +14 ms] ensureAnalyticsSent: 10ms
[ ] Running 1 shutdown hook
[ +22 ms] Shutdown hooks complete
[ ] exiting with code 1 flutter doctor -v
|
Removing the waiting label as the issue is confirmed on the master channel in the above comment. |
I am the original poster, and I can also confirm it's still present in the latest master. |
I did find a workaround before spilling water on to my Pi4 and ruining it.
|
The stable was just bumped to ver 3.7 which currently presents the shader compilation issue. Since the last version that worked was 3.3.10, the above method of checking out stable and back to master will no longer work. Modified workaround from above: Step 2: Replace I have tested it on NVIDIA Jetson Nano |
I can confirm trying to build a simple app on Linux ARM with Flutter 3.7 (either However, workaround of copying The following is a script to install, patch and run a test build on ARM that works:
Hope that helps someone looking for a solution. An official fix of this issue would be greatly appreciated. |
On the new 3.7.0 stable, there are a lot of instances of this on ARM macOS, but with the process exiting with -9 (I think means SIGKILL). |
cc @andrewkolos one thing to check would be verify the binary is codesigned and notarized, you can use this tool: https://github.com/flutter/cocoon/blob/main/codesign/bin/verify.dart |
Flutter crash report. commandflutter run -d chrome exceptionShaderCompilerException: ShaderCompilerException: Shader compilation of "/home/charliepi/snap/flutter/common/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag" to "build/flutter_assets/shaders/ink_sparkle.frag" failed with exit code 1. impellerc stderr:
flutter doctor
|
#115433 and #114214 may also be relevant. this issue was corrected in #115433 with this artifact: https://flutter-review.git.corp.google.com/c/recipes/+/36921 |
That's really works, thx |
Yes, this tracking the issue affecting arm64 hosts. |
With this bug being 2+ month old now could someone from the flutter team please give use a status update as to what you have found the problem to be, and what the plan is going forward?. Thanks |
|
Are the shaders in question not attempted to be built on arm64? or do they fail to build on arm64? If the code to compile them is x86_64 specific, is cross-compilation an option? I.e. use x86_64 cross-build on arm64 platform to get those shaders built? |
Failing due to flutter/flutter#116703
It fixes the error of the missing 'shader_lib', but it still does not work for building an Android APK. I am still getting this error:
|
I think this issue has been fixed. I confirmed flutter-v3.10.2 worked fine on jetson orin board. |
The underlying issue ended up getting tracked and fixed here: #122346. The |
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 |
Steps to Reproduce
Compilation to SkSL fails compiling ink_sparkle.frag due to the shader_lib directory being missing from
/home/pi/temp/flutter/bin/cache/artifacts/engine/linux-arm64
The workaround is to copy shader_lib from an x64 install of Flutter.
I should note that I have my pi set up with the vulkan drivers, and that with the shader_lib directory in the right place, everything seems to work nicely.
Logs
logs
The text was updated successfully, but these errors were encountered: