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?
Just want to share my experience here. I came across the same issue while cross compiling for MTK platform on a Windows 64 bit machine. MinGW and MSYS are involved in the building process and this issue popped up. I solved it by changing the
msys-1.0.dll
file. Neitherrebase.exe
nor system reboot worked for me.Since there is no rebase.exe installed on my computer. I installed cygwin64 and used the
rebase.exe
inside:Though rebasing looked successful, the error remained. Then I ran
rebase
command inside Cygwin64 terminal and got an error:I later tried a couple address but neither of them worked. So I ended up changing the
msys-1.0.dll
file and it solved the problem.I have encountered this issue witht he LPCEXpresso building.if you have the C:\MinGW\bin in the PATH. somehow I had to remove it to get rid of this issue since some other MinGW like based too
To fix this issue, I simply let Tortoise Git install its update.
Very simple verison of the rebase solution:
Go to the folder where git is installed, such as:
By holding shift and right clicking in the folder, you should be able to open a command prompt as administrator from there (thanks to https://stackoverflow.com/users/355389/darren-lewis for that comment),
Then run:
This fixed it for me when the restart approach didn't work.
Hope it helps.
I had the same problem. I found solution here http://jakob.engbloms.se/archives/1403
For me solution was slightly different. It was
Before you rebase dlls, you should make sure it is not in use:
And make a backup:
If the rebase command fails with something like:
You will need to perform the following steps in order:
If any issue run the commands as Administrator
If a reboot does not correct the problem (as suggested by Greg Hegwill's answer) then check your PATH for conflicting installation(s) of the msys-1.0.dll (and possibly other related DLLs).
In my particular situation MinGW's installation of msys has a copy of that DLL in its
bin
directory (<MinGW_Install_Path>\msys\1.0\bin
), and it was listed in the PATH. Git'scmd
directory was listed in the PATH, but itsbin
was not. (Git's version of msys-1.0.dll is in thebin
directory. Apparently the default installation of MSys-Git does not add itsbin
to the PATH.)A temporary fix was to add Git's
bin
directory to the PATH so that it appears before MinGW's paths. (A more permanent fix will likely involve sorting out the path conflicts between MinGW's msys and Git's and/or removing the duplicate msys installations.)