Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Feb 14, 2022

Fixes flutter/flutter#85471
Fixes flutter/flutter#98434

xref b/217635834

@dnfield dnfield requested review from flar, yjbanov and zanderso February 14, 2022 19:02
@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Feb 14, 2022
Comment on lines +26 to +33
if (assertsEnabled) {
expect(
() => builder.addPicture(Offset.zero, picture),
throwsA(isInstanceOf<AssertionError>()),
);
} else {
builder.addPicture(Offset.zero, picture);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the changes in scene_builder.cc, this code will cause a segfault.

@dnfield
Copy link
Contributor Author

dnfield commented Feb 14, 2022

@godofredoc looks like the recipe or ciyaml is out of whack here?

@dnfield
Copy link
Contributor Author

dnfield commented Feb 14, 2022

I thought I had merged to head and hadn't I guess. That's likely the problem.

Copy link
Contributor

@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dnfield dnfield added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Feb 15, 2022
@fluttergithubbot fluttergithubbot merged commit a484f4d into flutter:main Feb 15, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2022
@dnfield dnfield deleted the add_disposed_pic branch February 15, 2022 05:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-web Code specifically for the web engine waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SceneBuilder.addPicture will cause a segfault if handed a disposed picture. Add debugDisposed to ui.Picture

3 participants