Stacking breaks on Android client #4699

Closed
opened 2026-02-05 10:47:57 +03:00 by OVERLORD · 9 comments
Owner

Originally created by @Danilado on GitHub (Nov 7, 2024).

The bug

Stacks created through Android client disappear shortly after fully reopening the app (close the app, remove it from recent menu and reopen)

The OS that Immich Server is running on

OpenSuse Tumbleweed

Version of Immich Server

1.119.1

Version of Immich Mobile App

1.119.0 build 164

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

I don't think it's relevant

Your .env content

I don't think it's relevant

Reproduction steps

  1. Open mobile app
  2. Sync a couple of pictures with server
  3. Stack them in the app
    3.1 Stack works normally
  4. Close the app (fully)
  5. Reopen
  6. Wait for it to sync with server (stack still appears as a stack for a couple of seconds)
  7. Stack icon disappears, only one picture of a stack is visible

Relevant log output

Doesn't show anything relevant at "finest" setting

Additional information

Using Google Pixel 8 pro

Originally created by @Danilado on GitHub (Nov 7, 2024). ### The bug Stacks created through Android client disappear shortly after fully reopening the app (close the app, remove it from recent menu and reopen) ### The OS that Immich Server is running on OpenSuse Tumbleweed ### Version of Immich Server 1.119.1 ### Version of Immich Mobile App 1.119.0 build 164 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML I don't think it's relevant ``` ### Your .env content ```Shell I don't think it's relevant ``` ### Reproduction steps 1. Open mobile app 2. Sync a couple of pictures with server 3. Stack them in the app 3.1 Stack works normally 4. Close the app (fully) 5. Reopen 6. Wait for it to sync with server (stack still appears as a stack for a couple of seconds) 7. Stack icon disappears, only one picture of a stack is visible ### Relevant log output ```shell Doesn't show anything relevant at "finest" setting ``` ### Additional information Using Google Pixel 8 pro
OVERLORD added the 📱mobile label 2026-02-05 10:47:57 +03:00
Author
Owner

@Danilado commented on GitHub (Nov 7, 2024):

Just re-ckecked after logging out and in again
the issue still occurs
but the pictures just un-stack when the timeline rebuilds. no they don't

The problem might be related to high server load. I can recheck later if you can't recreate

@Danilado commented on GitHub (Nov 7, 2024): Just re-ckecked after logging out and in again the issue still occurs ~but the pictures just un-stack when the timeline rebuilds.~ no they don't The problem might be related to high server load. I can recheck later if you can't recreate
Author
Owner

@Danilado commented on GitHub (Nov 7, 2024):

And then they just appear after 10-th timeline rebuild
I'm so sorry

@Danilado commented on GitHub (Nov 7, 2024): And then they just appear after 10-th timeline rebuild I'm so sorry
Author
Owner

@alextran1502 commented on GitHub (Nov 7, 2024):

No problem, there seem to be a bug still in the process

@alextran1502 commented on GitHub (Nov 7, 2024): No problem, there seem to be a bug still in the process
Author
Owner

@Danilado commented on GitHub (Nov 7, 2024):

I didn't want to reopen this since it might be the problem with my server's limited speed but stacking is still really weird for me

Sometimes stacks just will not appear until I manually rebuild the timeline
And then they disappear when I reopen the app (as stated in reproduction steps)

The timeline rebuild is also weird it only happens when I "pull to reload" two or three times (and I only do it when the loading spinner in navbar disappears)

@Danilado commented on GitHub (Nov 7, 2024): I didn't want to reopen this since it might be the problem with my server's limited speed but stacking is still really weird for me Sometimes stacks just will not appear until I manually rebuild the timeline And then they disappear when I reopen the app (as stated in reproduction steps) The timeline rebuild is also weird it only happens when I "pull to reload" two or three times (and I only do it when the loading spinner in navbar disappears)
Author
Owner

@LaPeSi commented on GitHub (Nov 26, 2024):

I also have an issue regarding stacking on mobile (android).
Works fine on mobile if viewed through browser but does not show stacks in mobile app.
My whole setup is a few days old.
Like @Danilado mentioned, pulling refresh a few times triggers a rebuild which fixes this.
I'm hosting on a raspberry pi 4 8gigs ram.

@LaPeSi commented on GitHub (Nov 26, 2024): I also have an issue regarding stacking on mobile (android). Works fine on mobile if viewed through browser but does not show stacks in mobile app. My whole setup is a few days old. Like @Danilado mentioned, pulling refresh a few times triggers a rebuild which fixes this. I'm hosting on a raspberry pi 4 8gigs ram.
Author
Owner

@stephen304 commented on GitHub (Feb 11, 2025):

I'm having this as well, several more recent stacks show up but many older stacks only show up on the web UI.

There's an annoying side-effect: since the android app doesn't seem to be aware of the stacked images (aside from the cover), it also doesn't associate the stacked images with the local copy. So when you select the stack and delete the local copy, any images in the stack remain locally on my phone.

(keywords: stacked timeline images photos assets missing absent)

@stephen304 commented on GitHub (Feb 11, 2025): I'm having this as well, several more recent stacks show up but many older stacks only show up on the web UI. There's an annoying side-effect: since the android app doesn't seem to be aware of the stacked images (aside from the cover), it also doesn't associate the stacked images with the local copy. So when you select the stack and delete the local copy, any images in the stack remain locally on my phone. (keywords: stacked timeline images photos assets missing absent)
Author
Owner

@lukreaner commented on GitHub (Mar 6, 2025):

I am experiencing the same issue. Stacks created on the web are also not appearing in my mobile app at all. I am hosting on a Xeon E3-1231v3 with 16GB RAM, so I doubt it is a server performance issue.
Server: v1.128.0
App: 1.128.0 build 186

@lukreaner commented on GitHub (Mar 6, 2025): I am experiencing the same issue. Stacks created on the web are also not appearing in my mobile app at all. I am hosting on a Xeon E3-1231v3 with 16GB RAM, so I doubt it is a server performance issue. Server: v1.128.0 App: 1.128.0 build 186
Author
Owner

@mattkula commented on GitHub (Apr 19, 2025):

I think I narrowed down the issue here. On the photos page, the app syncs all assets and then syncs remote albums here. Both of them fetch the assets and upserts them into the DB. But I believe the albums sync doesn't have any knowledge of stacks so it's null-ing out the stack info on the assets which the home photos timeline uses to build the stacks.

I haven't setup the dev environment to ensure this is the case but I have two clues that point to this directly.

  • Assets in a stack which are not in an album have shown up to me properly in their stacks
  • When I do a full refresh on the photos screen (two pull-to-refreshes in quick succession), I see the stacks working properly for a brief second and then they break. Seems they work when the getAllAsset() call completes but break when the refreshRemoteAlbums() call finishes.

Also this seems a dupe of this issue.

@mattkula commented on GitHub (Apr 19, 2025): I think I narrowed down the issue here. On the photos page, the app syncs all assets and then syncs remote albums [here](https://github.com/immich-app/immich/blob/main/mobile/lib/pages/photos/photos.page.dart#L91-L92). Both of them fetch the assets and upserts them into the DB. But I believe the albums sync doesn't have any knowledge of stacks so it's null-ing out the [stack info](https://github.com/immich-app/immich/blob/dd1fcd5be50a3b39dba55ff5610883997674d3d7/mobile/lib/entities/asset.entity.dart#L43-L47) on the assets which the home photos timeline uses to build the stacks. I haven't setup the dev environment to ensure this is the case but I have two clues that point to this directly. - Assets in a stack which are _not_ in an album have shown up to me properly in their stacks - When I do a full refresh on the photos screen (two pull-to-refreshes in quick succession), I see the stacks working properly for a brief second and then they break. Seems they work when the `getAllAsset()` call completes but break when the `refreshRemoteAlbums()` call finishes. Also this seems a dupe of [this issue](https://github.com/immich-app/immich/issues/7286).
Author
Owner

@mertalev commented on GitHub (Sep 12, 2025):

Closing as this doesn't seem to be an issue with the new timeline.

@mertalev commented on GitHub (Sep 12, 2025): Closing as this doesn't seem to be an issue with the new timeline.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#4699