Repository navigation
Description
Using the new Impeller interop toolkit, and I've run into a fairly elusive issue that causes path fills to not be drawn when they should.
The issue seems to involve interactions between transforms, clip regions, and the DisplayListBuilder save stack. After adding lots of logging, I've reduced the issue down to a fairly simple example: https://gist.github.com/lyceel/de6d80caffb3c209d3dadbdfd10447de
With the code as it is, the path is not filled at all:
If either the rounded rectangle's transform (Option 1 comment), or the unused clip (Option 2) are commented out, the path is filled properly with red:
I recognize that the simple solution would be to remove the useless save/clip/restore block in the middle, but this is much more difficult to prevent in the real-world use case where this issue was discovered.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone


Activity
jason-simmons commentedon Oct 31, 2024
This issue started with the switch to the experimental canvas.
Possibly this is similar to the issue seen in #153504?
chinmaygarde commentedon Oct 31, 2024
Thanks for the breadcrumb. I'll compare different backends and attempt a fix if thats the case.
jason-simmons commentedon Oct 31, 2024
Converted the example to a
DisplayListBuilderbased test case:https://gist.github.com/jason-simmons/f9e450e3f8379a14a1de7381299e16c8
Using this, the issue reproduces on the GLES back end but not Metal.
chinmaygarde commentedon Oct 31, 2024
The intersect clip prep call seems to be doing some funky stuff to the depth buffer on OpenGL. The Metal backend comparison is

chinmaygarde commentedon Nov 1, 2024
This will be fixed in flutter-team-archive/engine#56310
jonahwilliams commentedon Nov 1, 2024
Fixed in flutter-team-archive/engine#56310
[Impeller] Avoid errors due to triangle fans usage on Molten.
lyceel commentedon Nov 1, 2024
Thanks for the quick turnaround!
[Impeller] Avoid errors due to triangle fans usage on Molten.
[Impeller] Avoid errors due to triangle fans usage on Molten. (#56321)
github-actions commentedon Nov 18, 2024
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
flutter doctor -vand a minimal reproduction of the issue.