-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Unable to run sandboxed process when run as elevated under applocker #122951
Comments
(Experimental duplicate detection) |
Which specific insider build are you on? Please share the commit number. This should be in the about panel |
Here you go: Version: 1.56.0-insider (user setup) |
Thanks. Unfortunately I can't reproduce this issue with that build Can you try launching VS Code by running |
Based on the error message 1) and 2) are satisfied, very likely we are hitting 3) given the Lets check the webview devtools console log for any script errors thrown, if not we would have to expose a way to pause serviceworker execution on start to debug further, a similar feature provided by |
I see this stack appear before the error message:
I'm not sure if this is a Markdown-specific issue though. I can also try uninstalling and re-installing if you'd like. |
Interesting, this looks a lot like the #120157 I saw earlier but then could not reproduce anymore. |
@moward It happens for all webviews though, not just markdown previews, correct? |
Image file previews are also broken. Do these use WebViews? I see an empty window but no error notification and don't see anything in the verbose logs. Also, I just upgraded a different machine to 85f8ebf and am now seeing the same problem there. 🙁 |
I have noticed this issue on the stable build of 1.56.0 that was just released. I have found it only happens if I run vscode as administrator. I noticed because I couldn't read the release notes 😂 Error loading webview: Error: Could not register service workers: TypeError: Failed to register a ServiceWorker for scope ('vscode-webview://vs_code_release_notes/') with script ('vscode-webview://vs_code_release_notes/service-worker.js?platform=electron&id=vs_code_release_notes&vscode-resource-origin=https%3A%2F%2Fvs_code_release_notes.vscode-webview-test.com'): ServiceWorker cannot be started. |
You're absolutely right, @haugerbr. I always run as administrator and forgot to consider that. I just tried running without elevated permissions and the WebViews work |
@mjbvz I am an admin on the machine itself and vscode was installed through the windows installer. I am actually unable to open developer tools which is unfortunate because I was trying to get a better error message for you if one exists. I also tried submitting a bug though a non admin vscode instance so there would be more system information but I couldn't get it to post to github. |
@haugerbr can you launch with |
@deepak1556 the
|
Are you also unable to open devtools with the flag ? Just to confirm, did you make sure any open instances of vscode was exited before performing the above operation ?
This is indeed related to webview management but it is very likely just a side-effect of the actual bug which we haven't deduced yet. Can you also provide the output of |
For me using |
@StanKirilov Can you run with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@StanKirilov is at MS, so we can ask for more detailed logs/traces if needed. @deepak1556 What would help us investigate this issue? |
Wy not add 'no-sanbox' to SUPPORTED_ELECTRON_SWITCHES? We cann not run VSCode (windows) installed on networkdrive without --no-sandbox... Is a some issue or not? It is possible to fix VSCode (sandboxed) to run from networkdrive? |
Last Insider Version 1.79.0-insider 9084e08 x64 |
We have no problems working with projects located on networkdrive (mapped or not). |
I am on version 1.79.1 and get "The window teminated unexpectedly (reason: 'launch-failed, code: '18'" when running |
Upgraded to 1.79.2 and im still getting the same error. |
I’m not. But I suspect you’ll need to use the —highly annoying— |
I'm happy to have new argument in argv.json (disable-chromium-sandbox) :D but warning on edit persists: "Property disable-chromium-sandbox is not allowed." |
I'm running what I thought was a standard install. Version 1.18.1 (user setup). Not using UNC paths or accessing data on a network. The machine is domain-joined. If I try and run as an admin I get the "code 18" error as discussed at #185057 Verbose console output
Edit: |
Although I can get VSCode to launch with the command line options given above on a VDI image, how can I make that the default so that no matter how an end-user opens VSCode the switches above are applied. Right now, I just tweak the shortcut. The reason I ask is that I have Azure Data Studio on the same VDI and it opens fine every time. So, somehow they were able to set that as the default. |
Just a heads-up that 1.82.1 now needs |
I am having the same issue as described in #128649 on OS-X in Version 1.82.2 |
On Windows 11 (v1.82.2) with standard install, there is a workaround:
|
Steps to Reproduce:
The same thing happens for other WebViews, like opening an extension from the Extensions sidebar, or using the "Issue Reporter".
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: