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

[CP-stable]Add a check for the surface if it is valid#56301

Merged
auto-submit[bot] merged 1 commit into
flutter-team-archive:flutter-3.24-candidate.0from
flutteractionsbot:cp-engine-stable-57ae2d2130275c09ec1d4a83a38fa38a50460279
Nov 12, 2024
Merged

[CP-stable]Add a check for the surface if it is valid#56301
auto-submit[bot] merged 1 commit into
flutter-team-archive:flutter-3.24-candidate.0from
flutteractionsbot:cp-engine-stable-57ae2d2130275c09ec1d4a83a38fa38a50460279

Conversation

@flutteractionsbot

@flutteractionsbot flutteractionsbot commented Nov 1, 2024

Copy link
Copy Markdown

This pull request is created by automatic cherry pick workflow

Issue Link:

flutter/flutter#155018

Changelog Description:

Summary:

A crash in Flutter SDK 3.24.1 affects Android apps using PlatformView, not limited to Google Maps. The crash occurs when the surface is released unexpectedly, causing subsequent draw calls to fail.

Impact Description:

Summary:
A crash in Flutter SDK 3.24.3 affects Android apps using PlatformView, not limited to Google Maps. The crash occurs when the surface is released unexpectedly, causing subsequent draw calls to fail.

Impact:
This issue can lead to app crashes on Android for any PlatformView usage, affecting stability across a range of widgets and plugins that rely on native views.

Workaround:

Is there a workaround for this issue?

Release the Surface in a regular way might avoid the issue, per flutter/flutter#155018 (comment)

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

What are the steps to validate that this fix works?

Fixes an issue where the Surface is not valid and the `draw` method is crashing.

flutter/flutter#155018

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@flutteractionsbot flutteractionsbot added the cp: review add the cp request to the review queue of release engineers label Nov 1, 2024
@flutteractionsbot

Copy link
Copy Markdown
Author

@AlexV525 please fill out the PR description above, afterwards the release team will review this request.

@reidbaker

Copy link
Copy Markdown
Contributor

I am approving but if @jonahwilliams disagrees then his opinion should take weight over mine.

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

Change seems safe enough.

LGTM

@eyebrowsoffire eyebrowsoffire added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 12, 2024
@auto-submit auto-submit Bot merged commit c21a11e into flutter-team-archive:flutter-3.24-candidate.0 Nov 12, 2024
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 12, 2024
@AlexV525

Copy link
Copy Markdown

Should I request a CP for the framework? Does any automatic workflow manage it?

@reidbaker

Copy link
Copy Markdown
Contributor

@AlexV525 the engine changes to this branch will automatically be rolled in by the release engineer. Who is @eyebrowsoffire for this release.

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

Labels

cp: review add the cp request to the review queue of release engineers platform-android

Development

Successfully merging this pull request may close these issues.

6 participants