-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webview Service Worker Error in registration due to invalid document state #125993
Comments
(Experimental duplicate detection) |
I'm the author of Git Graph, which is one of the extensions that is affected by this (as my extension leverages Visual Studio Code Webview's for it's core user interface). This Service Worker error occurs within Visual Studio Code's Webview implementation, so it affects all extensions that use Webviews. It prevents the Webview from loading, for all the affected users. mhutchie/vscode-git-graph#508 includes an image of a stack trace of this error in the first comment. This bug first appeared in Visual Studio Code 1.56.0, and only occurred for numerous Linux users (but definitely not all). Reports of this issue lasted about a week or so, so I assumed it had been fixed in one of the 1.56.x patches. However, with the release of Visual Studio Code 1.57.0, I've now had reports that this issue is occurring again. Looping in @mjbvz - Are you able to provide some assistance? |
For information: restarting the PC solved the issue for me ATM. So, it may be related to some sort of cache that is cleared after reboot? This issue appeared for me twice, every time after a vs code update. The first time updating from 1.55 to 1.56 and now updating from 1.56 to 1.57. I don't know if the fix on 1.56 happened after a reboot as well. |
I also have this issue on Linux, be good to get a fix soon. Update: Rebooting fixed the issue, thanks @tritemio |
Duplicate of #122951 |
Rebooting is not an option for me, and I love the Git Graph extension. As well as ability to view images and other neats within vscode tabs. Please consider re-opening and fixing. Thanks |
@mjbvz please reopen this issue. @deepak1556 just stated in #122951 that Linux users are a separate issue, even though it still has the Linux tag. |
Copying my comment from the "Windows" thread... Running Multiple extensions that use WebView all error with:
However, changing my Obviously, that is not preferred due to many years of customizing - that I do not want to start all over with.
(it's installed via Snap) Developer Tools before opening a file that uses webview has this error:
Developer Tools after I open a file that fails webview:
Additional info:
Here's my
I tried to downgrade to VSCode 1.55; but, when opening a file now for webview, it doesn't seem to trigger the extensions any longer (something broke). |
Please provide the trace following the steps below:
|
We can see that all the reported issues happen with the snap version of VS Code. It is an unofficial build. It would be a fix to install the official build of VS Code. |
I think that's incorrect. Right at the top of the Installation page, it says it's the official distribution method for VSCode:
https://code.visualstudio.com/docs/setup/linux Snap is highly preferred over Deb packages because it is sandboxed, isolated from corrupting the system. |
Thank you for your correction. |
For me it occurs anytime I install an extension, which opens up their setting page right after. Restarting vscode fixes the issue for some time. |
worked like a charm. |
This worked like a charm for me in Ubuntu, remember to refresh VSCode! thanks a lot! |
This isn't a linux/snap issue, I've seen it plenty of times on Windows. |
Get it on windows, on a fresh install |
If you are using Ubuntu, there is probably another (maybe hidden) vscode process, which is causing the problem. Close the vs code first and in terminal try: |
Got that all of a sudden on 1.87.0. OK after reboot but I hope it won’t come back too often. 😆 |
This could be a blink bug, maybe resulting from some sort of race condition ... the error is triggered here https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/modules/service_worker/service_worker_container.cc#L427-L430 The |
Easy workaround on Linux:
|
i got this problem when i open second vscode windows. vscode version: 1.89.0 |
Same issue Here!! Does this issue occur when all extensions are disabled?: No, sice i need to install the markdown extension to occur VS Code Version: 1.89.1 dc96b83 x64 Install markdown preview or other Rxtension that uses webview |
Same, worked perfectly, quote replying for future readers |
Works for same issue when displaying markdown and png files. OS: Debian Bookworm 12.6 |
Does this issue occur when all extensions are disabled?: No
Steps to Reproduce:
The gitgraph extension shows this error:
The text was updated successfully, but these errors were encountered: