Skip to content

[Impeller] Compiler crashes when program contains interface blocks when targeting SkSL. #114550

@jonahwilliams

Description

@jonahwilliams
uniform Data {
  vec4 color;
} data;

out vec4 fragColor;

void main() {
   fragColor = data.color;
}

Errors:

COMPILE: [/Users/jonahwilliams/flutter/bin/cache/artifacts/engine/darwin-x64/impellerc, --sksl, --iplr, --sl=/Users/jonahwilliams/flutter/examples/hello_world/build/macos/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/shaders/hello.glsl, --spirv=/Users/jonahwilliams/flutter/examples/hello_world/build/macos/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/shaders/hello.glsl.spirv, --input=/Users/jonahwilliams/flutter/examples/hello_world/shaders/hello.glsl, --input-type=frag, --include=/Users/jonahwilliams/flutter/examples/hello_world/shaders]
COMPILE: [/Users/jonahwilliams/flutter/bin/cache/artifacts/engine/darwin-x64/impellerc, --sksl, --iplr, --sl=/Users/jonahwilliams/flutter/examples/hello_world/build/macos/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/shaders/ink_sparkle.frag, --spirv=/Users/jonahwilliams/flutter/examples/hello_world/build/macos/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/shaders/ink_sparkle.frag.spirv, --input=/Users/jonahwilliams/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag, --input-type=frag, --include=/Users/jonahwilliams/flutter/packages/flutter/lib/src/material/shaders]
[ERROR:flutter/fml/backtrace.cc(108)] Caught signal SIGABRT during program execution.
Frame 0: 0x100e44d70 std::_LIBCPP_ABI_NAMESPACE::__shared_ptr_emplace<>::~__shared_ptr_emplace()
Frame 1: 0x100e4c694 impeller::compiler::CompilerSkSL::detect_unsupported_resources()
Frame 2: 0x100e4b2a4 impeller::compiler::CompilerSkSL::emit_resources()
Frame 3: 0x100e4ac10 impeller::compiler::CompilerSkSL::compile()
Frame 4: 0x100e07f98 impeller::compiler::Compiler::Compiler()
Frame 5: 0x100e04fd4 impeller::compiler::Main()
Frame 6: 0x100e06380 main
Frame 7: 0x10224108c start


Target debug_macos_bundle_flutter_assets failed: ShaderCompilerException: Shader compilation of "/Users/jonahwilliams/flutter/examples/hello_world/shaders/hello.glsl" to "/Users/jonahwilliams/flutter/examples/hello_world/build/macos/Build/Products/Debug/App.framework/Versions/A/Resources/flutter_assets/shaders/hello.glsl" failed with exit code -6.
impellerc stdout:

impellerc stderr:
[ERROR:flutter/fml/backtrace.cc(108)] Caught signal SIGABRT during program execution.
Frame 0: 0x100e44d70 std::_LIBCPP_ABI_NAMESPACE::__shared_ptr_emplace<>::~__shared_ptr_emplace()
Frame 1: 0x100e4c694 impeller::compiler::CompilerSkSL::detect_unsupported_resources()
Frame 2: 0x100e4b2a4 impeller::compiler::CompilerSkSL::emit_resources()
Frame 3: 0x100e4ac10 impeller::compiler::CompilerSkSL::compile()
Frame 4: 0x100e07f98 impeller::compiler::Compiler::Compiler()
Frame 5: 0x100e04fd4 impeller::compiler::Main()
Frame 6: 0x100e06380 main

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions