Skip to content

Ensure that the raster thread has an EGL context before submitting the command buffer in ImageEncodingImpeller - #175102

Merged
auto-submit[bot] merged 4 commits into
flutter:masterfrom
jason-simmons:bug_171946
Sep 17, 2025
Merged

auto-submit[bot] merged 4 commits into
flutter:masterfrom
jason-simmons:bug_171946

Conversation

@jason-simmons

Copy link
Copy Markdown
Member

Fixes #171946

@github-actions github-actions Bot added the engine flutter/engine related. See also e: labels. label Sep 9, 2025
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

// task runner was assigned to a new thread and no previous rendering
// task has run on that thread.
if (!(snapshot_delegate && snapshot_delegate->MakeRenderContextCurrent())) {
encode_task(fml::Status(fml::StatusCode::kFailedPrecondition,

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.

Shouldn't there be an early return in this case?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added the return. Also fixed handling of a case where ConvertDlImageToSkImage is being called on the IO thread and the snapshot delegate is not applicable.

@jason-simmons jason-simmons added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 17, 2025
@auto-submit
auto-submit Bot added this pull request to the merge queue Sep 17, 2025
Merged via the queue into flutter:master with commit 7810162 Sep 17, 2025
189 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 17, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 18, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 18, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 18, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 18, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 19, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 19, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 19, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 19, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 19, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 20, 2025
Jaineel-Mamtora pushed a commit to Jaineel-Mamtora/flutter_forked that referenced this pull request Sep 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 12, 2025
lucaantonelli pushed a commit to lucaantonelli/flutter that referenced this pull request Nov 21, 2025
reidbaker pushed a commit to AbdeMohlbi/flutter that referenced this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After upgrading Flutter to 3.29.3 image.toByteData throws empty Exception

2 participants