microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.95k stars 28.77k forks source link

Flutter: Open DevTool Widget Inspector Page with error (Error Loading webview) #203641

Closed azeunkn0wn closed 8 months ago

azeunkn0wn commented 8 months ago

Type: Bug

  1. Run a flutter project in debug mode
  2. Open DevTool Widget Inspector Page This will display the Widget Inspector window but without anything in it, and get error message: Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

This happens too often, and I have to restart VScode to make the webview work again. It's really annoying

VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5800X3D 8-Core Processor (16 x 3400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.91GB (11.54GB free)| |Process Argv|--crash-reporter-id 49fe4919-408a-422c-b1c7-6211c9d9c933| |Screen Reader|no| |VM|0%|
Extensions (77) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 TabOut|alb|0.2.2 flutter-snippets|ale|3.0.0 shaderlabvscodefree|aml|1.3.6 jsoncrack-vscode|Ayk|2.0.2 vscode-database|baj|2.2.3 dart-data-class-generator|Ben|0.5.5 htmlplay|bia|0.0.10 jump-to-test|bla|0.0.4 gitignore|cod|0.9.0 dart-code|Dar|3.80.0 flutter|Dar|3.80.0 vscode-markdownlint|Dav|0.54.0 vscode-eslint|dba|2.4.4 vscode-new-file|dku|4.0.2 githistory|don|0.6.20 gitlens|eam|14.7.0 vsc-material-theme|Equ|34.3.1 vsc-material-theme-icons|equ|3.4.0 prettier-vscode|esb|10.1.0 mason|Fel|0.1.11 figma-vscode-extension|fig|0.3.2 file-icons|fil|1.1.0 auto-close-tag|for|0.5.15 kotlin|fwc|0.2.34 build-runner|gae|0.8.0 arb-editor|Goo|0.0.12 todo-tree|Gru|0.0.226 vscode-test-explorer|hbe|2.21.1 json-to-dart|hir|3.5.8 rest-client|hum|0.25.1 pubspec-assist|jer|2.3.2 copy-markdown-as-html|jer|1.1.0 firebase-explorer|jsa|0.3.3 calculator|lix|0.1.1 l10nization|lsa|3.0.1 dart-import|lua|0.3.1 syntax-project-pbxproj|mar|0.1.3 csharp|ms-|2.15.30 vscode-dotnet-runtime|ms-|2.0.1 remote-containers|ms-|0.327.0 remote-ssh|ms-|0.107.1 remote-ssh-edit|ms-|0.86.0 vscode-remote-extensionpack|ms-|0.25.0 cpptools|ms-|1.18.5 cpptools-extension-pack|ms-|1.3.0 live-server|ms-|0.4.13 remote-explorer|ms-|0.4.1 remote-server|ms-|1.5.0 test-adapter-converter|ms-|0.1.9 awesome-flutter-snippets|Nas|4.0.1 color-highlight|nau|2.5.0 trailing-semicolon|nau|1.0.2 dartgettersetter|Pet|1.0.2 explorer-exclude|Pet|1.3.2 vscode-versionlens|pfl|1.9.2 material-icon-theme|PKi|4.33.0 material-product-icons|PKi|1.7.0 postman-for-vscode|Pos|0.18.0 quicktype|qui|12.0.46 vscode-yaml|red|1.14.0 synthwave-vscode|Rob|0.1.15 flutter-riverpod-snippets|rob|1.2.2 multi-command|ryu|1.6.0 iconfont-preview|stx|0.0.5 ayu|tea|1.0.5 vscode-todo-list|thi|1.0.4 vscode-fontawesome-gallery|tom|0.0.7 vscode-pets|ton|1.25.1 adb-interface-vscode|vin|0.22.4 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 vscode-icons|vsc|12.7.0 codetour|vsl|0.0.59 flutter-code-select|wan|1.1.1 flutter-assets-gen2|wee|0.1.5 cors-browser|Wsc|1.0.11 (2 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30933248 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementst:30887150 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 3ef8e399:30949928 ```
gjsjohnmurray commented 8 months ago

/causedByExtension

VSCodeTriageBot commented 8 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!