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

Conversation

loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Oct 26, 2022

Background

In angle@54dfb62, ANGLE made the "force context check" flag off by default to improve performance. Disabling this flag uncovered several bugs in ANGLE's D3D11 renderer that can cause Flutter 3.3.0+ to crash. This change re-enables the "force context check" flag, bringing Flutter back to the last known good state used by Flutter 3.0.5 and earlier.

Fixes flutter/flutter#110311

What is the "force context check" flag?

Per the ANGLE team:

This flag is to allow our D3D11 backend to be multithreaded at the cost of additional synchronization. If flutter is using ANGLE from multiple threads on Windows, you should leave this flag enabled by default.

Flutter does not use ANGLE from multiple threads, so ideally Flutter would disable this flag.

Why don't we fix the bugs uncovered by disabling this ANGLE flag?

This is the ideal long-term solution. Tracked by flutter/flutter#114107.

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.

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

@loic-sharma loic-sharma merged commit 624b132 into flutter:main Oct 31, 2022
@loic-sharma loic-sharma deleted the angle_ctx_crash branch October 31, 2022 18:53
schwa423 pushed a commit to schwa423/engine that referenced this pull request Nov 16, 2022
…7055)

In [angle@54dfb62](google/angle@54dfb62), ANGLE made the "force context check" flag off by default [to improve performance](https://chromium-review.googlesource.com/c/angle/angle/+/2809855). Disabling this flag uncovered several bugs in ANGLE's D3D11 renderer that can cause [Flutter 3.3.0+ to crash](flutter/flutter#110311). This change re-enables the "force context check" flag, bringing Flutter back to the last known good state used by Flutter 3.0.5 and earlier.

Fixes flutter/flutter#110311
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[windows] Crash caused by null pointer in ANGLE
2 participants