-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Impeller] fix NPE caused by implicit sk_sp to fml::Status conversion. #53177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
} | ||
|
||
switch (format) { | ||
case kPNG: { | ||
auto png_image = SkPngEncoder::Encode(nullptr, raster_image.get(), {}); | ||
|
||
if (png_image == nullptr) { | ||
FML_LOG(ERROR) << "Could not convert raster image to PNG."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, do we want to maintain these logs somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These strings get returned to the dart:ui layer and printed there as an error.
…149623) flutter/engine@ea72558...60a7bb2 2024-06-03 [email protected] [Impeller] fix NPE caused by implicit sk_sp to fml::Status conversion. (flutter/engine#53177) 2024-06-03 [email protected] Migrate off deprecated GrVkBackendContext fields (flutter/engine#53122) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
nullptr is converted to fml::Status::OK(nullptr), which we don't null check. Change this to consistently use fml::Status
Discovered in flutter/flutter#148851