-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
iOS Impeller-only crash with BackdropFilter+blank PlatformView #124612
Comments
cc @chinmaygarde It turns out users rely on |
Resolves flutter/flutter#124612. Doing this would also allow us to remove the final blit on iOS when advanced blends/backdrop filters are present (all of the facilities would remain in place for GLES + Vulkan though).
Resolves flutter/flutter#124612. Doing this would also allow us to remove the final blit on iOS when advanced blends/backdrop filters are present (all of the facilities would remain in place for GLES + Vulkan though).
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 |
Resolves flutter/flutter#124612. Doing this would also allow us to remove the final blit on iOS when advanced blends/backdrop filters are present (all of the facilities would remain in place for GLES + Vulkan though). (cherry picked from commit ef089a6)
I found a crash on flutter 3.10.0-3.0.pre.31 which only occurs when rendering using Impeller.
It comes from using the package
native_drag_n_drop: ^0.0.5
which creates a "blank" platform view (only thing set is thebackgroundColor = UIColor.clear
, and it's used to add a drag-and-drop interaction.https://github.com/alexrabin/FlutterNativeDragAndDrop/blob/main/ios/Classes/SwiftNativeDragNDropPlugin.swift
When putting a BackdropFilter on top, the program crashes instantly with an Metal exception.
Code sample
The error is as follows:
I ran with a local engine where I changed
IOSSurfaceMetalImpeller::GetCAMetalLayer
to always setlayer.framebufferOnly = NO
, and the crash doesn't happen. But I don't know anything about Impeller - not sure if that is a correct fix, or rather the invalid operation (blit) should not be attempted on such a layer.Engine backtrace
To explain the bottom stack frames, this is running on M1 mac, not an actual iOS device.
The text was updated successfully, but these errors were encountered: