Skip to content

VM Service WebSocket disconnects after idle period on Windows 11 with Norton 360, causing errno 232 pipe crash #6026

@gabriel9004

Description

@gabriel9004

VM Service WebSocket connection (ws://127.0.0.1:.../ws) disconnects after a period of inactivity (between 4-20 minutes, variable), causing a pipe crash when hot reload is attempted. This affects both Chrome and Android targets.
The DTD WebSocket ping fix from PR #5828 (v3.124) does not cover the VM Service WebSocket. A similar keepalive ping is needed for the VM Service connection.
Stack trace:
ResidentRunner._serviceDisconnected (resident_runner.dart:1405)
WindowsStdoutLogger.writeToStdOut (logger.dart:737)
FileSystemException: writeFrom failed (OS Error: The pipe is being closed, errno = 232)
Log evidence:
21:12:12 | supabase init completed
21:16:34 | Performing hot reload...
21:16:35 | getVM: (-32000) Service connection disposed
4 minutes 22 seconds of inactivity → VM Service disconnected.
Environment:

Flutter 3.41.4, Dart 3.11.1
Dart-Code extension v3.132
Windows 11 25H2 (10.0.26200.8117)
Norton 360 installed (even with all protection disabled, issue persists)
Reproducible on: Chrome web, Android device

Related: #5794, PR #5828

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsin flutterRelates to running Flutter appsis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions