Skip to content

"Could not open file for bundled shader "UnlitVertex"" building inside src/flutter #140969

@selfisekai

Description

@selfisekai

on main (f539acfb8c5a07b6317bdfdc22588cc1ed125ae7):

FAILED: gen/flutter/impeller/fixtures/playground.shaderbundle 
vpython3 ../../../build/gn_run_binary.py impellerc --include=/home/runner/work/engine/engine/src/flutter/impeller/compiler/shader_lib --runtime-stage-metal --sl=gen/flutter/impeller/fixtures/playground.shaderbundle --shader-bundle=\{\"UnlitFragment\":\ \{\"type\":\ \"fragment\",\ \"file\":\ \"../../flutter/impeller/fixtures/flutter_gpu_unlit.frag\"\},\ \"UnlitVertex\":\ \{\"type\":\ \"vertex\",\ \"file\":\ \"../../flutter/impeller/fixtures/flutter_gpu_unlit.vert\"\},\ \"TextureFragment\":\ \{\"type\":\ \"fragment\",\ \"file\":\ \"../../flutter/impeller/fixtures/flutter_gpu_texture.frag\"\},\ \"TextureVertex\":\ \{\"type\":\ \"vertex\",\ \"file\":\ \"../../flutter/impeller/fixtures/flutter_gpu_texture.vert\"\}\}
Could not open file for bundled shader "UnlitVertex".

this appears when compilation is done inside src/flutter, and not src (buildroot), which otherwise works. this was my fix so far (Not A Contribution):

-          cd src/flutter
-          python3 ./tools/gn \
+          cd src
+          python3 ./flutter/tools/gn \
             --out-dir "$PWD" \
             --no-goma \
             --clang \
             --no-backtrace \
             --no-stripped \
             --prebuilt-dart-sdk \
             --unoptimized \
             --gn-args 'ccache_bin="sccache" use_ccache=true' \
             --runtime-mode=debug
-          ./third_party/ninja/ninja -C "$PWD/out/host_debug_unopt"
+          ./flutter/third_party/ninja/ninja -C "$PWD/out/host_debug_unopt"

Metadata

Metadata

Assignees

No one assigned

    Labels

    e: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions