Skip to content
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

Fix EGL_BAD_SURFACE when app is paused #20735

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

blasten
Copy link

@blasten blasten commented Aug 24, 2020

Description

When the app is paused, the native Surface window is destroyed. Then, it's reset back when the app is resumed.

Related Issues

Fixes flutter/flutter#64414

Tests

There isn't a good way to test this at the moment.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the contributor guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the C++, Objective-C, Java style guides for the engine.
  • I read the tree hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read handling breaking changes.

@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.

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

@auto-assign auto-assign bot requested a review from jason-simmons August 24, 2020 21:45
@blasten blasten merged commit 45f0940 into flutter:master Aug 25, 2020
@blasten blasten deleted the fix_null_surface branch August 25, 2020 19:39
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 26, 2020
@zanderso
Copy link
Member

What are the blockers to having a regression test for this?

@blasten
Copy link
Author

blasten commented Aug 26, 2020

@zanderso we would need an emulator with this specific version of Android. I wired up the emulators on LUCI and it’s relatively easy to add a new emulator. Then, the scenario app activity could be launched, paused and resumed.

christopherfujino pushed a commit to christopherfujino/engine that referenced this pull request Aug 26, 2020
christopherfujino added a commit that referenced this pull request Aug 27, 2020
* update dart revision
* Fix EGL_BAD_SURFACE when app is paused (#20735)
* The `ForwardingGestureRecognizers` to have back reference to the `PlatformViewsController` so it can access `FlutterViewController` when its available  (#20708)
* Remove image sizes from Picture::GetAllocationSize (#20673)
* update licenses golden

Co-authored-by: Emmanuel Garcia <egarciad@google.com>
Co-authored-by: Chris Yang <ychris@google.com>
Co-authored-by: Jason Simmons <jason-simmons@users.noreply.github.com>
christopherfujino pushed a commit to christopherfujino/engine that referenced this pull request Aug 29, 2020
christopherfujino added a commit that referenced this pull request Aug 31, 2020
* Update 1.20 engine to use Dart 2.9.2
* update license goldens
* Fix EGL_BAD_SURFACE when app is paused (#20735)
* The `ForwardingGestureRecognizers` to have back reference to the `PlatformViewsController` so it can access `FlutterViewController` when its available  (#20708)
* cherry-pick e09af86
* skip linting since this was enabled in CI after this release branch cut commit.

Co-authored-by: Emmanuel Garcia <egarciad@google.com>
Co-authored-by: Chris Yang <ychris@google.com>
@b055man
Copy link

b055man commented Sep 4, 2020

@christopherfujino @blasten Is this fix actually in 1.20.3? I can't see it mentioned in the notes for 1.20.3, also the diff does not show it..
flutter/flutter@1.20.2...1.20.3
[EDIT] nevermind, I now see it's a part of the engine, and the engine version has been updated..
For future, it'd be good though to reference the engine fixes in the release notes too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App freezes when switching via task switcher on API 25 - Android 7.1.1
5 participants