-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Debug failed to load: Process picker failed (your 131072x1 screen size is bogus, expect trouble) #75932
Comments
Fyi, I encountered the exact same issue with the same configuration. |
I'm having the same issue. As @CrshOverride said, if you hardcode the pid in the config file it will work. However this workaround is much slower than the automatic pid finding. I'd like to see a fix for this soon since it looks like a simple issue |
7 months later and the issue still exists. Hoping to see some update on the issue. |
As a workaround, I attach via remote debugger: In launch.json
And start node with --inspect. This works even better with nodemon: |
I'm also seeing this trying to switch what solution Omnisharp is analyzing in the C# extension when using WSLv2. |
I hit this as well, with the same config as the original report: WSL2, code launched from inside WSL2, then trying to use the process picker to look for running node.js instances. Workaround also worked: I can make a launch task that attaches via the specific node debugger port and it works fine. |
This issue is basically a variant of #35798: On some linux systems, the "/bin/ps" command tries to verify that the screen size is big enough to print something useful. If the size is too small, the message "your 131072x1 screen size is bogus, expect trouble" gets send to stderr. Since the VS Code "process picker" is using "/bin/ps" to find all node.js processes it suffer from this useless error message: if an error is detected on stderr, the picker shows the error and assumes that the "ps" has failed. The workaround is to detect and ignore this special "error" produced by "ps". |
@weinand Can we please keep the issue open until the fix is implemented and merged? I will not be able to use VSCode until this gets fixed, as this is a blocker for me |
This fix is implemented and merged. It will appear in the next Insiders (tomorrow). |
@hanefi can you confirm whether the fix worked for you? 🙂 |
Bot isn't happy with commits in other repos... I'll work on this. In the mean time, @hanefi you can help us out by testing that things work as expected now, and if so comment |
Not the original reporter, but I just gave this a whirl with the insider's build and no longer get the error. I launched code-insiders from inside an Ubuntu WSL2 instance then did Debug: Attach to Node Process. I was presented with a list of three node processes, all running on the Windows side. It did not show anything running in my Docker containers. I then launched code (not insiders) from the same Ubuntu instance and tried Debug: Attach to Node Process. I got the error reported above. So it appears fixed! |
@danecreekphotography thanks for verifying. |
Thanks! I didn't want to directly add the slash verified since I wasn't the original reporter. |
@danecreekphotography it only works for the issue author anyways :) |
The fix allowed me to completely move to WSL 2. Great work team. |
…itiates similar fix for a different extension microsoft/vscode-node-debug/commit/5298920
…0563 (and microsoft/vscode/issues/75932) (#5669) * ignore 'screen size is bogus' error; fixes microsoft/vscode#75932; imitiates similar fix for a different extension microsoft/vscode-node-debug/commit/5298920
…0563 (and microsoft/vscode/issues/75932) (#5669) * ignore 'screen size is bogus' error; fixes microsoft/vscode#75932; imitiates similar fix for a different extension microsoft/vscode-node-debug/commit/5298920
Debugger failed to load when using with "attach by process ID".
I'm running VS Code connected to WSL 2 with Ubuntu 18.04.2 LTS.
I had the same code running in pure Windows environment, and debugger launched fine. I start getting this screen size is bogus error when I moved my code to WSL 2, unsure if it's WSL related or VS Code.
Version: 1.35.1 (system setup)
Commit: c7d83e5
Date: 2019-06-12T14:30:02.622Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.18917
*** I use the official Microsoft "Remote - WSL" extension from marketplace to connect to WSL
Steps to Reproduce:
{ "type": "node", "request": "attach", "name": "Attach by Process ID", "processId": "${command:PickProcess}" }
The text was updated successfully, but these errors were encountered: