-
Notifications
You must be signed in to change notification settings - Fork 169
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
winpty-agent.exe crashes when running Far Manager and resizing terminal #30
Comments
Yeah, winpty doesn't currently handle programs that change the window/buffer sizes. I think this can be fixed. |
I have some experimental changes to winpty that detect when the console buffer is resized and switches to a different mode that makes no effort to track scrolling. These changes fix the crashing. Unfortunately, opening Far Manager under winpty in Windows 10 intermittently hangs
At this point, the console window becomes non-responsive, and Far Manager does not appear. Closing the console window isn't possible -- to clean up, conhost.exe must be killed from the Task Manager. winpty hits this hang because it's using selection to momentarily freeze console output while it scrapes. It needs to freeze console output so it gets a consistent view of the console buffer content. It can't read the whole buffer at once, because reads are limited to something like 30KB. (In older versions of Windows, anyway. Maybe that's changed in Windows 10...) |
The original complaint should be fixed by d464089. Resizing the terminal no longer crashes winpty. Starting and stopping Far Manager can hang conhost.exe in Windows 10, though, so I'll leave this issue open for now. A workaround is to enable legacy mode. |
IIRC, newer releases of Windows 10 fix the |
When running Far Manager (http://www.farmanager.com/) under control of winpty, increasing the vertical terminal size (e.g. mintty) crashes winpty_agent.exe due to an assertion failure:
Assertion failed: bufferRect.contains(newWindowRect), file Win32Console.cc, line 222
The reason seems to be that Far Manager changes the console buffer size to the window size, which winpty cannot handle properly.
The text was updated successfully, but these errors were encountered: