Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Message erro: "fatal: Out of memory, realloc failed"

Manuel Zurita September 18, 2018

Hello,

I am having troubles cloning a repository from Bitbucket Server.

I got the error "Error downloading object.." "fatal: Out of memory, realloc failed" when I try to clone the repository.

This object is a heavy file (1.769.579.176 bytes) but I could download it directly from "Browser" (So I imagine it is not corrupted)

The repository uses Git-LFS and I suppose this file was pushed as LFS.

I have extended the http.postbuffer and http.maxrequest config values and they don't solve it.

How could I solve this?

I am thinking in downloading the entire repository as .zip file, but pressing "Download" button in "Master" branch (Source tab) only downloads a small .zip.

As alternative, how could I download the repository?

Thanks in advance, best regards.

2 answers

1 vote
Olninyo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2022

for me, installing latest git, and switching sourcetree to use system git eventually did the trick

1 vote
VICTOR-OSEGHALE
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2018

Hi Manuel,

Thanks for reaching out here.

Which git version is running on your local machine ?

It look to me that git process on remote host seem to be hitting a memory limit. Update the ulimit to expand the memory limit for the user, or,  you could try to update the "git config" to suit your virtual memory limit. See also Tuning Git for large binary repositories

core.preloadindex=false                                                                                        
core.packedgitwindowsize=100m                                                                                 
core.packedgitlimit=100m                                                                                 
pack.windowmemory=100m

Kind Regards,
Victor 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events