-
Notifications
You must be signed in to change notification settings - Fork 27
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
Freeze on process.iseof() #423
Comments
Hi @shadoxxhd, thanks for the report! Could you please check if this behavior occurs when the executable is called in CMD/Terminal? |
Running the executable from the terminal with these inputs doesn't cause any freeze. |
Should I open an issue in the wintpy-rs repo for this? |
Hi @shadoxxhd, I haven't got time to check this issue. A release for both packages is pending, I'll check it by that time. In the meantime, feel free to explore the codebase at winpty-rs to see if something comes up that could be related to this specific issue. Any contribution is welcome |
Hi, did you end up looking into this? I am unsure how I'd go about debugging this, especially without having any rust development environment set up. |
@shadoxxhd, sorry for the delay in answering, I need to fix some issues in the latest winpty-rs release related to exit/EOF, hopefully this will address this issue |
In trying to find a workaround for the iseof issue, I encountered another problem related to exit/EOF. You seem to be aware of the issue, but in case it helps: PtyProcess can apparently get stuck on Having a separate thread call Using the PTY and |
When trying to automate steamcmd (https://developer.valvesoftware.com/wiki/SteamCMD), I found a condition where pywinpty freezes when process.isoef() is called:
This seems to be the minimal example - I don't know what the trigger is exactly, but when the login is successful (real user/password combination instead of "None None", or even just "anonymous"), it doesn't cause winpty to freeze. Importantly, it doesn't get stuck in the loop - the proc.iseof() instruction itself freezes in that condition, even when trying to step into it with pdb!
The text was updated successfully, but these errors were encountered: