[BUG] Mobile app crashes sporadically when swiping. #210

Closed
opened 2026-02-04 18:44:46 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @alextran1502 on GitHub (Aug 17, 2022).

Describe the bug
The mobile app would crash after sipping continuously for an extended period. Perhaps there is a memory leaked

Originally created by @alextran1502 on GitHub (Aug 17, 2022). <!-- Note: Please search to see if an issue already exists for the bug you encountered. --> **Describe the bug** The mobile app would crash after sipping continuously for an extended period. Perhaps there is a memory leaked
Author
Owner

@waclaw66 commented on GitHub (Apr 22, 2024):

I think I'm facing this issue using 1.102.2. App starts with 70% system memory (6GB) usage with my testing. Swiping photos causes that system memory usage raises up to 85%, then system starts killing other apps and finally Immich app is killed too.
The issue is related to viewing original images loaded from device.

@waclaw66 commented on GitHub (Apr 22, 2024): I think I'm facing this issue using 1.102.2. App starts with 70% system memory (6GB) usage with my testing. Swiping photos causes that system memory usage raises up to 85%, then system starts killing other apps and finally Immich app is killed too. The issue is related to viewing original images loaded from device.
Author
Owner

@alextran1502 commented on GitHub (Apr 22, 2024):

@martyfuhry do you think this issue related to the number of cache assets we are storing on the device? From what I understand the cache we use is disk cache so this shouldn't happen, so it must be something else in the gallery viewer that causes memory leaked

@alextran1502 commented on GitHub (Apr 22, 2024): @martyfuhry do you think this issue related to the number of cache assets we are storing on the device? From what I understand the cache we use is disk cache so this shouldn't happen, so it must be something else in the gallery viewer that causes memory leaked
Author
Owner

@waclaw66 commented on GitHub (Apr 22, 2024):

Seems viewing remote only images causes this isuue too, however consumed memory raises very slowly because of small size of thumbnails.

@waclaw66 commented on GitHub (Apr 22, 2024): Seems viewing remote only images causes this isuue too, however consumed memory raises very slowly because of small size of thumbnails.
Author
Owner

@martyfuhry commented on GitHub (Apr 22, 2024):

Yes this seems like it's the in memory cache, you are correct. The large images, especially the large local images, are putting too much pressure on the system. Thank you for looking at the memory use over time! We keep a separate image cache for the large images. So tweaking that cache should be straightforward.

I don't believe that the on disk cache also stores anything in memory, but I will double check there, just in case.

@martyfuhry commented on GitHub (Apr 22, 2024): Yes this seems like it's the in memory cache, you are correct. The large images, especially the large local images, are putting too much pressure on the system. Thank you for looking at the memory use over time! We keep a separate image cache for the large images. So tweaking that cache should be straightforward. I don't believe that the on disk cache also stores anything in memory, but I will double check there, just in case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#210