I am using TortoiseGit on Windows for a while now, and it works OK. However, today, it just stopped working. The error I got persistently was:
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x68540000, RegionSize 0x480000, State 0x10000 c:\msysgit\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
More than mildly annoying.
I tried searching the web, and found a number of discussions on similar issues. It was not easy to find one that worked, but in the end it turns out that playing with the base address of the msys-1.0.dll file worked. The error is not really in TortoiseGit per se, but rather in msysgit (which tortoisegit relies on to actually do its work).
The magic incantation that I wound up using:
c:\msysgit\bin>rebase.exe -b 0x50000000 msys-1.0.dll
Posting it here for the benefit of any other poor soul who is hit by the same. Apparently, you might have to change to use different other addresses.
The details of my setup for reference:
- msysgit 1.7.4
- tortoisegit 126.96.36.199
- Windows 7, 64-bit