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
[Web][CanvasKit] Web App crashes if using ImageFiltered. #144015
Labels
c: crash
Stack traces logged to the console
c: regression
It was better in the past than it is now
found in release: 3.16
Found to occur in 3.16
found in release: 3.19
Found to occur in 3.19
found in release: 3.20
Found to occur in 3.20
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
P2
Important issues not at the top of the work list
platform-web
Web applications specifically
r: fixed
Issue is closed as already fixed in a newer version
team-web
Owned by Web platform team
triaged-web
Triaged by Web platform team
Comments
Thanks for the report. I was able to replicate this on latest stable and master version along with stable 3.16.0 as well, but not on stable 3.13.0, wherein it renders properly. I'll label this as regression. stable, master flutter doctor -v
|
darshankawar
added
platform-web
Web applications specifically
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
found in release: 3.16
Found to occur in 3.16
found in release: 3.19
Found to occur in 3.19
found in release: 3.20
Found to occur in 3.20
c: regression
It was better in the past than it is now
c: crash
Stack traces logged to the console
team-web
Owned by Web platform team
and removed
in triage
Presently being triaged by the triage team
labels
Feb 26, 2024
Here's the line with the bad cast: https://github.com/flutter/engine/blob/b1e9854b5ef4531a4497eb108c60454c1423e6ae/lib/web_ui/lib/src/engine/canvaskit/layer.dart#L409 |
yjbanov
added
P2
Important issues not at the top of the work list
triaged-web
Triaged by Web platform team
labels
Feb 29, 2024
8 tasks
harryterkelsen
added a commit
to flutter/engine
that referenced
this issue
May 10, 2024
…ond child bounds (#52704) When a ColorFilter affects transparent black, it will expand its bounds to the entire screen, even if the `saveLayer` call is bounded. This applies a clip before applying the ColorFilter so the filter is bounded to just the child drawings. Also fixes bug with ColorFilter being used as an ImageFilter. Before: ![canvaskit_colorfilter_bounds_before](https://github.com/flutter/engine/assets/1961493/25394b40-c40d-44fb-9c78-9638a40d3329) After: ![canvaskit_colorfilter_bounds_after](https://github.com/flutter/engine/assets/1961493/b25e4084-ccae-4e41-b6e6-37e8cbbd9d54) Fixes flutter/flutter#88866 Fixes flutter/flutter#144015 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide] and the [C++, Objective-C, Java style guides]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I added new tests to check the change I am making or feature I am adding, or the PR is [test-exempt]. See [testing the engine] for instructions on writing and running engine tests. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I signed the [CLA]. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style [testing the engine]: https://github.com/flutter/flutter/wiki/Testing-the-engine [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat
darshankawar
added
the
r: fixed
Issue is closed as already fixed in a newer version
label
May 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
c: crash
Stack traces logged to the console
c: regression
It was better in the past than it is now
found in release: 3.16
Found to occur in 3.16
found in release: 3.19
Found to occur in 3.19
found in release: 3.20
Found to occur in 3.20
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
P2
Important issues not at the top of the work list
platform-web
Web applications specifically
r: fixed
Issue is closed as already fixed in a newer version
team-web
Owned by Web platform team
triaged-web
Triaged by Web platform team
Steps to reproduce
Use ImageFiltered with simple ColorFilter or ImageFilter.compose of two ColorFilter
Expected results
Should see the filtered child widget.
Actual results
App crashes. Throws
Error: TypeError: Instance of 'EngineColorFilter': type 'EngineColorFilter' is not a subtype of type 'CkManagedSkImageFilterConvertible'
in Chrome DevToolsCode sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Logs
Logs
Flutter Doctor output
I'm running under a separate branch of Flutter SDK but this bug can be reproduced in stable channel on DartPad, based on Dart SDK 3.3.0 and Flutter SDK 3.19.0.
The text was updated successfully, but these errors were encountered: