-
Notifications
You must be signed in to change notification settings - Fork 28
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
version 2.0.3-beta uses too much memory and is often killed by Android #156
Comments
Hi, that sound strange. Did it worked properly before ? How many files are in the albums and what's their file type (jpg, png, heic, mp4, ...) ? In the app settings, what's the thumbnail size (medium, large, ...) ? Also, can you give me more information about the device ? That will help me to understand and maybe reproduce the issue... |
In my experience, the application has never worked very well. Before it may load an album but take very long time on getting the thumbnails and be able to scroll. Others, it just crashed.
It varies a lot. From tens to thousands. I can reproduce with any album so, let's say, just a bunch of pictures (8?) and all of them JPEGs.
Medium.
Sony Xperia zx2c running LineageOS 19-20220902-NIGHTLY-xz2c Is there any way I can get any debug information or logs from the app? |
And just now, the application also crashed just by opening, going to the settings and clicking to the back arrow ... |
I think this is related to the image cache. |
My gallery is publicly available at: https://gallery.andresgomez.org/ If you need to log in with the minimal privileges, let me know how can I send you the credentials through a private channel. |
Ok so I am abled to access your Piwigo but the app doesn't crash when I open the albums. Maybe try to empty the cache from the app settings, or just reinstall it. |
I've emptied the cache: same result. I've reinstalled the application: same result. Is there any way of getting logs or backtraces from the app? |
BTW, by now I'm using 2.0.4 |
Which version of Android you are running ? Sadly I don't know how to get the logs on a Flutter application like Piwigo NG. |
https://wiki.lineageos.org/devices/xz2c/ LineageOS 19 is based on Android 12L
This may be a priority to be able to use a beta application. If it is beta and for users evaluation it looks critical to me that there should be a way of getting some logging information or, at least, be able to catch a crash stack trace. |
So, after a quick session with ` [...] 05-25 16:20:36.925 0 0 I oom_reaper: reaped process 32188 (iwigo.piwigo_ng), now anon-rss:0kB, file-rss:1074336kB, shmem-rss:252kB Also, you can see plenty of these warnings:
So, other than my phone could have more RAM (4G), often "only" ~700M free, it seems that the Piwigo NG app is not really handling well the amount of used memory. Probably, loading everything even if it is not visible to the user. The oom killer only happens with this application. I don't usually see this happening. |
Hi, this is because the app shows a lot of images and so I added a cache for that. The problem is that it is still taking too much memory on certain devices. I have made some small changes about this but it is hard for me to tell if it will be efficient. |
I've made some changes to image display and cache for version 2.2.0. Please feel free to try it out and see if it solves the issue. |
This is not new from this version. Has been happening for quite a while.
The text was updated successfully, but these errors were encountered: