-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
ConEmu long delay on Ctrl+C with GitBash #402
Comments
Compare the behavior with previous ConEmu build. |
I have build 140814 on my laptop and it stops the process instantly with the same version of mintty (that comes with latest Git for Windows). Do you have a specific build in mind? |
There is no version 814. |
I mean https://github.com/Maximus5/ConEmu/releases/tag/v14.08.14 - I never updated it on my laptop so that's why it's so old. Ok, I'll try with every build until I find one that works. Thanks! |
I see... Try to jump by month |
Why do you mention mintty in the subject? |
Because I thought that that's the terminal emulator which is being used, but I see now that the command points to bash |
I edited the title to remove any haziness for other users. |
It's unclear, what is the problem - freezes, stops, smth else? May you create a short video? Can you confirm that build 150908 is OK, and 151006 introduced the problem? |
Hi, sorry if I was unclear but I'll try to explain as thorough as I can: Steps:
Expected result:
Actual result:
ConEmu 150908 [64] seems to work for me on multiple devices. The latest builds on which I can reproduce the issue were tested on all devices and the above problem was reproducible on all of them. Thanks, |
I have the same issue with Cygwin console. The delay is about 2 minutes from when I press Ctrl+C on my node.js app and when it quits. |
I'm also having the same problem. |
|
I've been able to reproduce the problem consistently by holding down ctrl-c. However, there have been instances where just pressing ctrl-c once has caused this issue. Logs: By hang, I mean the git bash instance will not take any input and the prompt doesn't appear until about 30 seconds after I've pressed ctrl-c. The screenshot below shows that there is no prompt after pressing ctrl-c. |
Hi, I have captured a video, you can find it here. There are also two more attempts, the second time it looks like it worked instantly but then the third attempt it also takes some time to end the process. Some dumps here ... I'm not good at debugging windows app, if they are not useful please let me know and I'll try again. |
This complain must be addressed to NPM/Node.js authors. I've examined the logs, your Ctrl+C events are successfully delivered to console processes, immediately. However, there is action to "Terminate all but shell processes in the current console". Personally I set it to Ctrl+X and use it often. But it really terminates processes, they will not receive any signals. |
Or may be not... confused by different reporters and dumps.
|
Perhaps, something blocks your prompt, but I don't think it's a ConEmu problem. You may try to use ProcessMonitor to check console processes activities. |
It looks like the reason why conemu hangs after using ctrl+c on some node commands is that a process will be blocking. In my case it was sh.exe that was still running. Using kill active process fixes that problem. So that's not a problem on your end. However, in the case of just holding down ctrl+c on a blank prompt that still causes the git bash instance to hang. I have inject conemuHk enabled, and the status bar shows the active process is bash.exe. |
So, pressing Ctrl+C in bash prompt may cause other processes spawning. That's because bash prompt may be very complex, especially if you show git properties there. |
I propose to close the issue, because it's not related to ConEmu itself. |
|
Without exact dumps and screeshots "hangs" are not accepted. |
@Maximus5 I see, I'll try to provide instructions to reproduce it, that's why I did not create an issue and wrote just a comment in nearest one. But I think that npm started to use such |
Same issues for me, at times Ctrl+C just refuses to work and I have to go Kill active process. This happens both when running e.g. npm install, and when running tests/watchers - e.g. mocha or gulp. |
@jeffijoe As I said before, that is NOT a ConEmu issue! |
@Maximus5 When done through the actual git bash it works every time. |
I do not believe in that. How exactly do you start that what you named "git bash"? |
It's
|
When you run git-bash.exe it starts mintty.exe. Of course this is not a standard Windows terminal, when you run bash in standard Windows terminal bash behaves differently. So, why do you think that ConEmu must fix bash bugs? |
@Maximus5 is right, if you run |
I added a paragraph for mintty |
Have a look on this: git-for-windows/git#227 |
Yeah. The problem comes from different implementations of Ctrl+C processing in cygwin/msys applications. POSIX applications are ready to process "signals" in most cases, but often ignores console events. |
@raulmatei How did you assign the keyboard shortcut? I can't seem to find the right command to "Kill active process", only to terminate the current console. |
@jeffijoe I think you want "Terminate active process in the current console" in Settings > Keys&Macro |
@xylographe that will kill the console tab as well, and so is not acting like "Close or kill -> Kill active process" does. |
@jeffijoe that will not. Why do you think so? |
@Maximus5 Ah, it seems I was too fast - it killed bash after it killed node, I was just too impatient for node to die and so I pressed it again, killing the console. |
@xylographe is right, the command is "Terminate active process in the current console" It should work perfectly. |
Yes, got it, thanks! @Maximus5 thank you for such a great app! |
I guess many of us (me) got too spoiled by Mac, which Ctrl + C worked perfectly. all the time. but Windows... another realm ha. That shortcut @raulmatei screenshotted worked perfectly. |
I have recently updated to latest versions of ConEmu & Git for Windows. I noticed that Ctrl+C keyboard shortcut is freezing the console for a while, and then suddenly it stops the current process. I usually use it for running NPM/Node.js related tools.
Using GitBash outside of ConEmu, Ctrl+C works as expected. It also works with CMD or PowerShell.
I have uploaded logs here
The text was updated successfully, but these errors were encountered: