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

Insane RAM Usage and Memory Leak #640

Open
MythicPalette opened this issue Nov 5, 2024 · 6 comments
Open

Insane RAM Usage and Memory Leak #640

MythicPalette opened this issue Nov 5, 2024 · 6 comments

Comments

@MythicPalette
Copy link

Describe the bug
When generating thumbnails in a folder with many images, the RAM skyrockets by an insane amount. To test, I loaded a folder with 358 images in it. After creating all of the thumbnails, I am 14.4 GB of RAM usage (Shown below)

After reaching about 12-15GB on my PC, it then becomes unstable and frequently will to fail to create thumbnails, resulting in blank thumbnails.

Leaving the program to sit for even half an hour never decrease the RAM, indicating a garbage collection failure and memory leak. The only ways to reduce RAM is to refresh with F5 or restart the application entirely.

RAM usage is normal while browsing a folder with all thumbnails already generated as shown below.

To Reproduce
Steps to reproduce the behavior:

  1. Load folder with lot of images.
  2. Scroll Down
  3. Check memory usage as thumbnails are created.

Expected behavior
I would expect that whatever objects in memory that were created to generate the thumbnails would be properly disposed of and removed from memory through garbage collection.

Screenshots
After Thumbnail Creation:
image

After Restarting in the same folder:
After Reloading

Allusion version

  • 1.0.0-rc.10

Desktop OS
Windows 11

@MythicPalette
Copy link
Author

Also, I forgot to mention, 14GB is roughly four times the entire size of the folder demonstrated.
image

@Antoine-lb
Copy link

  • Are you reading from a folder connected to Google Drive?
  • what image format are those images in? RAW?

@MythicPalette
Copy link
Author

I'm reading from a virtual drive using Google's official Drive software. The software installs the Google Drive as a network drive similar to a NAS.
The images are JPEG.

@Antoine-lb
Copy link

Antoine-lb commented Nov 7, 2024 via email

@MythicPalette
Copy link
Author

Well, I installed the drive software which makes the drive a virtual disk on my PC.
image

Allusion is able to read it and access all of my Google Drive files without issue. It's only when generating thumbnails that it does this. Once the thumbnails are generated and the app restarted, it works great and the issue never resurfaces. Something about the thumbnail generation process is causing a memory leak.

@KiaArmani
Copy link

Running into the same issue here. Opening a folder with thousands of images which don't have a thumbnail yet lead to high memory usage and crash.

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

3 participants