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

Avoid accessing the Cocoa view on the GPU or IO task runners. - #13295

Merged
chinmaygarde merged 1 commit into
flutter-team-archive:masterfrom
chinmaygarde:no_resize_crash
Oct 22, 2019
Merged

chinmaygarde merged 1 commit into
flutter-team-archive:masterfrom
chinmaygarde:no_resize_crash

Conversation

@chinmaygarde

Copy link
Copy Markdown
Contributor

The view was being accessed from a background thread so its OpenGL context could be accessed. This tripped thread safety assertions in Cocoa. Now the OpenGL context is stashed in the FlutterEngine instance itself.

The view was being accessed from a background thread so its OpenGL context could be accessed. This tripped thread safety assertions in Cocoa. Now the OpenGL context is stashed in the FlutterEngine instance itself.

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add thread asserts in some of these methods?

@chinmaygarde

Copy link
Copy Markdown
Contributor Author

Cocoa already does this for us. That's how I found the same.

@chinmaygarde
chinmaygarde merged commit 97f5ad4 into flutter-team-archive:master Oct 22, 2019
@chinmaygarde
chinmaygarde deleted the no_resize_crash branch October 22, 2019 21:21
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Oct 23, 2019
[email protected]:flutter/engine.git/compare/a064063e3f63...b5a33d4

git log a064063..b5a33d4 --no-merges --oneline
2019-10-23 [email protected] Allow embedders to update preferrred locales. (flutter-team-archive/engine#13238)
2019-10-23 [email protected] Show strace logs when the Fuchsia gen_package script gets an error from the packaging tool (flutter-team-archive/engine#13298)
2019-10-22 [email protected] [web] Cupertino dynamic color fix. (flutter-team-archive/engine#13296)
2019-10-22 [email protected] Roll src/third_party/dart 6a65ea9cad..4ab09db0f4 (2 commits)
2019-10-22 [email protected] Update harfbuzz to 2.6.2, Roll buildroot to a518e (flutter-team-archive/engine#13242)
2019-10-22 [email protected] Fix decode feature detection in HtmlCodec (flutter-team-archive/engine#13274)
2019-10-22 [email protected] Avoid accessing the Cocoa view on the GPU or IO task runners. (flutter-team-archive/engine#13295)
2019-10-22 [email protected] Make flutter_tester support multithreaded testing, and run all Dart tests in both single and multithreaded configurations (flutter-team-archive/engine#13273)
2019-10-22 [email protected] Made restarting the Engine remember the last entrypoint that was used. (flutter-team-archive/engine#13289)
2019-10-22 [email protected] Roll src/third_party/skia f3f8ac37e468..2638f3d44b02 (12 commits) (flutter-team-archive/engine#13291)
2019-10-22 [email protected] Flesh out the CanvasKit backend some more (flutter-team-archive/engine#13275)
2019-10-22 [email protected] Roll Dart to 6a65ea9cad4b014f88d2f1be1b321db493725a1c. (flutter-team-archive/engine#13294)
2019-10-22 [email protected] Disable flaky test ShellTest_ReportTimingsIsCalled. (flutter-team-archive/engine#13292)
2019-10-22 [email protected] Do not request executable permission on Fuchsia file mappings unless it is required (flutter-team-archive/engine#13290)
2019-10-22 [email protected] Roll src/third_party/dart e1c409792c..5814319bf9 (9 commits)
2019-10-22 [email protected] Revert "Made restarting the Engine remember the last entrypoint that was used. (#13264)" (flutter-team-archive/engine#13287)
2019-10-22 [email protected] Made restarting the Engine remember the last entrypoint that was used. (flutter-team-archive/engine#13264)


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] on the revert to ensure that a human
is aware of the problem.

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/+/master/autoroll/README.md
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
[email protected]:flutter/engine.git/compare/a064063e3f63...b5a33d4

git log a064063..b5a33d4 --no-merges --oneline
2019-10-23 [email protected] Allow embedders to update preferrred locales. (flutter-team-archive/engine#13238)
2019-10-23 [email protected] Show strace logs when the Fuchsia gen_package script gets an error from the packaging tool (flutter-team-archive/engine#13298)
2019-10-22 [email protected] [web] Cupertino dynamic color fix. (flutter-team-archive/engine#13296)
2019-10-22 [email protected] Roll src/third_party/dart 6a65ea9cad..4ab09db0f4 (2 commits)
2019-10-22 [email protected] Update harfbuzz to 2.6.2, Roll buildroot to a518e (flutter-team-archive/engine#13242)
2019-10-22 [email protected] Fix decode feature detection in HtmlCodec (flutter-team-archive/engine#13274)
2019-10-22 [email protected] Avoid accessing the Cocoa view on the GPU or IO task runners. (flutter-team-archive/engine#13295)
2019-10-22 [email protected] Make flutter_tester support multithreaded testing, and run all Dart tests in both single and multithreaded configurations (flutter-team-archive/engine#13273)
2019-10-22 [email protected] Made restarting the Engine remember the last entrypoint that was used. (flutter-team-archive/engine#13289)
2019-10-22 [email protected] Roll src/third_party/skia f3f8ac37e468..2638f3d44b02 (12 commits) (flutter-team-archive/engine#13291)
2019-10-22 [email protected] Flesh out the CanvasKit backend some more (flutter-team-archive/engine#13275)
2019-10-22 [email protected] Roll Dart to 6a65ea9cad4b014f88d2f1be1b321db493725a1c. (flutter-team-archive/engine#13294)
2019-10-22 [email protected] Disable flaky test ShellTest_ReportTimingsIsCalled. (flutter-team-archive/engine#13292)
2019-10-22 [email protected] Do not request executable permission on Fuchsia file mappings unless it is required (flutter-team-archive/engine#13290)
2019-10-22 [email protected] Roll src/third_party/dart e1c409792c..5814319bf9 (9 commits)
2019-10-22 [email protected] Revert "Made restarting the Engine remember the last entrypoint that was used. (flutter#13264)" (flutter-team-archive/engine#13287)
2019-10-22 [email protected] Made restarting the Engine remember the last entrypoint that was used. (flutter-team-archive/engine#13264)


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] on the revert to ensure that a human
is aware of the problem.

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/+/master/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

4 participants