Skip to content

Conversation

@bkonyi
Copy link
Contributor

@bkonyi bkonyi commented May 27, 2025

Fixes #156793

Issue Link:

#156793

Changelog Description:

Fix flaky crash when targeting web applications via IDEs using the DAP.

Impact Description:

The flutter debug-adapter process started by IDEs can crash when requesting isolate information from a Flutter web application that has disposed its isolate (i.e., at shutdown or due to a hot restart).

This is the top crasher for flutter_tools, accounting for ~66% of all crashes for 3.32.0.

Workaround:

Is there a workaround for this issue?

No.

Risk:

This CP is low risk as only additional exception handling was added to the DAP logic in package:dds (see https://dart-review.googlesource.com/c/sdk/+/431060) to handle the specific case outlined in the issue.

Test Coverage:

This issue is difficult to reproduce without injecting test-only code via custom VM service RPCs across multiple repositories. Testing was done manually with this approach, but the testing code is not committed.

Validation Steps:

IDE extensions don't crash when interacting with Flutter Web applications during hot restart / application shutdown.

@bkonyi bkonyi added the cp: review Cherry-picks in the review queue label May 27, 2025
@flutter-dashboard flutter-dashboard bot changed the base branch from stable to master May 27, 2025 15:50
@flutter-dashboard
Copy link

This pull request was opened against a branch other than master. Since Flutter pull requests should not normally be opened against branches other than master, I have changed the base to master. If this was intended, you may modify the base back to stable. See the Release Process for information about how other branches get updated.

Reviewers: Use caution before merging pull requests to branches other than master, unless this is an intentional hotfix/cherrypick.

@github-actions github-actions bot added a: text input Entering text in a text field or keyboard related problems platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. framework flutter/packages/flutter repository. See also f: labels. engine flutter/engine related. See also e: labels. f: material design flutter/packages/flutter/material repository. a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) f: scrolling Viewports, list views, slivers, etc. f: cupertino flutter/packages/flutter/cupertino repository d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos platform-web Web applications specifically e: impeller Impeller rendering backend issues and features requests d: docs/ flutter/flutter/docs, for contributors labels May 27, 2025
@bkonyi bkonyi changed the base branch from master to stable May 27, 2025 16:39
@eyebrowsoffire eyebrowsoffire changed the base branch from stable to flutter-3.32-candidate.0 May 27, 2025 17:31
@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions bot removed a: text input Entering text in a text field or keyboard related problems platform-android Android applications specifically framework flutter/packages/flutter repository. See also f: labels. engine flutter/engine related. See also e: labels. f: material design flutter/packages/flutter/material repository. a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) f: scrolling Viewports, list views, slivers, etc. f: cupertino flutter/packages/flutter/cupertino repository labels May 27, 2025
@github-actions github-actions bot removed d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos platform-web Web applications specifically e: impeller Impeller rendering backend issues and features requests d: docs/ flutter/flutter/docs, for contributors labels May 27, 2025
Copy link
Contributor

@eyebrowsoffire eyebrowsoffire left a comment

Choose a reason for hiding this comment

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

LGTM!

@eyebrowsoffire eyebrowsoffire added the autosubmit Merge PR when tree becomes green via auto submit App label May 27, 2025
@auto-submit auto-submit bot merged commit 80f085c into flutter-3.32-candidate.0 May 27, 2025
148 checks passed
@auto-submit auto-submit bot deleted the cp_dds_5.0.2 branch May 27, 2025 19:55
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App cp: review Cherry-picks in the review queue tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StateError: Bad state: No running isolate (inspector is not set).

2 participants