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

Conversation

@gaaclarke
Copy link
Member

@gaaclarke gaaclarke commented Mar 12, 2021

This amends the fix from #24503, there was extra code that was undoing the initialization of the syncswitch that we couldn't see because we didn't have reproduction steps. Following the steps in flutter/flutter#64558 (comment) allowed me to reproduce the bug.

fixes flutter/flutter#64558
fixes flutter/flutter#71074
I suspect this may also fix flutter/flutter#76068, but I'm not sure.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.
  • The reviewer has submitted any presubmit flakes in this PR using the engine presubmit flakes form before re-triggering the failure.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@gaaclarke gaaclarke requested a review from chinmaygarde March 12, 2021 01:13
Wooder pushed a commit to Wooder/engine that referenced this pull request Mar 12, 2021
Wooder added a commit to Wooder/HowToPatchFlutterEngine1_22_6_gpu_crash that referenced this pull request Mar 12, 2021
Added description to compile engine with  backport of pull request flutter/engine#24958
@gaaclarke
Copy link
Member Author

@chinmaygarde Should we revert #24503 then merge it with this PR to make it easier to cherry-pick? #24503 is a couple weeks old now, i'm not sure if it cleanly will peel off.

@danielSafeNow
Copy link

@gaaclarke @chinmaygarde

We tested the fix brought with this PR on a release as we experience great problems through flutter/flutter#76068. It seems to have fixed the original issue, leading to different crashes that may or may not be related to the same root cause...

Please see flutter/flutter#76068 (comment) on the issue.

@gaaclarke gaaclarke requested a review from gw280 March 15, 2021 17:01
@chinmaygarde
Copy link
Member

Making this easy to cherry pick is fine. I was going to insist on a test but I am drawing a blank about how to test this using any existing test harnesses.

@gaaclarke
Copy link
Member Author

Yea, you'd have to do something like an integration test that swizzles UIApplication to return the background state or something.

I know it's annoying to cherry-pickers but it might create unnecessary overhead and maybe more confusion if I revert. I'll just land it and babysit it with the cherrypicks.

@gaaclarke gaaclarke merged commit e3a84f9 into flutter:master Mar 15, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 15, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 16, 2021
zanderso pushed a commit to flutter/flutter that referenced this pull request Mar 16, 2021
* b2d02f7 Roll Fuchsia Linux SDK from GsRYVri0-... to aRqEDMjwC... (flutter/engine#24990)

* 3a1a3e6 Roll Skia from 7854da39b3c1 to 4fb13e026b6b (20 revisions) (flutter/engine#24993)

* e3a84f9 Fixed issue where the gpu disable syncswitch was being overridden after init. (flutter/engine#24958)

* aa83691 fix selectable text selections are not announced in voice over (flutter/engine#24933)

* 04b0451 fixes reference retaining issue in flutter text input plugin (flutter/engine#24768)

* 1ea7dc6 Set automatic simulator rotation in scenario test (flutter/engine#24985)

* 38977a5 Implement AXPlatformNodeBase::GetInstanceCountForTesting (flutter/engine#24999)

* a25b0de Roll Fuchsia Mac SDK from xOxFrRRO6... to pmsuWkRQA... (flutter/engine#24997)

* 3270c87 Roll Skia from 4fb13e026b6b to 1aa25c3217b6 (25 revisions) (flutter/engine#25001)

* 96d5104 [deferred components] Handle base module loading units (flutter/engine#24983)

* 6a3d8c7 Roll Skia from 1aa25c3217b6 to ead52dc068d5 (1 revision) (flutter/engine#25005)

* 0f52360 Hardware Keyboard: macOS (flutter/engine#23469)
Wooder pushed a commit to Wooder/engine that referenced this pull request Mar 18, 2021
Based on flutter engine with commit: 40441de - contains backport of flutter#24958 and flutter#24503
hjfreyer pushed a commit to hjfreyer/engine that referenced this pull request Mar 22, 2021
chriscraws pushed a commit to chriscraws/engine that referenced this pull request Mar 23, 2021
duanqz pushed a commit to duanqz/engine that referenced this pull request Apr 16, 2021
_publisher.reset([[FlutterObservatoryPublisher alloc]
initWithEnableObservatoryPublication:doesObservatoryPublication]);
[self maybeSetupPlatformViewChannels];
_shell->GetIsGpuDisabledSyncSwitch()->SetSwitch(_isGpuDisabled ? true : false);
Copy link
Member Author

Choose a reason for hiding this comment

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

Because that value is now getting set when the shell is created.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

4 participants