Skip to content

Conversation

@andrewkolos
Copy link
Contributor

@andrewkolos andrewkolos commented Aug 19, 2024

Fixes umbrella issue #153471, including its children: #153472, #153473, and #153474.

The VM service can be disposed at any time during requests (e.g. the user closes the app or stops debugging in VSCode)1. dart-lang/sdk@a479f91 and dart-lang/sdk@a7d8707 updated package:vm_service to throw new RPCErrors when the service disconnects while requests are inflight. Therefore, we need to handle these exceptions in the tool. See umbrella issue for more details.

I plan on cherry-picking this change to the stable channel.

Pre-launch Checklist

Footnotes

  1. https://github.com/flutter/flutter/issues/153471#issuecomment-2296294221

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Aug 19, 2024
@andrewkolos andrewkolos changed the title Handle "Service connection disposed" from VmService disconnecting Handle "Service connection disposed" error from VmService disconnecting while requests are outstanding Aug 19, 2024
@andrewkolos andrewkolos force-pushed the handle-service-connection-disposed branch from 3105fce to 0f787f9 Compare August 19, 2024 19:28
@andrewkolos andrewkolos marked this pull request as ready for review August 19, 2024 20:00
@andrewkolos
Copy link
Contributor Author

fyi @bkonyi @DanTup

Copy link
Contributor

@DanTup DanTup left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me. I think we should define a new error code and add handling for it too, to move these errors away from string checks in future (there's a discussion about this in one of the linked issues).

@andrewkolos andrewkolos added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 20, 2024
@auto-submit auto-submit bot merged commit 4a03b76 into flutter:master Aug 20, 2024
@andrewkolos andrewkolos added the cp: stable cherry pick this pull request to stable release candidate branch label Aug 20, 2024
flutteractionsbot pushed a commit to flutteractionsbot/flutter that referenced this pull request Aug 20, 2024
…ng while requests are outstanding (flutter#153714)

Fixes umbrella issue flutter#153471, including its children: flutter#153472, flutter#153473, and flutter#153474.

The VM service can be disposed at any time during requests (e.g. the user closes the app or stops debugging in VSCode)[^1]. dart-lang/sdk@a479f91 and dart-lang/sdk@a7d8707 updated package:vm_service to throw new `RPCError`s when the service disconnects while requests are inflight. Therefore, we need to handle these exceptions in the tool. See umbrella issue for more details.

I plan on cherry-picking this change to the stable channel.

[^1]: flutter#153471 (comment)
@andrewkolos andrewkolos added cp: stable cherry pick this pull request to stable release candidate branch and removed cp: stable cherry pick this pull request to stable release candidate branch labels Aug 20, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 20, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 20, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 20, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Aug 20, 2024
flutter/flutter@6a28048...e7da16d

2024-08-20 [email protected] Fixes page.onPopInvoked type mismatches (flutter/flutter#153593)
2024-08-20 [email protected] When the app enters the detached state, clear the record of the last SystemChrome style sent to the host (flutter/flutter#153586)
2024-08-20 [email protected] Handle "Service connection disposed" error from VmService disconnecting while requests are outstanding (flutter/flutter#153714)
2024-08-20 [email protected] Roll Flutter Engine from ec775a3a645e to e10b07598091 (1 revision) (flutter/flutter#153764)
2024-08-20 [email protected] Roll Packages from 7c1a05c to 4d2d2e3 (6 revisions) (flutter/flutter#153763)
2024-08-20 [email protected] Roll Flutter Engine from 0ac9e97cc1c0 to ec775a3a645e (1 revision) (flutter/flutter#153761)
2024-08-20 [email protected] Reland "Load parent package config" (flutter/flutter#153754)
2024-08-20 [email protected] Roll Flutter Engine from 48d7b04674d9 to 0ac9e97cc1c0 (2 revisions) (flutter/flutter#153753)
2024-08-20 [email protected] Revert "Load parent package config" (flutter/flutter#153752)
2024-08-20 [email protected] Roll Flutter Engine from b0284aac7b4d to 48d7b04674d9 (1 revision) (flutter/flutter#153746)
2024-08-20 [email protected] Load parent package config (flutter/flutter#150850)
2024-08-20 [email protected] Roll Flutter Engine from 20b8a5c13742 to b0284aac7b4d (1 revision) (flutter/flutter#153743)
2024-08-20 [email protected] Roll Flutter Engine from 86f269bd5261 to 20b8a5c13742 (2 revisions) (flutter/flutter#153741)
2024-08-20 [email protected] Roll Flutter Engine from 5355c0b60e6e to 86f269bd5261 (4 revisions) (flutter/flutter#153739)
2024-08-20 [email protected] Roll Flutter Engine from 7dd71ff80d23 to 5355c0b60e6e (1 revision) (flutter/flutter#153734)
2024-08-20 [email protected] Roll Flutter Engine from 9d7e3a6b97d0 to 7dd71ff80d23 (4 revisions) (flutter/flutter#153733)
2024-08-19 [email protected] refactor material banner and fix focus issue (flutter/flutter#152646)
2024-08-19 [email protected] Roll Flutter Engine from 30ffbfaf6a06 to 9d7e3a6b97d0 (3 revisions) (flutter/flutter#153724)
2024-08-19 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.26.2 to 3.26.3 (flutter/flutter#153726)
2024-08-19 [email protected] Roll Flutter Engine from c5d23162bb9b to 30ffbfaf6a06 (1 revision) (flutter/flutter#153721)
2024-08-19 [email protected] Roll Flutter Engine from bf538a0a98b0 to c5d23162bb9b (1 revision) (flutter/flutter#153719)
2024-08-19 [email protected] Remove android stack_size_test (flutter/flutter#153695)
2024-08-19 [email protected] Roll Flutter Engine from e29b5529080d to bf538a0a98b0 (2 revisions) (flutter/flutter#153713)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
…ng while requests are outstanding (flutter#153714)

Fixes umbrella issue flutter#153471, including its children: flutter#153472, flutter#153473, and flutter#153474.

The VM service can be disposed at any time during requests (e.g. the user closes the app or stops debugging in VSCode)[^1]. dart-lang/sdk@a479f91 and dart-lang/sdk@a7d8707 updated package:vm_service to throw new `RPCError`s when the service disconnects while requests are inflight. Therefore, we need to handle these exceptions in the tool. See umbrella issue for more details.

I plan on cherry-picking this change to the stable channel.

[^1]: flutter#153471 (comment)
auto-submit bot pushed a commit that referenced this pull request Oct 7, 2024
#156346)

Follow-up to #153714. While reading through run.dart, I noticed we missed a case.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 11, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 12, 2024
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: stable cherry pick this pull request to stable release candidate branch tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

2 participants