Skip to content

ptyHost crashes resulting in the terminal disconnecting #7123

@phorcys420

Description

@phorcys420

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows
  • Remote OS: Ubuntu
  • Remote Architecture: amd64
  • code-server --version: 4.95.3 b0c935a6e0742adde9f7a5f6e5816553ee0e7ffb with Code 1.95.3

Steps to Reproduce

  1. Install code-server
  2. Start it and open a terminal
  3. Wait 2-3 minutes at most

Expected

The terminal does not disconnect.

Actual

The terminal disconnects.

Logs

[2024-12-17T13:47:05.911Z] info  code-server 4.95.3 b0c935a6e0742adde9f7a5f6e5816553ee0e7ffb
[2024-12-17T13:47:05.912Z] info  Using user-data-dir /home/coder/.local/share/code-server
[2024-12-17T13:47:05.925Z] info  Using config file /home/coder/.config/code-server/config.yaml
[2024-12-17T13:47:05.925Z] info  HTTP server listening on http://127.0.0.1:8080/
[2024-12-17T13:47:05.925Z] info    - Authentication is enabled
[2024-12-17T13:47:05.925Z] info      - Using password from /home/coder/.config/code-server/config.yaml
[2024-12-17T13:47:05.925Z] info    - Not serving HTTPS
[2024-12-17T13:47:05.925Z] info  Using proxy URI in PORTS tab: https://{{port}}--dev--catfood--phorcys420--apps.dev.coder.com
[2024-12-17T13:47:05.925Z] info  Session server listening on /home/coder/.local/share/code-server/code-server-ipc.sock
[13:47:10]




[13:47:10] Extension host agent started.
File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm
File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js
[13:47:15] [127.0.0.1][2676939d][ManagementConnection] New connection established.
[13:47:18] [127.0.0.1][9fd98aab][ExtensionHostConnection] New connection established.
[13:47:18] [127.0.0.1][9fd98aab][ExtensionHostConnection] <438850> Launched Extension Host Process.

Screenshot/Video

Image
Image

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

Running npm install vsda in /usr/lib/code-server/lib/vscode is not a valid workaround and generates other issues:

[2024-12-17T13:55:09.475Z] info  code-server 4.95.3 b0c935a6e0742adde9f7a5f6e5816553ee0e7ffb
[2024-12-17T13:55:09.476Z] info  Using user-data-dir /home/coder/.local/share/code-server
[2024-12-17T13:55:09.488Z] info  Using config file /home/coder/.config/code-server/config.yaml
[2024-12-17T13:55:09.488Z] info  HTTP server listening on http://127.0.0.1:8080/
[2024-12-17T13:55:09.488Z] info    - Authentication is enabled
[2024-12-17T13:55:09.488Z] info      - Using password from /home/coder/.config/code-server/config.yaml
[2024-12-17T13:55:09.488Z] info    - Not serving HTTPS
[2024-12-17T13:55:09.488Z] info  Using proxy URI in PORTS tab: https://{{port}}--dev--catfood--phorcys420--apps.dev.coder.com
[2024-12-17T13:55:09.488Z] info  Session server listening on /home/coder/.local/share/code-server/code-server-ipc.sock
[13:55:30] Extension host agent started.
[2024-12-17T13:55:32.082Z] error this.s.validator is not a constructor TypeError: this.s.validator is not a constructor
    at Wd.D (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:590)
    at Wd.handleUpgrade (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:91)
    at /usr/lib/code-server/out/node/routes/vscode.js:205:18
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/code-server/out/node/routes/vscode.js:28:58)
File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm
File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js
[2024-12-17T13:55:43.502Z] error this.s.validator is not a constructor TypeError: this.s.validator is not a constructor
    at Wd.D (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:590)
    at Wd.handleUpgrade (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:91)
    at /usr/lib/code-server/out/node/routes/vscode.js:205:18
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/code-server/out/node/routes/vscode.js:28:58)
[2024-12-17T13:55:55.503Z] error this.s.validator is not a constructor TypeError: this.s.validator is not a constructor
    at Wd.D (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:590)
    at Wd.handleUpgrade (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:91)
    at /usr/lib/code-server/out/node/routes/vscode.js:205:18
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/code-server/out/node/routes/vscode.js:28:58)
[2024-12-17T13:56:07.584Z] error this.s.validator is not a constructor TypeError: this.s.validator is not a constructor
    at Wd.D (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:590)
    at Wd.handleUpgrade (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:91)
    at /usr/lib/code-server/out/node/routes/vscode.js:205:18
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/code-server/out/node/routes/vscode.js:28:58)
[2024-12-17T13:56:19.551Z] error this.s.validator is not a constructor TypeError: this.s.validator is not a constructor
    at Wd.D (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:590)
    at Wd.handleUpgrade (file:///usr/lib/code-server/lib/vscode/out/server-main.js:206:91)
    at /usr/lib/code-server/out/node/routes/vscode.js:205:18
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/code-server/out/node/routes/vscode.js:28:58)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions