Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdalbuildvrt freezes at 90%... then gets killed #9212

Closed
adriansuciu09 opened this issue Feb 8, 2024 · 3 comments
Closed

gdalbuildvrt freezes at 90%... then gets killed #9212

adriansuciu09 opened this issue Feb 8, 2024 · 3 comments

Comments

@adriansuciu09
Copy link

I am trying to convert about 440GB of TIFFs in Geopackage in a docker container. For that i am making a VRT file from all found tifs in my volume folder using gdalbuild vrt. For some reason, the command goes up to 90%... then freezes and gets killed in a couple of hours without giving any ERROR message. The biggest volume of TIFFs that i converted successfully with this methode was around 150GB. Is this a problem with gdalbuildvrt or a memory problem ( in the sense that i dont have enough RAM ).
This is the Console output of the command:
Unbenannt

This is my Docker stats:
memory

In the meantime i will try a workaround to only convert around 150GB of TIFFS to Geopackage and then merge all Geopackages using ogr2ogr

@rouault
Copy link
Member

rouault commented Feb 8, 2024

the command goes up to 90%... then freezes and gets killed in a couple of hours without giving any ERROR message.

How many files are indexed in the VRT? This may indeed be a RAM issue at the point where the VRT driver tries to generate the XML file if there are hundreds of thousands of files or more. The https://gdal.org/drivers/raster/gti.html driver + https://gdal.org/programs/gdaltindex.html#gdaltindex of the GDAL master branch (unreleased yet) might be what you need if insufficient RAM is indeed the issue

@adriansuciu09
Copy link
Author

adriansuciu09 commented Feb 8, 2024

ill give it a read. I currently input 735757 files

rouault added a commit to rouault/gdal that referenced this issue Feb 8, 2024
rouault added a commit to rouault/gdal that referenced this issue Feb 8, 2024
rouault added a commit to rouault/gdal that referenced this issue Feb 8, 2024
@adriansuciu09
Copy link
Author

it was the ram. I tried on a machine with 128 RAM and it worked

rouault added a commit that referenced this issue Feb 18, 2024
VRT serialization: emit a warning if RAM usage of XML serialization reaches 80% of RAM (fixes #9212)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants