immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
51.51k stars 2.73k forks source link

[BUG]Selecting Backup Albums keeps loading #5826

Closed wangl1987 closed 7 months ago

wangl1987 commented 10 months ago

Some phones keep loading when you choose to back up your albums. The images and log files are as follows IMG_8075 Immich_log_2023-12-18T213155.266182.csv

The OS that Immich Server is running on

Installing through Docker Compose on Mac OS

Version of Immich Server

1.91.3

Version of Immich Mobile App

1.91.0

Platform with the issue

Your docker-compose.yml content

no changes

Your .env content

no changes

Reproduction steps

1. I have two ios phones, both have the same app version and connect to the same server. phone A has 1000+ photos and phone B has 8000+ photos. Only phone B will have this problem.
2. The problem occurs when setting the access permission of immich photos to "all photos" on B phone. So I tried to set the access permission of immich photos to "selected photos", then manually select all photos in the album, then select backup album in the app can be displayed normally!
3. I'm still having this problem whether I choose to turn on the ignore icloud photos feature or not
4. After loading the backup albums via 2. I realized that the list of backup albums in immich doesn't match the list of albums in the phone, but matches the list of Media Types in the phone, and is missing the Screen Recordings.

Additional information

No response

alextran1502 commented 10 months ago

This is a known issue on some phones, and we haven't found the cause yet. My guess is that on some phone, there are some ablums that prevent loading the list of album because if you change the permission to allow a certain album, then it will show up.

wangl1987 commented 10 months ago

@alextran1502 I have tried migrating photos from phone B to phone C via data migration, and I get the same problem on phone C. I'm guessing this could also be related to existing photos and albums I can assist with some testing if needed and hopefully assist in locating the problem as soon as possible as he has been bothering me for a long time. Thanks for the reply

alextran1502 commented 10 months ago

@wangl1987 Thank you for the offer.

I think we can start with manually allowing individual album to be seen by the app and check if the album get loaded in the page. I think eventually we will pick an album that might cause an issue, then we can dive into which properties of the album that are different from others

wangl1987 commented 10 months ago

Also, is it possible to align the list of albums selected for backup in immich with the list of albums in the phone, rather than with the media type? I'm not sure if this is a problem with my usage habits or not

wangl1987 commented 10 months ago

@alextran1502 I just tried assigning permissions to each album individually, and they all select to the backup album properly

alextran1502 commented 10 months ago

Do you use Shared Album feature of iCloud?

wangl1987 commented 10 months ago

@alextran1502 No, I turned that off. However, I have noticed that in my albums, there are some photos with a corrupted status, it's not quite clear how these corrupted photos were created, I'm trying to delete them and see what happens, but there are so many photos in the albums, it's not clear if there's anything I can do to filter out these photos

wangl1987 commented 10 months ago

These corrupted photos will have an exclamation point with a circle in the bottom right corner, and it is not possible to upload these photos in immich when permissions have been assigned to these corrupted photos individually. It's not clear if these photos are the cause.

alextran1502 commented 10 months ago

@wangl1987 I believe there are cases of people having corrupted photos, but the albums are still loading. Do you mind taking a screenshot of how the corrupted photos get displayed?

wangl1987 commented 10 months ago

@alextran1502 Sorry I didn't respond in time after taking yesterday off. corrupted photos look like this Figure 1 is displayed when clicking on the exclamation mark in the lower right corner of the image Figure 2 is displayed when clicking on the upper right corner to edit I hope this helps some IMG_8096 IMG_8097 IMG_8098

wangl1987 commented 10 months ago

@alextran1502 When I deleted all the corrupted photos from my cell phone album. It's also normal now to assign access to all photos to immich. It seems to be a problem with these corrupted photos, let me know if you need to provide any more info on this!

hrmtc commented 9 months ago

Hi. There is something that I can do to be able to upload my albums? I’m having the same problem, but in my case I don’t have any corrupted photos on my library.

When I try to select albums it just keep loading indefinitely.

I’m using the last versions of both server and iOS app.

IMG_3245

Zosu commented 9 months ago

I managed to get mine working (though it's still a little buggy. Somehow the backed up number is greater than the total). Ironically, after enabling iCloud Photos it was able to back up everything.

I noticed from experimenting with limited photo access with the app that it never loaded when I had certain slow motion videos selected. Maybe that is a factor?

stephencarse commented 8 months ago

I had this issue too, and just managed to resolve it by deleting a bunch of albums. I can't give better information than that unfortunately. I can see in the app logs that it had previously said "Found 52 local albums" and then got stuck after that. After deleting a bunch of albums, it now works. For what it's worth, I've had an issue with my iCloud recently, and sync wasn't working correctly, including album sync.

ednzylmz commented 7 months ago

A hacky solution, give immich limited access and choose everything in "recents" album. Use swipe action top left to bottom right to start scroll selecting, you can use other hand to scroll faster and select everything.

adrian-fuertes commented 7 months ago

I never got it to work... I now use PhotoSync and mount my library as an external library. It's been pretty smooth.

keithellis74 commented 7 months ago

A hacky solution, give immich limited access and choose everything in "recents" album. Use swipe action top left to bottom right to start scroll selecting, you can use other hand to scroll faster and select everything.

This worked for me in IOS 17.3.1; Immich IOS App version 1.98.2 build 144 and Immich 1.98.2.

sadorowo commented 7 months ago

I still have this issue after updating both server and client to 1.99, but only when there's no assets in my albums.

Tried both release and beta version from github actions.

So, new change in v0.99 won't fixed issue with state disappearing after media deletion, for me.

I tried to clear app cache, remove all albums in both DCIM and Pictures.

Plus, backup options are resetting every time I click "Select albums":

https://github.com/immich-app/immich/assets/97941280/939e4207-035b-4c3d-88b8-688028a3203e

Sorry for bad recording quality, it's probably an issue with built-in LineageOS screen recorder.

edit: recording quality isn't that bad this time, maybe something got fixed?

alextran1502 commented 7 months ago

@sadorowo how many albums/assets do you have on your device? Are you connecting to the server while performing the recording?

sadorowo commented 7 months ago

@sadorowo how many albums/assets do you have on your device? Are you connecting to the server while performing the recording?

Yes, I'm connecting to the server. At this moment all assets are backed up, there isn't anything on my phone.

I have only Camera in my DCIM directory, and in Pictures I have .thumbnails, Screenshots, Messenger and Instagram.

Edit: I took a random screenshot. It got saved in Pictures/Screenshots. After trying to select backup albums 2 albums appeared:

I already tried to proceed without selecting Recents. That did not help.

I also can't exclude Recents, because I'm getting error: Cannot exclude album contains all assets

Hovever, I can exclude Screenshots without any issue.

sadorowo commented 7 months ago

oh, i forgot, this is appended to my log when I try to select albums to backup

Screenshot_20240325-224537_Immich

sadorowo commented 7 months ago

So, this is what happens when I select only Camera album (without Recents), then remove all assets from Camera directory. I'm leaving it unchanged.

Screenshot_20240326-120551_Immich

Maybe it's better to reopen this issue, because the problem isn't fixed for everyone at all?