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

vhs freezes when i try to load a file #437

Open
ilasdavide2011 opened this issue Jan 25, 2024 · 6 comments
Open

vhs freezes when i try to load a file #437

ilasdavide2011 opened this issue Jan 25, 2024 · 6 comments

Comments

@ilasdavide2011
Copy link

for some reason when i try to load a file into vhs it freezes

i'm using the powershell on windows 11
(i installed vhs with scoop)

d.tape:

# Where should we write the GIF?
Output demo.gif

# Set up a 1200x600 terminal with 46px font.
Set FontSize 46
Set Width 1200
Set Height 600

# Type a command in the terminal.
Type "echo 'Welcome to VHS!'"

# Pause for dramatic effect...
Sleep 500ms

# Run the command by pressing enter.
Enter

# Admire the output for a bit.
Sleep 5s`

and when i run vhs d.tape
it freezes with this output

File: d.tape
Host your GIF on vhs.charm.sh: vhs publish <file>.gif
Output .gif demo.gif
Set FontSize 46
Set Width 1200
Set Height 600
@boonhapus
Copy link

I get the same -- it happens as soon as you attempt to issue any keys. I've tried with various of Type | Enter | Up | Down , the only way out is to kill the process.

> vhs --version
vhs version v0.7.1 (537d03a)

> systeminfo | findstr /B /C:"OS Name" /B /C:"OS Version"
OS Name:                   Microsoft Windows 11 Home
OS Version:                10.0.22631 N/A Build 22631

@maaslalani
Copy link
Member

Thank you so much for the bug reports! It seems there is an issue on Windows, I will try and debug.

@EarMaster
Copy link

I have the same problem on Windows 11 in cmd.

@70sh1
Copy link

70sh1 commented Mar 3, 2024

I have the same issue. I tried to remove all the lines in the .tape file one by one until something changes. Eventually all that left was a single Output aa.gif line and it still freezes.

Windows 11, PowerShell v7.4.1

@aarol
Copy link

aarol commented Mar 16, 2024

The issue seems to be that ttyd fails to start properly (crashes) on Windows 11, which results in vhs freezing before anything can be recorded.

The fix for me was to downgrade ttyd from 1.7.4 to 1.7.3 per this issue.

@maaslalani
Copy link
Member

Thanks so much @aarol, appreciate the information!

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

No branches or pull requests

6 participants