Git Extensions: Everything was working fine until yesterday.
But suddenly I am get this error when I try to pull some repositories using git extensions
C:\Program Files\Git\bin\git.exe pull --progress "origin"
Done
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68560000, RegionSize 0x390000, State 0x10000
C:\Program Files\Git\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
It is happening for all the repositories which I have cloned. But, my git bash is working fine. I don't have any idea what is going on. Any idea as to why this is happening?
c:\msysgit\bin>rebase.exe -b 0x50000000 msys-1.0.dll
This error happens very rarely on my Windows machine. I ended up rebooting the machine, and the error went away.
I have seen the same error message after upgrading to git1.8.5.2:
Simply make a search for all
msys-1.0.dll
on yourC:\
drive, and make the one used by Git comes first.For instance, in my case I simply changed the order of:
By making the Git path
C:\prgs\git\PortableGit-1.8.5.2-preview20131230\bin\
come first in my%PATH%
, the error message disappeared.No need to reboot or to even change the DOS session.
Once the
%PATH%
is updated in that DOS session, the git commands just work.Note that carmbrester and Sixto Saez both report below (in the comments) having to reboot in order to fix the issue.
Note: First, also removing any
msys-1.0.dll
, like one in%LOCALAPPDATA%
I had the same problem, after some Windows 8.0 crash and update, on msys git 1.9. I didn't find any msys/git in my path, so I just added it in windows local-user envinroment settings. It worked without restarting.
Basically, similiar to RobertB, but I didn't have any git/msys in my path.
Btw:
I tried using rebase -b blablabla msys.dll, but had error "ReBaseImage (msys-1.0.dll) failed with last error = 6"
if you need this quickly and don't have time debugging, I noticed "Git Bash.vbs" in Git directory successfuly starts bash shell.
Deleting old version of %USERPROFILE%\AppData\Local\SourceTree\app-x.x.x worked for me. Not sure how it was connected to command line git...
I ran into this today. Led by Greg Hewgill's answer, I looked at running processes on my system to see if anything was "stuck" or if other users were logged into the machine doing anything with git. I then launched cygwin (installed separately) on this particular machine. It launched ok. I closed it and then tried the Git Extensions again (I was trying a pull operation) and it worked. Not sure if the launching of cygwin cleared something that was shared but this is the first time I ran into this error and this seemed to fix it for me.