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

TTYD 1.7.3 ttyd.win32.exe Crash on Windows 11 #1064

Closed
fcwys opened this issue Jan 18, 2023 · 13 comments
Closed

TTYD 1.7.3 ttyd.win32.exe Crash on Windows 11 #1064

fcwys opened this issue Jan 18, 2023 · 13 comments
Labels

Comments

@fcwys
Copy link

fcwys commented Jan 18, 2023

Describe the bug
TTYD 1.7.3 ttyd.win32.exe Crash on Windows 11,and version 1.7.2 ttyd.win10.exe is normal.

Screenshots
image

Environment:

  • OS: Microsoft Windows 11 Enterprise
  • OS Version: 10.0.22000
  • Browser: Chrome/86.0.4240.198 Safari/537.36

Additional context

C:\Users\admin\Desktop>ttyd.exe cmd
[2023/01/18 22:44:19:9249] N: ttyd 1.7.3-a8cae75 (libwebsockets 4.3.2-unknown)
[2023/01/18 22:44:19:9324] N: tty configuration:
[2023/01/18 22:44:19:9354] N:   start command: cmd
[2023/01/18 22:44:19:9383] N:   close signal: SIGHUP (1)
[2023/01/18 22:44:19:9413] N:   terminal type: xterm-256color
[2023/01/18 22:44:19:9453] N: lws_create_context: LWS: 4.3.2-unknown, NET SRV H1 WS MbedTLS ConMon IPV6-off
[2023/01/18 22:44:19:9592] N: elops_init_pt_uv:  Using foreign event loop...
[2023/01/18 22:44:19:9648] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2023/01/18 22:44:19:9754] N: __lws_lc_tag:  ++ [vh|0|default||7681] (1)
[2023/01/18 22:44:19:9814] N: [vh|0|default||7681]: lws_socket_bind: source ads 0.0.0.0
[2023/01/18 22:44:19:9876] N: __lws_lc_tag:  ++ [wsi|1|listen|default||7681] (2)
[2023/01/18 22:44:19:9915] N:  Listening on port: 7681
[2023/01/18 22:44:23:5341] N: __lws_lc_tag:  ++ [wsisrv|0|adopted] (1)
[2023/01/18 22:44:23:5391] N: HTTP / - 127.0.0.1
[2023/01/18 22:44:23:8013] N: __lws_lc_tag:  ++ [wsisrv|1|adopted] (2)
[2023/01/18 22:44:23:8292] N: HTTP /token - 127.0.0.1
[2023/01/18 22:44:24:3991] N: __lws_lc_tag:  ++ [wsisrv|2|adopted] (3)
[2023/01/18 22:44:24:4050] N: WS   /ws - 127.0.0.1, clients: 1
@fcwys fcwys added the bug label Jan 18, 2023
@Vazgen005
Copy link

same problem

@tsl0922
Copy link
Owner

tsl0922 commented Mar 3, 2023

Maybe a cross-compile issue.

I've reverted the win32 binary to native compiled one, can you check if it works on Windows 11?

@fcwys
Copy link
Author

fcwys commented Mar 3, 2023

Can you provide the download link of binary files for testing?

@tsl0922
Copy link
Owner

tsl0922 commented Mar 3, 2023

https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.win32.exe

@Vazgen005
Copy link

1.7.3 ttyd.win32.exe (download)

it worked for me

@fcwys
Copy link
Author

fcwys commented Mar 4, 2023

1.7.3 ttyd.win32.exe

It worked for me too.

@samyeyo
Copy link

samyeyo commented Nov 4, 2023

Same problem with the release binary 1.7.4 on Windows 11, once a client connects, ttyd crashes

@Noodle-Bug
Copy link

Same problem still happening on 1.7.4, Windows 11. Crashes on client connect

@tsl0922
Copy link
Owner

tsl0922 commented Nov 18, 2023

Same problem still happening on 1.7.4, Windows 11. Crashes on client connect

Try: https://support.microsoft.com/en-us/windows/make-older-apps-or-programs-compatible-with-windows-783d6dd7-b439-bdb0-0490-54eea0f45938#ID0EBH=Windows_11

I've tested it on a windows 11 VM, it works for me if I set the compatibility mode to Windows 8

@Noodle-Bug
Copy link

Running in Win8 compatibility mode stops it from hard crashing, but now it just errors in loop:

[2023/11/23 14:41:39:9043] E: pty_spawn: 0 (No error)

[2023/11/23 14:41:39:9117] N: WS closed from 127.0.0.1, clients: 0

[2023/11/23 14:41:39:9142] N: __lws_lc_untag:  -- [wsisrv|22|adopted] (1) 18.368ms

[2023/11/23 14:41:39:9162] N: HTTP /token - 127.0.0.1

[2023/11/23 14:41:40:2219] N: __lws_lc_tag:  ++ [wsisrv|23|adopted] (2)

[2023/11/23 14:41:40:2234] N: WS   /ws - 127.0.0.1, clients: 1

== CreateProcessW failed with error 2: The system cannot find the file specified.

[2023/11/23 14:41:40:2289] E: pty_spawn: 0 (No error)

[2023/11/23 14:41:40:2369] N: WS closed from 127.0.0.1, clients: 0

[2023/11/23 14:41:40:2394] N: __lws_lc_untag:  -- [wsisrv|23|adopted] (1) 17.509ms

[2023/11/23 14:41:40:2419] N: HTTP /token - 127.0.0.1

[2023/11/23 14:41:40:5466] N: __lws_lc_tag:  ++ [wsisrv|24|adopted] (2)

[2023/11/23 14:41:40:5491] N: WS   /ws - 127.0.0.1, clients: 1

== CreateProcessW failed with error 2: The system cannot find the file specified.

[2023/11/23 14:41:40:5551] E: pty_spawn: 0 (No error)

[2023/11/23 14:41:40:5626] N: WS closed from 127.0.0.1, clients: 0

[2023/11/23 14:41:40:5649] N: __lws_lc_untag:  -- [wsisrv|24|adopted] (1) 18.304ms

[2023/11/23 14:41:40:5680] N: HTTP /token - 127.0.0.1

[2023/11/23 14:41:40:8739] N: __lws_lc_tag:  ++ [wsisrv|25|adopted] (2)

[2023/11/23 14:41:40:8759] N: WS   /ws - 127.0.0.1, clients: 1

== CreateProcessW failed with error 2: The system cannot find the file specified.

[2023/11/23 14:41:40:8829] E: pty_spawn: 0 (No error)

[2023/11/23 14:41:40:8905] N: WS closed from 127.0.0.1, clients: 0

[2023/11/23 14:41:40:8925] N: __lws_lc_untag:  -- [wsisrv|25|adopted] (1) 18.556ms

[2023/11/23 14:41:40:8957] N: HTTP /token - 127.0.0.1

[2023/11/23 14:41:41:0451] N: received signal: SIGINT (2), exiting...

@tsl0922
Copy link
Owner

tsl0922 commented Nov 23, 2023

== CreateProcessW failed with error 2: The system cannot find the file specified.

the command you specified can not be found, try absolute path? or put it in PATH.

@Noodle-Bug
Copy link

== CreateProcessW failed with error 2: The system cannot find the file specified.

the command you specified can not be found, try absolute path? or put it in PATH.

I'll give it a shot in a moment, but just to note: it behaves the same way whether it's installed via scoop or from releases.

I'll update in a few minutes after I try running with absolute path

@Noodle-Bug
Copy link

Ok can confirm that giving absolute path as well as adding to path env has no change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants