This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Reland "[ios_platform_view] only recycle maskView when the view is applying mutators #42115" #42823
Merged
auto-submit
merged 2 commits into
flutter:main
from
cyanglaz:reland_platform_view_mask_view
Jun 13, 2023
Merged
Reland "[ios_platform_view] only recycle maskView when the view is applying mutators #42115" #42823
auto-submit
merged 2 commits into
flutter:main
from
cyanglaz:reland_platform_view_mask_view
Jun 13, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ew is applying mutators flutter#41573" (flutter#42231)" This reverts commit 2586cbe.
cyanglaz
commented
Jun 13, 2023
[maskView reset]; | ||
} | ||
self.availableIndex++; | ||
FlutterClippingMaskView* maskView = [[[self.pool anyObject] retain] autorelease]; |
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.
The retain] autorelease]
is the fix for the crash. [self.pool removeObject:maskView];
below makes the maskView ownerless, which sometimes caused the maskView to be released unwantedly.
@@ -1430,6 +1609,92 @@ class PlatformViewScrollingUnderWidget extends Scenario | |||
} | |||
} | |||
|
|||
/// Builds a scenario where many platform views with clips scrolling. | |||
class PlatformViewsWithClipsScrolling extends Scenario |
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.
This is the test added for the crash. It mimics the behavior of the benchmark test that originally caught the crash.
hellohuanlin
approved these changes
Jun 13, 2023
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Jun 14, 2023
…view is applying mutators flutter#42115" (flutter/engine#42823)
auto-submit bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Jun 14, 2023
…128841) flutter/engine@66a5761...727b441 2023-06-13 [email protected] Reland "[ios_platform_view] only recycle maskView when the view is applying mutators #42115" (flutter/engine#42823) 2023-06-13 [email protected] Roll Dart SDK from 41234fa4b22d to 2465228c0c21 (1 revision) (flutter/engine#42822) 2023-06-13 [email protected] [Impeller] Added cache for command buffers in vulkan (flutter/engine#42793) 2023-06-13 [email protected] setupDefultFontManager correctly clear out cache (flutter/engine#42178) 2023-06-13 [email protected] [Impeller] Reland attempt Vulkan setup and fallback to GLES. (flutter/engine#42820) 2023-06-13 [email protected] Added CI step for building with validation layers (flutter/engine#42724) 2023-06-13 [email protected] [Impeller] Null check for the device holder in the Vulkan context destructor (flutter/engine#42821) 2023-06-13 [email protected] Add missing includes (flutter/engine#42812) 2023-06-13 [email protected] Roll Dart SDK from 4dce1093ad94 to 41234fa4b22d (1 revision) (flutter/engine#42810) 2023-06-13 [email protected] [iOS][Keyboard] Wait vsync on UI thread and update viewport inset to avoid jitter. (flutter/engine#42312) 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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
cyanglaz
pushed a commit
to cyanglaz/engine
that referenced
this pull request
Jun 20, 2023
…plying mutators flutter#42115" (flutter#42823) Relands flutter#42115, which was reverted in flutter#42231 due to a crash in the framework test. The crash is due to a memory management issue that I fixed it in this PR, I also added a scenario test to catch the crash. fixes: flutter/flutter#125620 See also: orignal PR flutter#41573 for more details. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
8 tasks
auto-submit bot
pushed a commit
that referenced
this pull request
Jun 20, 2023
cp #42823. The PR fixes flutter/flutter#125620, which was a regression caused by #38989. We cannot simply revert #38989 because #38989 addressed a critical performance issue [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relands #42115, which was reverted in #42231 due to a crash in the framework test.
The crash is due to a memory management issue that I fixed it in this PR, I also added a scenario test to catch the crash.
fixes: flutter/flutter#125620
See also: orignal PR #41573 for more details.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.