-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Git Bash Crash on Launch. Error: could not fork child process #910
Comments
Could you quickly try installing Cygwin and see whether it runs? |
That is what I feared. Those errors come from the MSYS2 runtime, which is itself a friendly fork of the Cygwin runtime. Meaning: whenever Cygwin updates, we update, too. Could you try previous Git for Windows versions to see whether they demonstrate the same problem, or whether it is a regression in the newest version? |
I've tried several different versions, one much older (1.9.2), a few more recent, all the same error. Just to double check, I just installed 2.9.2, same error. |
Hrm. Maybe you one of those applications installed? https://cygwin.com/faq/faq.html#faq.using.bloda |
Correct, this is a work computer at a large corporation with McAfee installed and I'm sure other firewalls and things of that nature. Other coworkers are not having the same issues I am strangely enough. I will escalate internally to see if I can get any assistance. This is my nightmare D: . Thank you for the information. |
McAfee is not on the BLODA list, but maybe you can identify another "dubious" application (such as PowerBroker) that is running in your setup? |
Luckily for me, I come into work today and it is now working. It being a work computer, some update must have been pushed that now allows it to work. Weird experience, thank you for the information and assistance though. |
@hwallace90 let's close it until the day it resurfaces? |
I had exactly the same error which I managed to fix. I'm adding these details in case anyone else has the same problem. It fails on one PC but is OK on two others. The only software I have installed that is on the BLODA list is Windows Defender but I tried disabling this temporarily with no change. An uninstall and reinstall also failed to solve the problem. All PCs are running Windows 10. I managed to finally fix it by running C:\Users\USERNAME\AppData\Local\GitHub\PortableGit_d7effa1a4a322478cd29c826b52a0c118ad3db11\post-install.bat from an elevated command prompt. It showed a couple of errors but everything seems to be working fine afterwards. |
This seems to be GitHub Desktop rather than Git for Windows. But I'm glad you were able to get to the bottom of it. |
I had the same problem and (at least temporarily) got around it by stopping two processes in the Windows Task Manager, both of which were called 'bash.exe'. Details of how to do that: Open Windows Task Manager, go to the Processes tab, select and right click on the process you want to end and choose 'end process'. |
I had the same problem and could solve it by killing all the |
I had a similar problem. My resolution was essentially the same as dpGoose, but I got a copy of post-install.bat from executing the PortableGit 7z.exe download and quickly copying post-install.bat before it got a chance to execute and delete itself. Then I edited it so that it would do its rebase on my 64-bit Git for Windows (it checks that MINGW32 folder is there, I edited it to check for MINGW64 instead). #1200 Rebeccah |
Thank you @yangshengf one of the solutions in this issue resolved my error |
#1523 resolved thanks to @yangshengf |
Encountered this today and solved it by killing a single instance of ssh-agent that was running. |
I have encountered this issue on my Windows 10 64-bit PC several times in the past two months. I am current running On the title bar it says
My shortcut to run Git Bash, calls So, after kill the two |
in my case, I found this error when running a Vuejs app. (using node) according to : https://stackoverflow.com/questions/45799650/git-bash-error-could-not-fork-child-process-there-are-no-available-terminals I killed "node.exe" in the task manager, ( ctrl + alt + del) and it works! |
I got the same issue and as few people have mentioned that they got away by killing bash.exe or ssh-agent.exe but in my case I coudln't find any of this in task manager, or maybe I'm too stupid to find them anyway if someone can explain these or any other solution which can solve this problem then it'd be a very big help and also i'm not a tech savy so keep it in mind. |
I am facing the same issue with git-bash in my win 11 device. I tried almost all the mentioned fixes here to no avail. I can't find any
|
or closed issue
matching what I'm seeing
Setup
defaults?
to the issue you're seeing?
Details
Attempting to run in Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
When opening Git Bash I get the following error:
When I press enter Git Bash closes. I've tried reinstalling, installing different versions, restarting, and nothing seems to help.
The text was updated successfully, but these errors were encountered: