VS Code Window Terminated Unexpectedly Crashed Code 135
When VS Code shows The window terminated unexpectedly reason crashed code 135, launch with ozone-platform x11, disable GPU, or move off 1.129.0.
Quick answer
Match The window terminated unexpectedly (reason: 'crashed', code: '135'). On Wayland Linux, launch with code --ozone-platform=x11 so GPU stays on. If that is not enough, try code --disable-gpu. If you are on 1.129.0, fully quit every VS Code process, then pin or reinstall 1.128.1, or update to 1.129.1 or newer. Reload Window alone is not enough. This is not the Extension host terminated unexpectedly 3 times within the last 5 minutes toast.
On this page
What we're seeing
- The exact dialog is The window terminated unexpectedly (reason: 'crashed', code: '135').
- Independent July 2026 first-hand microsoft/vscode issues quote that dialog on Ubuntu Wayland with NVIDIA, Linux Mint, Intel, and AMD systems after 1.129.0.
- First-hand leftovers include launching with --ozone-platform=x11, launching with --disable-gpu, and leaving 1.129.0 for 1.128.1 or 1.129.1+.
- Related dumps in the same cluster mention SIGBUS around shared memory, which is why version pin or update is a try-today path.
- The toast Extension host terminated unexpectedly 3 times within the last 5 minutes is a different fingerprint with different leftovers.
Start here
Try these first
Fix 1
Confirm the window crashed code 135 dialog
Match the window crash dialog before changing GPU flags or rolling back a build.
- Read the dialog. This guide is for The window terminated unexpectedly (reason: 'crashed', code: '135').
- If the message is Extension host terminated unexpectedly 3 times within the last 5 minutes, stop here and use that separate guide.
- Note Help → About version and whether you are on Wayland, X11, NVIDIA, Intel, or AMD.
Applies to Windows, Mac, Desktop
Fix 2
Launch with --ozone-platform=x11
July 2026 first-hand Wayland reports with the exact code 135 dialog cleared after launching VS Code under X11 while keeping GPU acceleration.
- Fully quit VS Code so no leftover process remains.
- From a terminal, launch with code --ozone-platform=x11.
- Open the same folder and confirm the window stays up.
- If you already run X11 only, this flag may do nothing. Move to the GPU or version leftover below.
Applies to Desktop
Fix 3
Launch with --disable-gpu
The same first-hand cluster also recovered with --disable-gpu when the ozone flag was not enough or the session was already on X11.
- Fully quit VS Code.
- Launch with code --disable-gpu.
- Confirm the dialog does not return, then decide whether to keep that launch flag in your desktop shortcut.
Applies to Windows, Mac, Desktop
Fix 4
Leave 1.129.0 for 1.128.1 or 1.129.1+
First-hand bisects in July 2026 show 1.128.x stable and 1.129.0 crashing with code 135, with later 1.129.1+ builds recovering for some reporters. Prefer backing up settings before a downgrade.
- Confirm Help → About shows 1.129.0, or that crashes started right after that update.
- Export or copy settings and keybindings if you will downgrade.
- Fully quit every VS Code process, then install 1.128.1, or update to 1.129.1 or newer.
- Relaunch and confirm The window terminated unexpectedly (reason: 'crashed', code: '135') is gone.
Applies to Windows, Mac, Desktop
Device notes
- Windows
- --disable-gpu and leaving 1.129.0 apply on Windows. The ozone X11 leftover is mainly for Linux Wayland.
- Mac
- Prefer --disable-gpu or a version change if this dialog appears on macOS. Ozone X11 is not a Mac path.
- Desktop
- Linux Wayland plus NVIDIA was the densest first-hand cluster for code 135. Try ozone X11 first, then disable-gpu, then leave 1.129.0.
Official information
Checked on 14 September 2026, microsoft/vscode GitHub issues that quote The window terminated unexpectedly (reason: 'crashed', code: '135') document first-hand leftovers for --ozone-platform=x11, --disable-gpu, and leaving 1.129.0 for 1.128.1 or later 1.129 builds. There is no separate VS Code Docs page that names only this exact dialog.
Sources
Keep troubleshooting
Related problems
VS Code
VS Code Extension Host Terminated Unexpectedly 3 Times
Windows · Mac · DesktopUpdated Sep 9, 2026
Roblox
Roblox Encountered an Unexpected Error on Windows
Windows · DesktopUpdated Sep 15, 2026
ChatGPT
ChatGPT Desktop Oops Error After Second Folder
Windows · DesktopUpdated Sep 14, 2026
WhatsApp Desktop Stuck Loading WebView2 on Windows
Windows · DesktopUpdated Sep 14, 2026