-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Deleting photos causes immich android app to get into a bad state. #15541
Comments
The only other thing i could think of that i had done recently was install immich tv on my google chromecast tv. I have its screensaver coming from immich tv. Would this cause issues deleting photos? its a stretch but its all i can think of. |
i was able to get this out of the log as well. Failed to delete asset from device PlatformException(deleteWithIds failed, null, null, null) #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648) |
and this........... #0 AssetPathEntity.obtainPathFromProperties (package:photo_manager/src/types/entity.dart:162) |
I think I found the culprit for the issue: When the next image is being loaded after deleting the first one, the new asset is loaded correctly and display (https://github.com/immich-app/immich/blob/main/mobile/lib/pages/common/gallery_viewer.page.dart#L264), but "currentAssetProvider" is never updated, as the image did not change view "onPageChange" When trying the next delete, https://github.com/immich-app/immich/blob/main/mobile/lib/widgets/asset_viewer/bottom_gallery_bar.dart#L78 tries to perform a deletion of the previous asset, which likely fails. |
@Saschl it might be the culprit? im not sure but im using the android app. does the same code exist on that client as well? |
The bug
I will delete a photo sometimes and its fine. I think its when i delete a photo from the server as well that it seems to hang. I just get the spinner indefinitely. I will kill the app and try to come back in and it will show the pictures but the icon that shows the backup status just keeps spinning. When i check the server the version isnt blank like it cant connect to the server. I have to log out and back in for it to restore.
The OS that Immich Server is running on
Debian
Version of Immich Server
v1.24.2
Version of Immich Mobile App
v1.24.2
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
...
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: