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

WSL2 Kernel 6.1.X Can't use vscode "Segmentation fault" #10987

Closed
1 of 2 tasks
1trapbox opened this issue Jan 6, 2024 · 7 comments
Closed
1 of 2 tasks

WSL2 Kernel 6.1.X Can't use vscode "Segmentation fault" #10987

1trapbox opened this issue Jan 6, 2024 · 7 comments

Comments

@1trapbox
Copy link

1trapbox commented Jan 6, 2024

Windows Version

10.0.22631.2861

WSL Version

2.0.15.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.1.21.2-microsoft-standard-WSL2+
5.15.133.1-1

Distro Version

Ubuntu 24.04

Other Software

All latest versions

Repro Steps

vscode run wsl2 (Kernel 6.1.21.2) error message Segmentation fault
vscode run wsl2 (Kernel 5.15.133.1-1) error message Segmentation fault

Expected Behavior

no errors

Diagnostic Logs

[2024-01-06 15:43:45.116] WSL daemon log file: e:\Scoop\apps\vscode\1.85.1\data\user-data\logs\20240106T234343\window1\exthost\ms-vscode-remote.remote-wsl\wsl-daemon-20240106T154345.log
[2024-01-06 15:43:45.118] Probing if server is already installed: if [ -d ~/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-01-06 15:43:45.118] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu_Preview -e sh -c if [ -d ~/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-01-06 15:43:45.145] Using shell environment from invoking shell: /tmp/vscode-distro-env.EuIFLZ
[2024-01-06 15:43:44.815] Extension version: 0.81.8
[2024-01-06 15:43:44.815] L10N bundle: file:///e%3A/Scoop/apps/vscode/1.85.1/data/extensions/ms-vscode-remote.remote-wsl-0.81.8/l10n/bundle.l10n.zh-cn.json
[2024-01-06 15:43:44.824] authorityHierarchy: wsl+Ubuntu_Preview
[2024-01-06 15:43:44.824] WSL extension activating for a local WSL instance
[2024-01-06 15:43:44.838] Resolving wsl+Ubuntu_Preview, resolveAttempt: 1
[2024-01-06 15:43:44.838] NodeExecServer run: C:\Windows\System32\wsl.exe --status
[2024-01-06 15:43:44.913] WSL feature installed: true (wsl --status)
[2024-01-06 15:43:44.913] NodeExecServer run: C:\Windows\System32\wsl.exe --list --verbose
[2024-01-06 15:43:44.989] 2 distros found
[2024-01-06 15:43:44.990] Starting VS Code Server inside WSL (wsl2)
[2024-01-06 15:43:44.990] Windows build: 22631. Multi distro support: available. WSL path support: enabled
[2024-01-06 15:43:44.990] Scriptless setup: false
[2024-01-06 15:43:45.000] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu_Preview -e sh -c [ -f '/tmp/vscode-distro-env.EuIFLZ' ] && cat '/tmp/vscode-distro-env.EuIFLZ' || echo ''
[2024-01-06 15:43:45.262] Probing result: install-found x86_64
[2024-01-06 15:43:45.262] Server install found in WSL
[2024-01-06 15:43:45.262] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu_Preview sh -c 'env && VSCODE_WSL_DEBUG_INFO=true "$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=2884451484-164052681-1122192454-1677443017 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all'
[2024-01-06 15:43:45.264] Running with cwd: undefined, env: {
[2024-01-06 15:43:45.264]   "ALLUSERSPROFILE": "C:\\ProgramData",
[2024-01-06 15:43:45.264]   "APPDATA": "C:\\Users\\1trapshell\\AppData\\Roaming",
[2024-01-06 15:43:45.264]   "CHROME_CRASHPAD_PIPE_NAME": "\\\\.\\pipe\\crashpad_4216_HANXNZWVXNUHHEGA",
[2024-01-06 15:43:45.264]   "COMMONPROGRAMFILES": "C:\\Program Files\\Common Files",
[2024-01-06 15:43:45.264]   "COMMONPROGRAMFILES(X86)": "C:\\Program Files (x86)\\Common Files",
[2024-01-06 15:43:45.264]   "COMMONPROGRAMW6432": "C:\\Program Files\\Common Files",
[2024-01-06 15:43:45.264]   "COMPUTERNAME": "ROG",
[2024-01-06 15:43:45.264]   "COMSPEC": "C:\\Windows\\system32\\cmd.exe",
[2024-01-06 15:43:45.264]   "DRIVERDATA": "C:\\Windows\\System32\\Drivers\\DriverData",
[2024-01-06 15:43:45.264]   "GIT_INSTALL_ROOT": "E:\\Scoop\\apps\\git\\current",
[2024-01-06 15:43:45.264]   "GRAALVM_HOME": "E:\\Scoop\\apps\\graalvm-jdk17\\current",
[2024-01-06 15:43:45.264]   "HOMEDRIVE": "C:",
[2024-01-06 15:43:45.264]   "HOMEPATH": "\\Users\\1trapshell",
[2024-01-06 15:43:45.264]   "JAVA_HOME": "E:\\Scoop\\apps\\graalvm-jdk17\\current",
[2024-01-06 15:43:45.264]   "LOCALAPPDATA": "C:\\Users\\1trapshell\\AppData\\Local",
[2024-01-06 15:43:45.264]   "LOGONSERVER": "\\\\ROG",
[2024-01-06 15:43:45.264]   "NUMBER_OF_PROCESSORS": "24",
[2024-01-06 15:43:45.264]   "ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
[2024-01-06 15:43:45.264]   "OS": "Windows_NT",
[2024-01-06 15:43:45.264]   "PATH": "C:\\Software\\Vmware\\bin\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Software\\Bandizip\\;C:\\Program Files\\dotnet\\;C:\\Software\\AOMEI\\AOMEI Backupper\\6.10.0;E:\\Scoop\\apps\\vscode\\current\\bin;E:\\Scoop\\apps\\graalvm-jdk17\\current\\bin;E:\\Scoop\\apps\\python\\current\\Scripts;E:\\Scoop\\apps\\python\\current;E:\\Scoop\\apps\\graalvm21-jdk21\\current\\bin;E:\\Scoop\\shims;C:\\Users\\1trapshell\\AppData\\Local\\Microsoft\\WindowsApps",
[2024-01-06 15:43:45.264]   "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
[2024-01-06 15:43:45.264]   "PROCESSOR_ARCHITECTURE": "AMD64",
[2024-01-06 15:43:45.264]   "PROCESSOR_IDENTIFIER": "AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD",
[2024-01-06 15:43:45.264]   "PROCESSOR_LEVEL": "25",
[2024-01-06 15:43:45.264]   "PROCESSOR_REVISION": "2100",
[2024-01-06 15:43:45.264]   "PROGRAMDATA": "C:\\ProgramData",
[2024-01-06 15:43:45.264]   "PROGRAMFILES": "C:\\Program Files",
[2024-01-06 15:43:45.264]   "PROGRAMFILES(X86)": "C:\\Program Files (x86)",
[2024-01-06 15:43:45.264]   "PROGRAMW6432": "C:\\Program Files",
[2024-01-06 15:43:45.264]   "PROMPT": "$P$G",
[2024-01-06 15:43:45.264]   "PSMODULEPATH": "E:\\Scoop\\modules;C:\\Users\\1trapshell\\Documents\\WindowsPowerShell\\Modules",
[2024-01-06 15:43:45.264]   "PUBLIC": "C:\\Users\\Public",
[2024-01-06 15:43:45.264]   "SYSTEMDRIVE": "C:",
[2024-01-06 15:43:45.264]   "SYSTEMROOT": "C:\\Windows",
[2024-01-06 15:43:45.264]   "TEMP": "C:\\Users\\1TRAPS~1\\AppData\\Local\\Temp",
[2024-01-06 15:43:45.264]   "TMP": "C:\\Users\\1TRAPS~1\\AppData\\Local\\Temp",
[2024-01-06 15:43:45.264]   "USERDOMAIN": "ROG",
[2024-01-06 15:43:45.264]   "USERDOMAIN_ROAMINGPROFILE": "ROG",
[2024-01-06 15:43:45.264]   "USERNAME": "1trapshell",
[2024-01-06 15:43:45.264]   "USERPROFILE": "C:\\Users\\1trapshell",
[2024-01-06 15:43:45.264]   "WINDIR": "C:\\Windows",
[2024-01-06 15:43:45.264]   "WSLENV": "VSCODE_WSL_EXT_LOCATION/up:VSCODE_CLI_REMOTE_ENV/w:ELECTRON_RUN_AS_NODE/w:",
[2024-01-06 15:43:45.264]   "VSCODE_WSL_EXT_LOCATION": "e:\\Scoop\\apps\\vscode\\1.85.1\\data\\extensions\\ms-vscode-remote.remote-wsl-0.81.8"
[2024-01-06 15:43:45.264] }
[2024-01-06 15:43:45.385] USER=root
[2024-01-06 15:43:45.385] VSCODE_WSL_EXT_LOCATION=/mnt/e/Scoop/apps/vscode/1.85.1/data/extensions/ms-vscode-remote.remote-wsl-0.81.8
[2024-01-06 15:43:45.385] SHLVL=0
[2024-01-06 15:43:45.385] HOME=/root
[2024-01-06 15:43:45.385] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
[2024-01-06 15:43:45.385] WSL_DISTRO_NAME=Ubuntu_Preview
[2024-01-06 15:43:45.385] WAYLAND_DISPLAY=wayland-0
[2024-01-06 15:43:45.385] LOGNAME=root
[2024-01-06 15:43:45.385] NAME=ROG
[2024-01-06 15:43:45.385] WSL_INTEROP=/run/WSL/1934_interop
[2024-01-06 15:43:45.385] PULSE_SERVER=unix:/mnt/wslg/PulseServer
[2024-01-06 15:43:45.385] _=/usr/bin/sh
[2024-01-06 15:43:45.385] TERM=xterm-256color
[2024-01-06 15:43:45.385] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Software/Vmware/bin/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Software/Bandizip/:/mnt/c/Program Files/dotnet/:/mnt/c/Software/AOMEI/AOMEI Backupper/6.10.0:/mnt/e/Scoop/apps/vscode/current/bin:/mnt/e/Scoop/apps/graalvm-jdk17/current/bin:/mnt/e/Scoop/apps/python/current/Scripts:/mnt/e/Scoop/apps/python/current:/mnt/e/Scoop/apps/graalvm21-jdk21/current/bin:/mnt/e/Scoop/shims:/mnt/c/Users/1trapshell/AppData/Local/Microsoft/WindowsApps
[2024-01-06 15:43:45.385] XDG_RUNTIME_DIR=/run/user/0/
[2024-01-06 15:43:45.385] DISPLAY=:0
[2024-01-06 15:43:45.385] LANG=en_US.UTF-8
[2024-01-06 15:43:45.385] SHELL=/bin/bash
[2024-01-06 15:43:45.385] PWD=/mnt/e/Scoop/apps/vscode/1.85.1
[2024-01-06 15:43:45.385] WSL2_GUI_APPS_ENABLED=1
[2024-01-06 15:43:45.385] HOSTTYPE=x86_64
[2024-01-06 15:43:45.385] WSLENV=VSCODE_WSL_EXT_LOCATION/up:VSCODE_CLI_REMOTE_ENV/w:ELECTRON_RUN_AS_NODE/w:
[2024-01-06 15:43:45.385] Setting up server environment: Looking for /root/.vscode-server/server-env-setup. Not found.
[2024-01-06 15:43:45.385] WSL version: 6.1.21.2-microsoft-standard-WSL2+ Ubuntu_Preview
[2024-01-06 15:43:45.385] WSL-shell-PID: 1937
[2024-01-06 15:43:45.385] Node executable: /root/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/node
[2024-01-06 15:43:45.385] Starting server: /root/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/bin/code-server --host=127.0.0.1 --port=0 --connection-token=2884451484-164052681-1122192454-1677443017 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all
[2024-01-06 15:43:45.387] + CODE_PROFILE=/root/.vscode-server/server-env-setup
[2024-01-06 15:43:45.387] + printf Setting up server environment: Looking for %s.  /root/.vscode-server/server-env-setup
[2024-01-06 15:43:45.387] + [ -f /root/.vscode-server/server-env-setup ]
[2024-01-06 15:43:45.387] + echo Not found.
[2024-01-06 15:43:45.387] + VSCODE_REMOTE_BIN=/root/.vscode-server/bin
[2024-01-06 15:43:45.387] + uname -r
[2024-01-06 15:43:45.387] + WSL_VERSION=6.1.21.2-microsoft-standard-WSL2+
[2024-01-06 15:43:45.387] + echo WSL version: 6.1.21.2-microsoft-standard-WSL2+ Ubuntu_Preview
[2024-01-06 15:43:45.387] + dirname /mnt/e/Scoop/apps/vscode/1.85.1/data/extensions/ms-vscode-remote.remote-wsl-0.81.8/scripts/wslServer.sh
[2024-01-06 15:43:45.387] + /mnt/e/Scoop/apps/vscode/1.85.1/data/extensions/ms-vscode-remote.remote-wsl-0.81.8/scripts/wslDownload.sh 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 stable /root/.vscode-server/bin
[2024-01-06 15:43:45.387] + [ ! -d /root/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 ]
[2024-01-06 15:43:45.387] + RC=0
[2024-01-06 15:43:45.387] + [ 0 -ne 0 ]
[2024-01-06 15:43:45.387] + echo WSL-shell-PID: 1937
[2024-01-06 15:43:45.387] + echo Node executable: /root/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/node
[2024-01-06 15:43:45.387] + echo Starting server: /root/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/bin/code-server --host=127.0.0.1 --port=0 --connection-token=2884451484-164052681-1122192454-1677443017 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all
[2024-01-06 15:43:45.387] + [ -f /etc/alpine-release ]
[2024-01-06 15:43:45.387] + uname -m
[2024-01-06 15:43:45.387] + [ x86_64 = aarch64 ]
[2024-01-06 15:43:45.387] + /root/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/bin/code-server --host=127.0.0.1 --port=0 --connection-token=2884451484-164052681-1122192454-1677443017 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all
[2024-01-06 15:43:45.387] Segmentation fault
[2024-01-06 15:43:45.387] For help with startup issues, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2024-01-06 15:43:45.387] NodeExecServer run: C:\Windows\System32\wsl.exe -d Ubuntu_Preview -e kill 1937
[2024-01-06 15:43:46.973] Download in background is enabled
Copy link

github-actions bot commented Jan 6, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@1trapbox
Copy link
Author

1trapbox commented Jan 6, 2024

I searched for related questions.
For example, delete .vscode-server, reinstall, etc.
but it's still not solved.
I've never gotten this error before. I don't know why it's happening now.

@elsaco
Copy link

elsaco commented Jan 6, 2024

While wsl-kernel-6.1.x is not recommended for daily use it does work with wsl-2.0.15 and vscode-remote-connection:

elsaco@texas:~/kernel$ file arch/x86/boot/bzImage 
arch/x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 6.1.21.2-microsoft-standard-WSL2 (elsaco@RIPPER) #1 SMP Sat Jan  6 12:00:10 PST 2024, RO-rootFS, swap_dev 0XE, Normal VGA

remote-connection log output:

[2024-01-06 20:06:26.025] Extension version: 0.81.8
[2024-01-06 20:06:26.025] L10N bundle: undefined
[2024-01-06 20:06:26.027] authorityHierarchy: wsl+Debian
[2024-01-06 20:06:26.027] WSL extension activating for a local WSL instance
[2024-01-06 20:06:26.029] Resolving wsl+Debian, resolveAttempt: 1
[2024-01-06 20:06:26.030] WSL feature installed: true (dll path)
[2024-01-06 20:06:26.030] NodeExecServer run: C:\Windows\System32\wsl.exe --list --verbose
[2024-01-06 20:06:26.119] 3 distros found
[2024-01-06 20:06:26.120] Starting VS Code Server inside WSL (wsl2)
[2024-01-06 20:06:26.120] Windows build: 19045. Multi distro support: available. WSL path support: enabled
[2024-01-06 20:06:26.120] Scriptless setup: false
[2024-01-06 20:06:26.120] No shell environment set or found for current distro.
[2024-01-06 20:06:26.243] WSL daemon log file: 
[2024-01-06 20:06:26.245] Probing if server is already installed: if [ -d ~/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-01-06 20:06:26.245] NodeExecServer run: C:\Windows\System32\wsl.exe -d Debian -e sh -c if [ -d ~/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-01-06 20:06:26.379] Probing result: install-found x86_64
[2024-01-06 20:06:26.379] Server install found in WSL
[2024-01-06 20:06:26.380] NodeExecServer run: C:\Windows\System32\wsl.exe -d Debian sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=3207841358-2118257380-685952967-4134419091 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --disable-telemetry --telemetry-level=off'
[2024-01-06 20:06:26.689] Setting up server environment: Looking for /home/elsaco/.vscode-server/server-env-setup. Not found.
[2024-01-06 20:06:26.689] WSL version: 6.1.21.2-microsoft-standard-WSL2 Debian
[2024-01-06 20:06:26.689] WSL-shell-PID: 173
[2024-01-06 20:06:26.689] Node executable: /home/elsaco/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/node
[2024-01-06 20:06:26.689] Starting server: /home/elsaco/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/bin/code-server --host=127.0.0.1 --port=0 --connection-token=3207841358-2118257380-685952967-4134419091 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --disable-telemetry --telemetry-level=off
[2024-01-06 20:06:26.689] *
[2024-01-06 20:06:26.689] * Visual Studio Code Server
[2024-01-06 20:06:26.689] *
[2024-01-06 20:06:26.689] * By using the software, you agree to
[2024-01-06 20:06:26.689] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
[2024-01-06 20:06:26.689] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
[2024-01-06 20:06:26.689] *
[2024-01-06 20:06:26.689] Server bound to 127.0.0.1:36473 (IPv4)
[2024-01-06 20:06:26.689] Extension host agent listening on 36473
[2024-01-06 20:06:26.689] 
[2024-01-06 20:06:26.694] Started local proxy server on 57768.
[2024-01-06 20:06:26.695] WSL resolver response: 127.0.0.1:57768
[2024-01-06 20:06:26.695] To debug connection issues, open a local browser on http://127.0.0.1:57768/version
[2024-01-06 20:06:26.758] NodeExecServer run: C:\Windows\System32\wsl.exe -d Debian -e /home/elsaco/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 36473 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2024-01-06 20:06:26.881] NodeExecServer run: C:\Windows\System32\wsl.exe -d Debian -e /home/elsaco/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 36473 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2024-01-06 20:06:27.032] Download in background is enabled

Looking at your post this line stood out [2024-01-06 15:43:45.387] + [ x86_64 = aarch64 ]. Also your kernel version string has + at the end. It shouldn't be there. There's a bug filed on this issue already.

@1trapbox
Copy link
Author

1trapbox commented Jan 6, 2024

@elsaco
My current solution is to modify .wslconfig
Prior to the error, the .wslconfig file I had only set the kernel and memory.
Added experimental settings, so far all good.
networkingMode=mirrored solved this error

[wsl2]
kernel="E:\\WSL\\Kernel\\bzImage"
memory=16GB

# pre-release
[experimental]
networkingMode=mirrored
autoMemoryReclaim=gradual
sparseVhd=true
dnsTunneling=true
autoProxy=true
firewall=true

@ghost
Copy link

ghost commented Jan 9, 2024

Should this be filed against vscode? Also, for future reference, when we want logs, we want /logs

Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue.

Thank you!

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants