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

ptyHost crashes resulting in the terminal disconnecting #7123

Open
2 tasks done
phorcys420 opened this issue Dec 17, 2024 · 1 comment
Open
2 tasks done

ptyHost crashes resulting in the terminal disconnecting #7123

phorcys420 opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@phorcys420
Copy link
Member

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)
@phorcys420 phorcys420 added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Dec 17, 2024
@vacerde
Copy link

vacerde commented Dec 17, 2024

This error also occurs when using Version 4.91.1 1962f48 with Code 1.91.1

at process.processTicksAndRejections (node:internal/process/task_queues:83:21) rejected promise not handled within 1 second: CodeExpectedError: Could not find pty on pty host stack trace: CodeExpectedError: Could not find pty on pty host at D.U (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:54:30811) at D.updateTitle (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:54:26011) at I.P.<computed> (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:54:21286) at Object.call (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:36:5367) at a.s (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:34:5506) at a.q (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:34:4947) at w.value (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:34:4247) at n.B (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:30:742) at n.fire (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:30:959) at process.we (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:25:27577) at process.emit (node:events:518:28) at emit (node:internal/child_process:951:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) [20:09:38] Error [CodeExpectedError]: Could not find pty on pty host at D.U (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:54:30811) at D.updateTitle (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:54:26011) at I.P.<computed> (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:54:21286) at Object.call (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:36:5367) at a.s (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:34:5506) at a.q (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:34:4947) at w.value (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:34:4247) at n.B (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:30:742) at n.fire (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:30:959) at process.we (/usr/lib/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:25:27577) at process.emit (node:events:518:28) at emit (node:internal/child_process:951:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) [20:09:43] [127.0.0.1][e77c45cb][ExtensionHostConnection] The client has reconnected. [20:09:56] No ptyHost heartbeat after 6 seconds [20:10:01] No ptyHost heartbeat after 12 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants