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

Conversation

@jwinarske
Copy link
Contributor

@jwinarske jwinarske commented Sep 26, 2023

On Linux setting the EGL context from one thread, then setting from another thread will trigger a EGL_BAD_ACCESS error. The resolution is to clear the context after use on the thread that set it.

flutter/flutter#130619

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

@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 or stuartmorgan on the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

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.

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

-On Linux setting the EGL context from one thread,
 then setting from another thread will trigger a
 EGL_BAD_ACCESS error. The resolution is to clear
 the context after use on the thread that set it.
-remote call to SetReactionsAllowedOnCurrentThread(),
 as it defaults to false.

Signed-off-by: Joel Winarske <[email protected]>
@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 27, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Sep 27, 2023

auto label is removed for flutter/engine/46287, due to This PR has not met approval requirements for merging. You are not a member of flutter-hackers and need 1 more review(s) in order to merge this PR.

  • Merge guidelines: You need at least one approved review if you are already part of flutter-hackers or two member reviews if you are not a flutter-hacker before re-applying the autosubmit label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 27, 2023
@chinmaygarde chinmaygarde changed the title Impeller opengles EGL_BAD_ACCESS [Impeller] Fix OpenGLES EGL_BAD_ACCESS due to context being current on multiple threads.. Sep 28, 2023
@chinmaygarde chinmaygarde changed the title [Impeller] Fix OpenGLES EGL_BAD_ACCESS due to context being current on multiple threads.. [Impeller] Fix OpenGLES EGL_BAD_ACCESS due to context being current on multiple threads. Sep 28, 2023
@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 28, 2023
@chinmaygarde
Copy link
Member

@jwinarske Would you mind having contributor access?

@auto-submit auto-submit bot merged commit 2e850bc into flutter:main Sep 28, 2023
@jwinarske
Copy link
Contributor Author

@chinmaygarde sure

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 28, 2023
@jwinarske jwinarske deleted the jw/egl_bad_access branch September 28, 2023 23:25
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 28, 2023
…135717)

flutter/engine@cc7c3c1...485543c

2023-09-28 [email protected] Roll Fuchsia Linux SDK from cu6apvEZ2P6zhishc... to l2RxJKPfYn7QzGOoL... (flutter/engine#46382)
2023-09-28 [email protected] Remove opacity layer dcheck. (flutter/engine#46160)
2023-09-28 [email protected] Add initial support for 4x MSAA in OpenGLES backend. (flutter/engine#46381)
2023-09-28 [email protected] Reland: [macOS] performKeyEquivalent cleanup (flutter/engine#46377)
2023-09-28 [email protected] [macOS] TextInputPlugin should mark navigation events in IME popover as handled (flutter/engine#46141)
2023-09-28 [email protected] Removed unnecessary dynamic dispatch (flutter/engine#46369)
2023-09-28 [email protected] [Impeller] Fix OpenGLES EGL_BAD_ACCESS due to context being current on multiple threads. (flutter/engine#46287)
2023-09-28 [email protected] Fix damage calculation when not providing populate_existing_damage for gl embedder (flutter/engine#45611)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from cu6apvEZ2P6z to l2RxJKPfYn7Q

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
Mairramer pushed a commit to Mairramer/flutter that referenced this pull request Oct 10, 2023
…lutter#135717)

flutter/engine@cc7c3c1...485543c

2023-09-28 [email protected] Roll Fuchsia Linux SDK from cu6apvEZ2P6zhishc... to l2RxJKPfYn7QzGOoL... (flutter/engine#46382)
2023-09-28 [email protected] Remove opacity layer dcheck. (flutter/engine#46160)
2023-09-28 [email protected] Add initial support for 4x MSAA in OpenGLES backend. (flutter/engine#46381)
2023-09-28 [email protected] Reland: [macOS] performKeyEquivalent cleanup (flutter/engine#46377)
2023-09-28 [email protected] [macOS] TextInputPlugin should mark navigation events in IME popover as handled (flutter/engine#46141)
2023-09-28 [email protected] Removed unnecessary dynamic dispatch (flutter/engine#46369)
2023-09-28 [email protected] [Impeller] Fix OpenGLES EGL_BAD_ACCESS due to context being current on multiple threads. (flutter/engine#46287)
2023-09-28 [email protected] Fix damage calculation when not providing populate_existing_damage for gl embedder (flutter/engine#45611)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from cu6apvEZ2P6z to l2RxJKPfYn7Q

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
harryterkelsen pushed a commit that referenced this pull request Oct 23, 2023
…n multiple threads. (#46287)

On Linux setting the EGL context from one thread, then setting from another thread will trigger a EGL_BAD_ACCESS error.  The resolution is to clear the context after use on the thread that set it.

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

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants