question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run sandboxed process when run as elevated under applocker

See original GitHub issue
  • VS Code Version: 1.56.0-insider (user setup)
  • OS Version: Windows_NT x64 10.0.19042
  • Electron: 12.0.4
  • Chrome: 89.0.4389.114
  • Node.js: 14.16.0
  • V8: 8.9.255.24-electron.0

Steps to Reproduce:

  1. Open a markdown file, and click the “Open preview to the side” button
  2. The preview window is blank, and an error notification pops up in the bottom right:

Error loading webview: Error: Could not register service workers: TypeError: Failed to register a ServiceWorker for scope (‘vscode-webview://36f8a74c-37c6-4d60-9d4c-87414f69ebcc/’) with script (‘vscode-webview://36f8a74c-37c6-4d60-9d4c-87414f69ebcc/service-worker.js?platform=electron&id=36f8a74c-37c6-4d60-9d4c-87414f69ebcc&vscode-resource-origin=https%3A%2F%2F36f8a74c-37c6-4d60-9d4c-87414f69ebcc.vscode-webview-test.com’): ServiceWorker cannot be started.

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:80
  • Comments:106 (29 by maintainers)

github_iconTop GitHub Comments

10reactions
jingpengwcommented, May 19, 2022

I killed existing related processes, this works again for me.

ps aux | grep -i vscode | less
pkill -f vscode
8reactions
deepak1556commented, Jul 21, 2021

@eduncan911 and others who are facing the issue on linux, please open a separate issue as the root cause is unrelated. This issue only tracks the problem on windows due to chromium sandbox disallowing to start the service worker process when run as elevated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AppLocker issue in Windows 10 - Google Groups
Hello,. I found an issue with Chromium sandbox when AppLocker is running, it's not something critical but maybe worth improving.
Read more >
740132 - AppLocker incompatibility with Sandbox - Monorail
I found an issue with Chromium sandbox when AppLocker is running, it's not something critical but maybe worth improving.
Read more >
[.06] Could not execute SandboxieRpcSs.exe - Page 2 - Sandboxie ...
I use default AppLocker rules. "Run As UAC Administrator" doesn't bypass AppLocker rules in v4.01.06, it doesn't prompt for elevation. With or without...
Read more >
Sandboxing with Hyper-V and Windows Containers
How to perform sandboxing in a Windows environment using HYPER-V and ... You can use Hyper-V to create and run a virtual machine...
Read more >
App Locker: admin user (non-admin token) unexpected run ...
As an administrative user with a filtered token (not choosing Run As Admin), when I double-click an .exe residing in a location that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found