NicholasDawson / ArchiverForGooglePhotos

A tool to maintain an archive/mirror of your Google Photos library for backup purposes.
GNU General Public License v3.0
190 stars 30 forks source link

Process gets killed when downloading large file (probably memory issues) #41

Open CrazySqueak opened 10 months ago

CrazySqueak commented 10 months ago

For whatever reason I have a large (~1GB) file in my google photos from something I downloaded to keep myself occupied on a long train journey. I'm running the download on my Raspberry Pi 4 as I have it set up as a NAS and want to save my photos to the HDD I have connected. When downloading this file, the program starts to use more and more memory (over the course of about 10-15 minutes) until it exhausts my 4GB of RAM and gets killed with the message "Killed.". This appears to be because of the program running out of memory and getting killed by the OS (default behaviour on linux is to mercilessly kill processes which swallow up all available memory).

Log:

================================
Archiver for Google Photos (CLI)
 - By: Nick Dawson
 - GitHub @NicholasDawson
 - https://ndawson.me

Report all issues on GitHub:
https://github.com/NicholasDawson/ArchiverForGooglePhotos/issues
Version -> 2.2.0
================================
Reading Favorites List From Server...
Downloading Favorites:   0%|                                                                                              | 0/88 [00:00<?, ? media items/s] [ERROR] media item could not be downloaded because: 'exif'
Downloading Favorites:  98%|██████████████████████████████████████████████████████████████████████████████████  | 86/88 [00:00<00:00, 320.88 media items/s] [ERROR] media item could not be downloaded because: 'exif'
Downloading Favorites:  98%|██████████████████████████████████████████████████████████████████████████████████  | 86/88 [00:19<00:00, 320.88 media items/s]Killed