Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8218283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:44:27+00:00 2026-06-07T12:44:27+00:00

Since few days ago, every time I start Git GUI in a repository, it

  • 0

Since few days ago, every time I start Git GUI in a repository, it displays this horrifying error message and quits after I click OK:

prepare-commit-msg hook failed:

      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68560000, RegionSize 0x260000, State 0x10000
C:\Program Files (x86)\Git\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

You must correct the above errors before committing.

It only happens with Git GUI and only when in repository (old or newly created one). Common commands in Git Bash including commit work fine.

Un-installing and re-installing with newer package (only minor version change) did not remove the issue. It still happens with old repositories as well as with newly created ones.

On a clean machine this issue does not reproduce, so I guess it’s something on my box, but I don’t remember installing anything funny. I do remember turning off my box after a long time though, so maybe some Windows Update could have triggered this–that would also explain why the other machine does not suffer–it’s 2-3 months since last Win update there.

Any ideas how to shed light into this? (As I can only see it on single machine, I don’t feel like submitting it to official tracker before I know it’s not my/other app’s fault…)


Update after first comments:

  • If you remove or rename the hook script, does it work?

    Funny enough, but the hook script actually does not exist at all (no hook scripts are
    present–there are only *.sample files in .git\hooks). Not even elsewhere (git program
    dir, etc.)

  • Trace it so you know what commands it ran – from git-bash run git gui --trace

    Sadly this does not output anything to the shell. Behaviour is the same.

  • Maybe get gdb in there.

    I tried but gdb did not output anything useful. However, I don’t have any experience
    with GDB, I’m probably doing it wrong. I got a MinGW’s gdb, ran it from command
    prompt with git.exe as argument and then ran run gui. gdb did not output anything
    interesting:

    (gdb) run gui
    Starting program: C:\Program Files (x86)\Git\bin\git.exe gu
    [New Thread 8264.0x1ce4]
    [New Thread 8264.0x394]
    [Inferior 1 (process 8264) exited with code 01]
    (gdb)  
    

    But I’m almost sure I’m Doing It Wrong, so advice is more than welcome 🙂

  • Make sure you don’t have cygwin installed or at least that it is not present in your
    PATH at all

    I do have cygwin installed (as I always had, before git broke). From Cygwin I only
    have in path some *.bat launchers and some *.dll files, but I have checked with
    ProcMon that it does not touch them and even if I remove them from the path I still get
    the same crash.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:44:30+00:00Added an answer on June 7, 2026 at 12:44 pm

    After another Windows Update and OS restart, the problem disappeared.

    It seems like one of update introduced a bug which was fixed in another one. Or it could
    be a “phase-of-the-moon” bug.

    I guess we’ll never know…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started learning rails3 few days ago, and since today, every time I run
Since a few days I'm unable to start resque I have tried debugging this
i've ran into this wierd error since few days where most of the applications/frameworks/modules
I few days ago I update my macbook pro to snow leopard, and since
Since it came out a few days ago, I am sure at least some
This started happening in the last few days; possibly since I installed Visual Studio
Since a few days ago I've started to feel interested in Unit Testing and
I lost my temper few days ago because of this simple problem. Can you
Since the Windows 8 consumer preview was released a few days ago, I am
Since a few days ago, MySQL server on my Windows machine was not successful

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.