Skip to content

[web] CanvasKit Hot Restart does not work #69263

@creativecreatorormaybenot

Description

Steps to Reproduce

  1. Run flutter create bug.
  2. Run cd bug.
  3. Run flutter run -d chrome --dart-define=FLUTTER_WEB_USE_SKIA=true.
  4. See the application in Chrome.
  5. Change some text in the code.
  6. Press hot reload / hot restart (does not matter because of Enable "hot reload" (not just "hot restart") for Flutter Web #53041).

Expected results: the text should change because of hot restart (the page would normally refresh without the FLUTTER_WEB_USE_SKIA flag).

Actual results: I need to press F5 / reload the Chrome tab in order for the hot restart to finish. flutter run will be stuck on Performing hot restart... until I reload the Chrome tab.

Click to expand versions
Flutter 1.24.0-3.0.pre • channel dev • https://github.com/flutter/flutter.git
Framework • revision 2783f8e2e1 (6 days ago) • 2020-10-22 09:36:06 -0700
Engine • revision defa8be2b1
Tools • Dart 2.11.0 (build 2.11.0-242.0.dev)

CanvasKit

Removing --dart-define=FLUTTER_WEB_USE_SKIA=true makes hot restart work without refreshing the tab.

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowcustomer: web10e: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.found in release: 1.23Found to occur in 1.23found in release: 1.24Found to occur in 1.24has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyt: hot reloadReloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions