Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,463,053
Community Members
 
Community Events
176
Community Groups

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

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

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 

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events