Stefano Tommesani

  • Increase font size
  • Default font size
  • Decrease font size
Home Programming Fixing Git pull errors in SourceTree

Fixing Git pull errors in SourceTree

If you encounter the following error when pulling a repository in SourceTree:

VirtualAlloc pointer is null, Win32 error 487

it is due to to the Cygwin system failing to allocate a 5 MB large chunk of memory for its heap at the fixed address 0x68570000, while only a hole 2.5 MB large was apparently available there (see the whole thread on SO). Unfortunately, attempts to rebase MSYS or other tricks are not working, requiring a full reboot of the PC to properly complete pulls.

To resolve this problem once and for all, upgrade the Git used by SourceTree from version 1.x to version 2: click on Tools | Options, select the Git tab and check the version, in this case it is "System Git version 1.8.4".

GitUpdate1

As we are still using Git 1.x, click on Update Embedded Git and confirm that we want to download the embedded version:

GitUpdate2

SourceTree will then download the new version of Git (notice that the current version at the time of writing is 2.10.2)

GitUpdate3

And that's it! The embedded version of Git is now updated to 2.x, we switch to the embedded Git by clicking on the "Use Embedded Git" button, and the error is gone for good

GitUpdate4

Quote this article on your site

To create link towards this article on your website,
copy and paste the text below in your page.




Preview :


Powered by QuoteThis © 2008
Last Updated on Friday, 28 April 2017 13:12  
View Stefano Tommesani's profile on LinkedIn

Latest Articles

Fixing Git pull errors in SourceTree 10 April 2017, 01.44 Software
Fixing Git pull errors in SourceTree
If you encounter the following error when pulling a repository in SourceTree: VirtualAlloc pointer is null, Win32 error 487 it is due to to the Cygwin system failing to allocate a 5 MB large chunk of memory for its heap at
Castle on the hill of crappy audio quality 19 March 2017, 01.53 Audio
Castle on the hill of crappy audio quality
As the yearly dynamic range day is close (March 31st), let's have a look at one of the biggest audio massacres of the year, Ed Sheeran's "Castle on the hill". First time I heard the song, I thought my headphones just got
Necessary evil: testing private methods 29 January 2017, 21.41 Testing
Necessary evil: testing private methods
Some might say that testing private methods should be avoided because it means not testing the contract, that is the interface implemented by the class, but the internal implementation of the class itself. Still, not all
I am right and you are wrong 28 December 2016, 14.23 Web
I am right and you are wrong
Have you ever convinced anyone that disagreed with you about a deeply held belief? Better yet, have you changed your mind lately on an important topic after discussing with someone else that did not share your point of
How Commercial Insight changes R&D 06 November 2016, 01.21 Web
How Commercial Insight changes R&D
The CEB's Commercial Insight is based on three pillars: Be credible/relevant – Demonstrate an understanding of the customer’s world, substantiating claims with real-world evidence. Be frame-breaking – Disrupt the

Translate