-
Notifications
You must be signed in to change notification settings - Fork 181
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
mintty / git-bash crashes when "Options..." menu is used. #610
Comments
I cannot reproduce that behaviour (after updating Git). |
I originally found the problem by running it from the start menu. The command I ran, including the I just tried it without the Sorry, I don't know what you mean by "move aside" regarding my .profile and .bashrc. I was going to give you the contents, but I don't seem to have a .profile or .bashrc:
|
It also Option crashes when run from a desktop shortcut. I also tried running |
In the git-for-windows issue, others report they see this crash on Windows 10, but not on Windows 7. |
The current repository version includes some debug code for this issue. If you can compile it for Git Bash, or compile it for MSYS2 and reproduce the issue by copying that binary into Git for Windows, redirect its output ( |
I installed MSYS2. I also had to make MSYS2's pacman install gcc and make. Then I tried to compile your commit, but got an error:
|
Yes, sorry, that's been fixed meanwhile, please try again. |
Well, I'm having trouble getting a clean test, but I ran into something interesting that might help you repro. First, a bit of methodology: I successfully built the new mintty. I copied mintty.exe into Git for Windows' $DIR/usr/bin directory. I tried to run it from CMD and got a I realized that I had built mintty in a MINGW64 environment (ex: by opening MINGW64.EXE in the MSYS2 directory, then cd'ing to the mintty directory, then running I rebuilt mintty from the MSYS environment, copied mintty.exe into Git for Windows, then tried to run it from CMD. I got another
The same thing happens in a Git Bash environment (whatever that is; I'm not sure myself). Now for the interesting bit: I then tried invoking the new mintty.exe from the MSYS environment (ex: by opening MSYS.EXE in the MSYS2 directory and then typing "C:\Program Files\Git\usr\bin\mintty" at the prompt). It opened successfully without a cygheap error AND no longer exhibits the Options crash! Well, it's not a clean test because I couldn't repro and give you an error log, but it does indicate that this problem might be at least triggered by the environment that mintty.exe is executed from. I might dig at it more later, but I am busy with work, so it could take some time. If you want to work ahead of me, maybe you can do it by thinking about how these different programs set up their environment, and make a test based on that. If you can give me detailed directions on how to set up another test, maybe that will make it easier for me to proceed sooner and I can run it for you. Hope that helps. |
I have the same issue |
Please retry with mintty 2.7.1, then report back. |
I had an opportunity to try this, but I realized that there's a problem on my end that prevents me from giving you any meaningful feedback on 2.7.1: I can't repro the problem if I build mintty myself. I think I will need to know how Git for Windows builds mintty before I can proceed. Hopefully that would allow me to build an older version of mintty, repro the problem on that, then build the 2.7.1 version and be able to confirm/deny resolution. |
I think this might be related to having $HOME point to a network drive. I get the same symptoms (the options window either crashes immediately or when I switch to the Terminal section) when $HOME is undefined, $HOMEDRIVE is "Z:" and $HOMEPATH is "\". If I set $HOME to "C:\Users\username" before starting git-bash.exe, the options window works without crashing. In this case the Z: drive is a mounted network share. However, I've not tried the most recent build yet. |
Interesting observation, and I can in fact reproduce it now, thanks. (No need to try recent build anymore.) |
Fix released in 2.7.2. Root cause notified to cygwin mailing list. |
mintty/git-bash crashes sometimes when the (Corner Dropdown)→Options menu is opened, and sometimes when submenus in the (Corner Dropdown)→Options menu are navigated to. This bug may or may not happen when the program is run, so I made a video demonstrating multiple runs of the program, along with the unusual behavior. It seems as if it more likely to crash the longer the program is open, and on some small time scale (perhaps 1-3 seconds or so before crashes become likely).
Link to a video of the behavior: https://www.youtube.com/watch?v=42Yh1iYMfJc
My current workaround is to start Git Bash really quick and get into the options menu before the bug happens. I managed to change the number of columns/rows on the window this way. So I managed to accomplish what I wanted, but the bug is still there.
Found on Windows 7 Pro 64-bit. Mintty 2.6.2, Git Bash v2.10.2 64-bit install.
Good luck and thank you for writing this software.
The text was updated successfully, but these errors were encountered: