vscode: window crashes(reason:"crashed", code: "133")

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.68.1
  • OS Version: Ubuntu 20.04.4 LTS

Steps to Reproduce:

  1. 创建一个yaml的配置文件,文件内容长度是12500行以上, create a file, yaml type, more than 12500 lines
  2. 鼠标左键按着窗口右边的滚动条,快速往上往下拖拉,就会出现这个错误 This error occurs when the left mouse button presses the scroll bar on the right side of the window and drags it up and down quickly.

image

image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 42 (4 by maintainers)

Most upvoted comments

Hi, just leaving this here for future readers I’m running vscode in a container and I no longer get this message after adding the --ipc=true flag and --disable-gpu flag. For reference, here is how I start my container and vscode

  1. Run podman with podman run -it --net=host -e DISPLAY --privileged --ipc=host $vscode-image bash
  2. Run code in the container with code --disable-gpu --no-sandbox --user-data-dir /temp

Any update? I also have the issue

image

This fixed it for me on Linux.

rm -rf ~/.config/Code/

The nuclear option to full delete its state.

Edit: that resolved nothing. This appears to be a problem in the Ubuntu snap version 5e805b79

I’m still getting this on 1.74.3

image

Starting from VSCode 1.78.0 (and previous insider builds) we also see error code 133 reason crashed in our CI tests.

            launchArgs: [
                '--disable-extensions',
                '--disable-gpu',
                '--disable-gpu-sandbox',
                '--disable-workspace-trust',
                '--log', 'debug', '--verbose'
            ],

The error message is just [main 2023-05-04T08:23:27.753Z] [UtilityProcess id: 1, type: extensionHost, pid: 924580]: crashed with code 133 and reason 'crashed' Exit code: 133 and verbose or debug log level do not really help.

Someone has any other idea instead download from deb?

Wait for a while until distros update to a new enough version that it no longer crashes? The deb solution is to just get the latest (non-crashing) version. Eventually they will catch up if you wait it out.

File a ticket with your distro and ask them to update.

It works for a while and stop, i dont know if you have a lasting solution

The lasting solution, unfortunately, was I had to completely remove VSCode provided by my distro software repo and manually downloaded the one-off DEB from the official VSCode website.

I’ve narrowed the problem down to it has something to do with the marketplace extension metadata. When the metadata loads it crashes.

Using the downloaded VSCode works now but I have to manually update it by downloading DEB from the browser in the future.

Thanks so much, fixed it.

It works for a while and stop, i dont know if you have a lasting solution

The lasting solution, unfortunately, was I had to completely remove VSCode provided by my distro software repo and manually downloaded the one-off DEB from the official VSCode website.

I’ve narrowed the problem down to it has something to do with the marketplace extension metadata. When the metadata loads it crashes.

Using the downloaded VSCode works now but I have to manually update it by downloading DEB from the browser in the future.

Same problem. image

I have the same problem. OS ubuntu 22.04 version 1.73.1

zip-file contains dmp file from startup. b332f061-38ba-4d7f-9591-0181c171c4d8.zip

Verbose logging shows

Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information.
[main 2022-11-10T09:33:35.453Z] CodeWindow: renderer process gone (reason: crashed, code: 133)
[main 2022-11-10T09:33:35.482Z] Extension host with pid 35766 exited with code: 0, signal: null.
Error sending from webFrameMain:  Error: Render frame was disposed before WebFrameMain could be accessed
    at s.send (node:electron/js2c/browser_init:173:631)
    at g.send (node:electron/js2c/browser_init:169:2645)
    at E.send (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:16:57596)
    at a.sendBuffer (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:5015)
    at a.send (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:4955)
    at a.sendResponse (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:4810)
    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:24:340
    at w.invoke (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:145)
    at v.deliver (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:2270)
    at g.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:1848)
    at ChildProcess.<anonymous> (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:79:48670)
    at ChildProcess.emit (node:events:526:28)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Error sending from webFrameMain:  Error: Render frame was disposed before WebFrameMain could be accessed
    at s.send (node:electron/js2c/browser_init:173:631)
    at g.send (node:electron/js2c/browser_init:169:2645)
    at E.send (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:16:57596)
    at a.sendBuffer (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:5015)
    at a.send (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:4955)
    at a.sendResponse (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:4810)
    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:24:340
    at w.invoke (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:145)
    at v.deliver (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:2270)
    at g.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:1848)
    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:17:20833
    at w.invoke (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:145)
    at v.deliver (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:2270)
    at g.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:1848)
    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:17:19787
    at w.invoke (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:145)
    at v.deliver (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:2270)
    at g.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:1848)
    at App.B (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:17:21726)
    at App.emit (node:events:538:35)
    at BrowserWindow.<anonymous> (node:electron/js2c/browser_init:37:560)
    at BrowserWindow.emit (node:events:526:28)

Only way for me to be able to use vscode again was to delete everything under ~/.config/Code/

same here , i don’t know what to do 😕

Me too!

I’m using Ubuntu 18.04 and just editing two python files with a few lines. After a few ‘format on save’, VSCode starts to slow down and it finally crashes.

Any update?

maybe you chose an empty directory,try this

./code --no-sandbox --user-data-dir $NON-EMPTY-DIR

In my case it looks like it crashes immediately after a few actions are preformed in full screen mode (or window sizes almost as large as full screen). I.e. when the window is first opened VSC has a small windows where it is relatively stable. But as soon as it crashes in full screen and is restarted, VSC will open up in full screen again and immediately crash.

My workaround for the time being is to work with a small window.

There seem to be two issues, one with too many symlinks and one that crashes the renderer. I hope the stack trace gives some hints. However, I’m not able to share the complete log file. Maybe someone else can provide it? Starting VSC with code <path> --verbose gives all kind of debug information.

I use 1.71.0.

[main 2022-09-13T06:28:45.329Z] Unknown (FileSystemError): Error: ELOOP: too many symbolic links encountered, stat '/home/user'
    at l (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:30:4143)
    at r.toFileSystemProviderError (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:33:42520)
    at r.stat (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:33:34652)
    at async /usr/share/code/resources/app/out/vs/code/electron-main/main.js:33:34853
    at async Promise.all (index 7)
    at async r.readdir (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:33:34787) {
  code: 'Unknown'
}
[main 2022-09-13T06:28:45.330Z] Unknown (FileSystemError): Error: ELOOP: too many symbolic links encountered, stat '/home/user'
    at l (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:30:4143)
    at r.toFileSystemProviderError (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:33:42520)
    at r.stat (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:33:34652)
    at async /usr/share/code/resources/app/out/vs/code/electron-main/main.js:33:34853
    at async Promise.all (index 7)
    at async r.readdir (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:33:34787) {
  code: 'Unknown'
}
Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information.
[main 2022-09-13T06:28:46.398Z] CodeWindow: renderer process crashed (reason: crashed, code: 133)
Gtk-Message: 06:28:46.425: GtkDialog mapped without a transient parent. This is discouraged.
Error sending from webFrameMain:  Error: Render frame was disposed before WebFrameMain could be accessed
    at s.send (node:electron/js2c/browser_init:173:631)
    at g.send (node:electron/js2c/browser_init:169:2645)
    at w.send (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:16:50072)
    at c.sendBuffer (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:5029)
    at c.send (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:4969)
    at c.sendResponse (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:4824)
    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:24:340
    at E.invoke (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:145)
    at v.deliver (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:2272)
    at b.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:1850)
    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:17:20466
    at E.invoke (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:145)
    at v.deliver (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:2272)
    at b.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:1850)
    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:17:19415
    at E.invoke (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:145)
    at v.deliver (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:2272)
    at b.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:1850)
    at App.Q (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:17:21358)
    at App.emit (node:events:538:35)
    at BrowserWindow.<anonymous> (node:electron/js2c/browser_init:37:560)
    at BrowserWindow.emit (node:events:526:28)
[main 2022-09-13T06:28:46.447Z] Extension host with pid 6189 exited with code: 0, signal: null.
Error sending from webFrameMain:  Error: Render frame was disposed before WebFrameMain could be accessed
    at s.send (node:electron/js2c/browser_init:173:631)
    at g.send (node:electron/js2c/browser_init:169:2645)
    at w.send (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:16:50072)
    at c.sendBuffer (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:5029)
    at c.send (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:4969)
    at c.sendResponse (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:23:4824)
    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:24:340
    at E.invoke (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:145)
    at v.deliver (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:2272)
    at b.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:19:1850)
    at ChildProcess.<anonymous> (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:74:47841)
    at ChildProcess.emit (node:events:526:28)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)