Skip to content

Passing invalid shader asset to ui.FragmentProgram.fromAsset crashes application #108037

@jonahwilliams

Description

@jonahwilliams

Testing on my branch where I have not yet configured the shader compiler to conditionally emit SKSL, I receieved the following error on linux desktop:

[ERROR:flutter/impeller/base/validation.cc(27)] Impeller Runtime stage has invalid magic. Perhaps the stage information is for the incorrect backend or the data is corrupted?
[ERROR:flutter/impeller/base/validation.cc(38)] Break on ImpellerValidationBreak to inspect point of failure.
Lost connection to device.

We should make sure that we can throw a Dart exception or similar.

@zanderso

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions