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.

Process explorer: update name for service worker process

See original GitHub issue

Steps to Reproduce:

  1. Open any webview, ex: open an extension page
  2. Open process explorer
  3. There will now be a window process with no associated title, it can be mistaken for workbench

Inspecting the window via remote debugging, the following are the location information

"vscode-webview://extensioneditor/service-worker.js?id=bd03d4e0-fea8-4a03-8b…de-resource.vscode-webview.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app"

Service workers are also spawned as renderer processes so it would be good to differentiate them in the explorer.

Screen Shot 2021-11-18 at 18 13 38

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
deepak1556commented, Nov 22, 2021

This requires some plumbing work in the runtime, currently chromium doesn’t differentiate the shared worker or service worker which are launched similar to other renderer process via command line arguments, there is lot of internal tracking involved which is what the Task Manager in chrome relies to identify and map these process PID to the correct type.

I will try to add a simple command line arguments to these worker renderers that would let us differentiate them in our process explorer, --renderer-type=service-worker, --renderer-type=shared-worker.

0reactions
Tyriarcommented, Nov 22, 2021

If there’s a way to map the PID to a friendly title on another proc that would work as well, that’s how the window names come into the proc explorer:

https://github.com/microsoft/vscode/blob/145e3802769319046f6fb35db76c5ca85b8ae1a1/src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts#L243-L247

Alternatively, I could just show any window without a title returned above as “service-worker”, but that feels like it will probably fall apart in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[improvement] Add service names into process filtering in ...
Latest ProcessExplorer can filter out processes by name (menu Find/Filter Processes). That's nice, but sometimes I want to find which ...
Read more >
Understanding Process Explorer - How-To Geek
This lesson in our Geek School series covers Process Explorer, perhaps the most used and useful application in the SysInternals toolkit.
Read more >
How to Use Process Monitor and Process Explorer
Do you often use Task Manager on your Windows 10 PC to keep track of ... the processes and choose Edit Filter to...
Read more >
Process Explorer - Oracle Help Center
Applications Upgrade Guide for Microsoft Windows with SQL Server.
Read more >
Troubleshooting with Process Explorer - YouTube
https://www.youtube.com/playlist?list... Update - Thank you to Mark Russinovich and David Solomon for giving me permission … Show more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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