vscode icon indicating copy to clipboard operation
vscode copied to clipboard

**The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’)**

Open TolardTuran opened this issue 1 year ago • 7 comments

Type: Performance Issue

it crashes every 30 seconds after last update

VS Code version: Code 1.98.0 (6609ac3d66f4eade5cf376d1cb76f13985724bcb, 2025-03-04T21:06:18.612Z) OS version: Linux arm64 6.6.74+rpt-rpi-2712 Modes:

System Info
Item Value
CPUs Cortex-A76 (4 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 2, 2, 1
Memory (System) 7.86GB (5.41GB free)
Process Argv
Screen Reader no
VM 0%
DESKTOP_SESSION LXDE-pi
XDG_CURRENT_DESKTOP LXDE
XDG_SESSION_DESKTOP LXDE-pi-x
XDG_SESSION_TYPE x11
Process Info
CPU %	Mem MB	   PID	Process
    1	   241	  5502	code main
    0	    89	  5505	   zygote
    0	   113	  5541	     gpu-process
    0	    89	  5506	   zygote
    0	    24	  5508	     zygote
    0	   113	  5546	   utility-network-service
    4	   185	  5609	shared-process
    0	     0	  6116	     /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	  6117	       /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	   153	  6034	fileWatcher [6]
    0	   201	  6044	extensionHost [6]
Workspace Info
|  Window (main.cpp - Tolard3d - Visual Studio Code)
|    Folder (Tolard3d): 1447 files
|      File types: png(309) json(144) cmake(101) txt(69) cpp(69) o(67) h(67)
|                  a(40) ttf(23) xml(18)
|      Conf files: cmake(101) launch.json(1) settings.json(1) tasks.json(1)
|      Launch Configs: cppdbg;
Extensions: none
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
5a9hg449:31230677
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
5b33h341:31253271

TolardTuran avatar Mar 06 '25 06:03 TolardTuran

I just had a similar problem (different error code). Downgrading to 1.97.2 works:

Arm64 1.97.2 Deb package

bogacg avatar Mar 06 '25 06:03 bogacg

same here - always when some new extensions or updates are loaded

AcidVienna avatar Mar 06 '25 19:03 AcidVienna

Same for me, making VSCode on the Raspberry Pi unusable.

jdbruner avatar Mar 06 '25 19:03 jdbruner

The fact they don't have a report option in the help menu, suggest to me they don't want to support Linux based problems, just their darlings Operating Systems like MacOS and Windows

richiephp avatar Mar 06 '25 21:03 richiephp

In my case (Pi 5 Bookworm) I suspect it may be related to a) vs code running when the update was applied and/or b) a venv active in the vs code terminal. It did not occur on my Pi 4 Bookworm system where vs code was not running at the time of the update. Also, Sourcegraph Cody extension was active.

Prolora avatar Mar 07 '25 05:03 Prolora

In my case (Pi 5 Bookworm) I suspect it may be related to a) vs code running when the update was applied and/or b) a venv active in the vs code terminal. It did not occur on my Pi 4 Bookworm system where vs code was not running at the time of the update. Also, Sourcegraph Cody extension was active.

How does software crash when its not running? My venv wasn't running at the time of crashing

richiephp avatar Mar 07 '25 09:03 richiephp

same for me. version 1.98 crashes after a few seconds on RPi5 Debian linux.
Installed older version (1.97) with following commands:

VERSION="1.97.2" # Change this to the version you want wget "https://update.code.visualstudio.com/$VERSION/linux-deb-arm64/stable" -O vscode.deb sudo apt install ./vscode.deb

sudo apt-mark hold code

MarcoPieters avatar Mar 07 '25 10:03 MarcoPieters

This does not repro for me on a 64-bit Intel box running Ubuntu 24.05.

jdbruner avatar Mar 07 '25 15:03 jdbruner

See https://github.com/microsoft/vscode/issues/242844#issuecomment-2705906632

gjsjohnmurray avatar Mar 07 '25 22:03 gjsjohnmurray

Also see #242843

You can work around it by launching it from bash with code --js-flags="--nodecommit_pooled_pages"

jdbruner avatar Mar 07 '25 22:03 jdbruner

/duplicate

gjsjohnmurray avatar Mar 07 '25 22:03 gjsjohnmurray

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

A link to the other issue would be helpful, rather than just telling us all to search for it (which I have just done and come here from my own issue where I got the identical response from https://github.com/apps/vs-code-engineering

drmikecooke avatar Mar 08 '25 16:03 drmikecooke

Found it: https://github.com/microsoft/vscode/issues/242742

Looks like will be fixed in the March release

drmikecooke avatar Mar 08 '25 16:03 drmikecooke

Version 1.98.1 still crashing in Pi5, Debian Bullseye.

cartheur avatar Mar 13 '25 10:03 cartheur

@cartheur 1.98.1 was a security release. This issue should be fixed in 1.98.2

gjsjohnmurray avatar Mar 13 '25 11:03 gjsjohnmurray

Nope, it's not fixed in 1.98.2

jdbruner avatar Mar 13 '25 22:03 jdbruner