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
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