Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,031
Community Members
 
Community Events
165
Community Groups

Sourcetree, cannot clone/pull anymore. sh.exe.stackdump

Well since yesterday I haven't been able to Clone any new Repos and I haven't been able to pull from any of the once I have been using. Everything worked fine before but it seems (to me) that it randomly stopped working.

I also noticed a file named "sh.exe.stackdump" is being created in every repo I have cloned, no idea where it came from

Here is an example of an error I get when I'm Cloning, I have no idea what they mean so I was hoping to get some help here :)

git -c diff.mnemonicprefix=false -c core.quotepath=false clone --recursive https://github.com/UglyOldGuy/BoL e:\Users\Saftsnubben\Desktop\Buckets\Test
Cloning into 'e:\Users\Saftsnubben\Desktop\Buckets\Test'...

m.AllocationBase 0x9F0000, m.BaseAddress 0x9F0000, m.RegionSize 0x4000, m.State 0x1000

C:\Users\Saftsnubben\AppData\Local\Atlassian\SourceTree\git_local\bin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x9F0000 <0xA00000>) in child, Win32 error 0

      0 [main] sh 11288 sync_with_child: child 11836(0x100) died before initialization with status code 0x1
     11 [main] sh 11288 sync_with_child: *** child state waiting for longjmp
C:\Users\Saftsnubben\AppData\Local\Atlassian\SourceTree\git_local/libexec/git-core\git-submodule: fork: Resource temporarily unavailable



Completed with errors, see above.

Regards

Anders

4 answers

1 accepted

0 votes
Answer accepted

Nevermind, somehow solved it by reinstalling sourcetree.

Even if the Question is old.
Update the embedded Git-Version via

Tools => Options => Git => Update embedded Git

helps.

This saved my bacon! Everyone of the other solutions I found did nothing.

Yeah, I started see this sh.exe.stackdump in every folder, updating embedded Git solved this.

Thanks!

Tried re-booting, re-installing source tree did not help.  But updating the embedded Git did it. You saved my day 

Adding another solution:  I downloaded Git directly (2.19.1) and then in SourceTree switched from [Embedded] to [System].  This worked for me.

Why? Because I tried the [Update Embedded] option (twice) and it wouldn't finish.  Or, rather, it finished (no errors) but did not change the version of the embedded Git despite restarting SourceTree.

I recently ran into this, and I was able to determine that Removing or Deleting the sh.exe.stackdump file causes this error. 

So far, the only solution I can find is  

1) Uninstalling SourceTree and anything to do with Git.

2) Restarting the computer

3) Re-installing everything you unistalled

This is the only solution that worked for me; thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,833 views 127 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you