-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Some mbtiles
tool operations produce db or disk/machine out of space errors
#1154
Comments
Require SQLite v3.44+ ORDER BY clause inside aggregate function instead of the windowing one - might solve out of memory issues reported by users - see #1154
This might have been by #1156, but since we have no reliable way to reproduce, will keep this open for a bit |
It seems this issue is caused by SQLite using |
Confirmed that I can reproduce it with the latest martin docker image. See also SQLite docs temp files - # Create a docker volume with a limited size, e.g. 1MB
docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=1m tmp
# Run martin container, mounting tmp volume as the SQLite's choice for a tmp dir (see link above)
# This command must run in a directory that contains some multi-megabyte mbtiles file
docker run --rm -it --mount source=tmp,target=/var/tmp -v $PWD:/data --entrypoint sh ghcr.io/maplibre/martin:latest
# Inside docker, run validation command using your data file:
mbtiles validate /data/my_data_file.mbtiles Result:
Make sure to delete tmp volume once done with |
The "database or disk/machine out of space" error seems to be coming from SQLite, and has not yet been reliably reproduced. It is known that there is plenty of both RAM and harddisk space (maybe some small temporary partition is being used? needs investigation).
This has been seen when using
mbtiles validate
on arm64mbtiles copy
on x64Reported error:
The text was updated successfully, but these errors were encountered: