shelf icon indicating copy to clipboard operation
shelf copied to clipboard

Crash with hot restart

Open joachimvalente opened this issue 1 year ago • 2 comments

Hi,

I am seeing problems when using hot restart on Android and the error points to this package. (A similar issue was reported here.)

Output:

Lost connection to device.
Performing hot restart...                                              ⣷ERROR - 2024-10-16 16:31:32.361736
PUT /yuYm0Wv-E4Q=/
Error thrown by handler.
Connection closed before full header was received
package:shelf/shelf_io.dart 138:16  handleRequest

flutter --version:

Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (5 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3

I'm using a Pixel 6. This happens whether I launch from VSCode or from the terminal via flutter run. This happens for hot restart but not hot reload. My version of shelf is 1.4.1.

Do you know if this is actually due to this package, or if the problem could be somewhere else?

joachimvalente avatar Oct 17 '24 00:10 joachimvalente

any solution ?? I am getting same issue

Aman8385 avatar Feb 15 '25 11:02 Aman8385

This package was never designed with hot reload/restart in mind.

kevmoo avatar Feb 15 '25 19:02 kevmoo