Skip to content
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

VSCode select process hangs if "/bin/ps" doesn't exists #150754

Closed
mikicho opened this issue May 30, 2022 · 2 comments
Closed

VSCode select process hangs if "/bin/ps" doesn't exists #150754

mikicho opened this issue May 30, 2022 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@mikicho
Copy link

mikicho commented May 30, 2022

Issue Type: Bug

Steps to reproduce:

  1. sudo apt remove procps
  2. Run "Attach to Node process"

Expected:
Node processes will be shown and I could select one OR an appropriate error will appear.

Actual:
The search for processes never end and in the logs I see:

[2022-05-31 00:29:01.841] [renderer1] [error] spawn /bin/ps ENOENT: Error: spawn /bin/ps ENOENT
	at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
	at onErrorNT (node:internal/child_process:477:16)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)

VS Code version: Code 1.67.2 (c3511e6, 2022-05-17T18:15:52.058Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz (16 x 2611)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 79.20GB (57.63GB free)
Process Argv --file-uri vscode-remote://wsl%2Bdebian/home/michael/workspace.code-workspace --crash-reporter-id 9d1fd1f0-12df-4210-8d0c-1b2b936a3793
Screen Reader no
VM 0%
Item Value
Remote WSL: Debian
OS Linux x64 5.10.102.1-microsoft-standard-WSL2
CPUs 11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz (16 x 2611)
Memory (System) 62.18GB (57.54GB free)
VM 0%
Extensions (5)
Extension Author (truncated) Version
remote-wsl ms- 0.66.3
vim vsc 1.22.2
vscode-eslint dba 2.2.2
gitlens eam 12.0.7
code-spell-checker str 2.2.0
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdf:30486550

@roblourens roblourens assigned connor4312 and unassigned roblourens Jun 1, 2022
@connor4312 connor4312 added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Jun 6, 2022
@connor4312
Copy link
Member

Fixed in microsoft/vscode-js-debug#1291

@aeschli aeschli added the verified Verification succeeded label Jun 28, 2022
@aeschli
Copy link
Contributor

aeschli commented Jun 28, 2022

Verified that the process no longer hangs. The dialog message could be a bit more helpful. But then, I'm not sure how often that case comes up.
image

@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants