-
Notifications
You must be signed in to change notification settings - Fork 6k
[ios] Fix testDeallocated failing locally. #45663
[ios] Fix testDeallocated failing locally. #45663
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.
Approval since it demonstrably works. I have some concerns that the issue is another thread that has a retain on the engine, not the autorelease pool.
- (void)testDeallocated { | ||
__weak FlutterEngine* weakEngine = nil; | ||
{ | ||
@autoreleasepool { |
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.
Were you able to track down how the engine is getting onto the autorelease pool?
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.
No. I'm not sure how to do that.
I have some concerns that the issue is another thread that has a retain on the engine
In what situation could this happen?
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 only happening when running the test locally tho, ci never failed. So Im not sure what the difference is that caused the FlutterEngine getting onto the pool.
…ions) (#134589) Manual roll requested by [email protected] flutter/engine@496ef6a...c90fadf 2023-09-12 [email protected] Manual roll Dart SDK from 43d4b1373788 to 1ee7ef8bbc65 (6 revisions) (flutter/engine#45726) 2023-09-12 [email protected] Reland "Build iOS unittest target in unopt builds" (#44356)"" (#45346)" (flutter/engine#45519) 2023-09-12 [email protected] Roll Skia from a4f8f5177c8b to 211d63b1e1f5 (2 revisions) (flutter/engine#45724) 2023-09-12 [email protected] Fix JS interop signatures to use only JS types. (flutter/engine#45668) 2023-09-12 [email protected] [ios] Fix testDeallocated failing locally. (flutter/engine#45663) 2023-09-12 [email protected] [iOS] move arm64 builds to arm machines (flutter/engine#45721) 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
…ions) (flutter#134589) Manual roll requested by [email protected] flutter/engine@496ef6a...c90fadf 2023-09-12 [email protected] Manual roll Dart SDK from 43d4b1373788 to 1ee7ef8bbc65 (6 revisions) (flutter/engine#45726) 2023-09-12 [email protected] Reland "Build iOS unittest target in unopt builds" (flutter#44356)"" (flutter#45346)" (flutter/engine#45519) 2023-09-12 [email protected] Roll Skia from a4f8f5177c8b to 211d63b1e1f5 (2 revisions) (flutter/engine#45724) 2023-09-12 [email protected] Fix JS interop signatures to use only JS types. (flutter/engine#45668) 2023-09-12 [email protected] [ios] Fix testDeallocated failing locally. (flutter/engine#45663) 2023-09-12 [email protected] [iOS] move arm64 builds to arm machines (flutter/engine#45721) 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
Moving the code block to autorelease pool to ensure the FlutterEngine is released in the test.
Fixes: flutter/flutter#134388
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.