IssueRaiser

[Web] CanvasKit error on web app after hot restart/hot reload

### Is there an existing issue for this? - [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues) - [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports) ### Steps to reproduce After performing multiple hot restarts or hot reloads in web app occurs error of CanvasKit. It doesn't crash the app, but it always persists in console. I have seen old issues from 2021: #https://github.com/flutter/flutter/issues/90231 #https://github.com/flutter/flutter/issues/90236 Both are closed as resolved in: #flutter/engine#28675 But in my case problem occurs now with the latest version of Flutter. ### Expected results No errors ### Actual results Error of CanvasKit ### Code sample Just run any Flutter web app and preform multiple restarts/reloads. The problem occurs randomly after these steps. ### Screenshots or Video <details> <summary>Screenshots / Video demonstration</summary> [Upload media here] </details> ### Logs <details><summary>Logs</summary> ```console Error: Assertion failed: org-dartlang-sdk:///lib/_engine/engine/canvaskit/surface_factory.dart:148:12 _cache.contains(surface) is not true dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49 throw_ dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed lib/_engine/engine/canvaskit/surface_factory.dart 148:35 isLive lib/_engine/engine/canvaskit/surface.dart

Posted by abigotado on Jun 1, 2023, 5:10 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

reliability (SaaS)

[Web] CanvasKit error on web app after hot restart/hot reload

abigotadoJun 1, 2023, 5:10 PM

### Is there an existing issue for this? - [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues) - [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports) ### Steps to reproduce After performing multiple hot restarts or hot reloads in web app occurs error of CanvasKit. It doesn't crash the app, but it always persists in console. I have seen old issues from 2021: #https://github.com/flutter/flutter/issues/90231 #https://github.com/flutter/flutter/issues/90236 Both are closed as resolved in: #flutter/engine#28675 But in my case problem occurs now with the latest version of Flutter. ### Expected results No errors ### Actual results Error of CanvasKit ### Code sample Just run any Flutter web app and preform multiple restarts/reloads. The problem occurs randomly after these steps. ### Screenshots or Video <details> <summary>Screenshots / Video demonstration</summary> [Upload media here] </details> ### Logs <details><summary>Logs</summary> ```console Error: Assertion failed: org-dartlang-sdk:///lib/_engine/engine/canvaskit/surface_factory.dart:148:12 _cache.contains(surface) is not true dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49 throw_ dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed lib/_engine/engine/canvaskit/surface_factory.dart 148:35 isLive lib/_engine/engine/canvaskit/surface.dart

Comments (0)

No comments yet. Start the discussion.

Comment on this issue