Stefano Tommesani

  • Increase font size
  • Default font size
  • Decrease font size
Home Software 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".


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


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


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


Last Updated on Friday, 28 April 2017 13:12  

Latest Articles

Easily upload videos of security cameras to YouTube
In this example, we will import video from a Yi security camera into YouTube. The same process, with eventual adjustment to the naming of directories in the SD card used by the camera to record videos, will also apply to other
A software to stand out 27 January 2018, 14.35 Web
A software to stand out
Standing out of the pack starts by being visible, and being noticed by the right group of professionals. No matter how good your profile is, it is lost in a sea of similar profiles, so you need to show up and start attracting
Web page scraping, the easy way 07 January 2018, 00.46 Web
Web page scraping, the easy way
There are many ways to extract data elements from web pages, almost all of them prettier and cooler than the method proposed here, but as we are in an hurry, let's get that data quickly, ok? Suppose we have to extract the
Scraping dynamic page content 06 January 2018, 23.57 Web
Scraping dynamic page content
One of the most common roadblocks when scraping the content of web sites is getting the full contents of the page, including JS-generated data elements (probably, the ones you are looking for). So, when using CEFSharp to scrape
Unit-testing file I/O 26 November 2017, 12.09 Testing
Unit-testing file I/O
Two good news: file I/O is unit-testable, and it is surprisingly easy to do. Let's see how it works! A software no-one asked for First, we need a piece of software that deals with files and that has to be unit-tested. The