Git Extensions: Win32 error 487: Couldn't reserve space for cygwin's heap, Win32 error 0

后端 未结 14 1740
天命终不由人
天命终不由人 2020-11-27 09:25

Git Extensions: Everything was working fine until yesterday.

But suddenly I am get this error when I try to pull some repositories using git e

相关标签:
14条回答
  • 2020-11-27 09:32

    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 your C:\ drive, and make the one used by Git comes first.

    For instance, in my case I simply changed the order of:

    C:\prgs\Gow\Gow-0.7.0\bin\msys-1.0.dll
    C:\prgs\git\PortableGit-1.8.5.2-preview20131230\bin\msys-1.0.dll
    

    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%

    0 讨论(0)
  • 2020-11-27 09:33

    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's cmd directory was listed in the PATH, but its bin was not. (Git's version of msys-1.0.dll is in the bin directory. Apparently the default installation of MSys-Git does not add its bin 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.)

    0 讨论(0)
  • 2020-11-27 09:34

    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...

    0 讨论(0)
  • 2020-11-27 09:37

    I had the same problem. I found solution here http://jakob.engbloms.se/archives/1403

    c:\msysgit\bin>rebase.exe -b 0x50000000 msys-1.0.dll
    

    For me solution was slightly different. It was

    C:\Program Files (x86)\Git\bin>rebase.exe -b 0x50000000 msys-1.0.dll
    

    Before you rebase dlls, you should make sure it is not in use:

    tasklist /m msys-1.0.dll
    

    And make a backup:

    copy msys-1.0.dll msys-1.0.dll.bak
    

    If the rebase command fails with something like:

    ReBaseImage (msys-1.0.dll) failed with last error = 6

    You will need to perform the following steps in order:

    1. Copy the dll to another directory
    2. Rebase the copy using the commands above
    3. Replace the original dll with the copy.

    If any issue run the commands as Administrator

    0 讨论(0)
  • 2020-11-27 09:44

    Very simple verison of the rebase solution:

    Go to the folder where git is installed, such as:

    C:\Program Files (x86)\Git\bin
    

    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:

    rebase.exe -b 0x50000000 msys-1.0.dll
    

    This fixed it for me when the restart approach didn't work.

    Hope it helps.

    0 讨论(0)
  • 2020-11-27 09:44

    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

    0 讨论(0)
提交回复
热议问题