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

Out Of Memory when creating archive #77

Open
flexxyfluxx opened this issue Sep 14, 2023 · 2 comments
Open

Out Of Memory when creating archive #77

flexxyfluxx opened this issue Sep 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@flexxyfluxx
Copy link

Device info

Manufacturer: Nothing
Android version: Nothing OS 1.5.2 (= Android 13)
Custom ROM/rooted? no
Model: Nothing Phone (1)

System info

Available disk space: >250GB
Operating system: Arch Linux
RAM: 16GB


When backing up my phone with backup.sh, everything runs smoothly. Files are retrieved, etc.

Then, when the script creates the final .7z archive, my computer inevitably runs out of memory and (presumably) gets killed by the OS. This causes the archive to become corrupted (and unreadable as an archive) in one way or another, and the script will terminate after 5 failed attempts to open / continue adding to the archive.

@flexxyfluxx flexxyfluxx added the bug Something isn't working label Sep 14, 2023
@flexxyfluxx
Copy link
Author

Lowering compression to mx=5 solved this for me.

I don't know if this would be enough for a system w/ less ram (eg. 8gb) though..

mrrfv added a commit that referenced this issue Sep 14, 2023
Related issues: #77 #36 #32

Slightly lowering the compression level will make the process faster with less memory usage.
@mrrfv
Copy link
Owner

mrrfv commented Sep 14, 2023

7-Zip Ultra (mx=9) compression does indeed use lots of memory. The latest release, v1.0.12, should alleviate this issue by using maximum compression instead. If the problem's still going to persist I can set it to normal compression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants