Skip to content

☂️ RPCError: <method name>: (-32000) Service connection disposed #153471

@andrewkolos

Description

@andrewkolos

(added on 8/20) Summary for archaeologists from the future: a couple of the changes to package:vm_service made it such that any pending requests are completed with RPCErrors when the service is suddenly shut down (e.g. the user shut down their device during flutter run). Such errors should be captured by the tool and either discarded entirely or be captured and replaced by a helpful error message where appropriate.

(added on 11/22): Per #153471 (comment), there probably are legitimate bug(s) here, but I am not sure if they still exist in the 3.27 beta.


Tool crashes with messages of the form RPCError: <RPC method name>: (-32000) Service connection disposed have come to represent a significant number of tool crashes. On 3.24.0 to-date (8/24), 1870 crashes have been reported by 410-517 clients.

This exception comes with a few stack traces, hence this creating this umbrella issue.

Edit: some more instances since we now get stack traces on these:

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consoleteam-toolOwned by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions