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

App crashes when scrolling through large albums #176

Open
Nologist opened this issue Jan 16, 2024 · 2 comments
Open

App crashes when scrolling through large albums #176

Nologist opened this issue Jan 16, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Nologist
Copy link

Hi again,

hope you're doing well.

I discovered a problem with the Piwigo app that comes up when you scroll through larger categories.
It seems like all the Thumbnails that have been loaded while scrolling are kept in memory. At some time, the device runs out of memory and the app crashes.
Depending on the thumbnail-quality setting and the available memory, you're experiencing the impact of the high memory consumption after approx. 400 loaded thumbnails.

Is there a way to unload passed thumbnails on demand, similar to loading but in reverse? I mean something like:
When you scroll down, the app loads the next 500 thumbnails below and unloads all above.
When you scroll up, the app loads the previous 500 thumbnails above und unloads all below.

To keep the scrolling position, you could preserve the images dimensions and clear its contents only. Just as a suggestion.

I would classify this one as a bug.

Best regards
Sven

@Catfriend1
Copy link

A Thumbnail cache would be nice ... :)

@remi-martin
Copy link
Collaborator

Hi, I have to admit I 'm struggling to solve the image memory issue. I've looked to some packages for that but it's still crashes.

@remi-martin remi-martin self-assigned this Mar 30, 2024
@remi-martin remi-martin added the bug Something isn't working label Mar 30, 2024
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

3 participants