fixed-1.80 mobile | Android app | Cannot select folders to backup within app.
Hello,
One of my phones (samsung note 8) have atopped backing up. Reinstalled the app etc but, its just not loading the folders so I can select what to backup (i only do the camera folder)
Looking at the apps logs, i see it scanned 30 folders but then errors out with this:
15 Replies
Catch all error: Bad state: No element - Bad state: No element
#0 List.first (dart:core-patch/growable_array.dart:343)
#1 BackupNotifier._getBackupAlbumsInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:221)
<asynchronous suspension>
#2 BackupNotifier.getBackupInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:385)
<asynchronous suspension>
created_at,level,context,message,stacktrace
2023-09-27 13:21:50.164039,LogLevel.INFO,"AssetNotifier","Load assets: 258ms",""
2023-09-27 13:13:24.363653,LogLevel.SEVERE,"ImmichErrorLogger","Catch all error: Bad state: No element - Bad state: No element","#0 List.first (dart:core-patch/growable_array.dart:343)
#1 BackupNotifier._getBackupAlbumsInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:221)
<asynchronous suspension>
#2 BackupNotifier.getBackupInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:385)
<asynchronous suspension>
"
2023-09-27 13:13:23.241281,LogLevel.INFO,"BackupNotifier","Found 30 local albums",""
2023-09-27 13:13:22.053381,LogLevel.SEVERE,"ImmichErrorLogger","Catch all error: Bad state: No element - Bad state: No element","#0 List.first (dart:core-patch/growable_array.dart:343)
#1 BackupNotifier._getBackupAlbumsInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:221)
<asynchronous suspension>
#2 BackupNotifier.getBackupInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:385)
<asynchronous suspension>
"
2023-09-27 13:13:16.729020,LogLevel.INFO,"BackupNotifier","Found 30 local albums",""
2023-09-27 13:12:29.732031,LogLevel.INFO,"AssetNotifier","Load assets: 2031ms",""
2023-09-27 13:12:29.705505,LogLevel.INFO,"SyncService","Upserted 3713 assets into the DB",""

Any pointers or things to try will be appreciated 🙂
Is there any additional logs I can provide which can help towards the issue?
What version of the app is this and what version is the server on? I assume you have tried logging out and then back in again?
Both on latest:
1.7.9.1
1.7.9.0 build 103
Yes tried logging in and out after uninstall and new install
No change sadly
Are permissions granted for the app?
Can you click on the error and send the stack trace here?
Yup, storage permission is allowed.
The above is the paste from log. Ia there any other place i can get logs
?
You can click on each item and go to a detail page
Catch all error: Bad state: No element - Bad state: No element
#0 List.first (dart:core-patch/growable_array.dart:343)
#1 BackupNotifier._getBackupAlbumsInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:221)
<asynchronous suspension>
#2 BackupNotifier.getBackupInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:385)
<asynchronous suspension>
Catch all error: Bad state: No element - Bad state: No element
#0 List.first (dart:core-patch/growable_array.dart:343)
#1 BackupNotifier._getBackupAlbumsInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:221)
<asynchronous suspension>
#2 BackupNotifier.getBackupInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:385)
<asynchronous suspension>
#0 List.first (dart:core-patch/growable_array.dart:343)
#1 BackupNotifier._getBackupAlbumsInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:221)
<asynchronous suspension>
#2 BackupNotifier.getBackupInfo (package:immich_mobile/modules/backup/providers/backup.provider.dart:385)
<asynchronous suspension>
#3 BackupNotifier.startBackupProcess (package:immich_mobile/modules/backup/providers/backup.provider.dart:431)
<asynchronous suspension>
#4 BackupNotifier._resumeBackup (package:immich_mobile/modules/backup/providers/backup.provider.dart:585)
<asynchronous suspension>
I have left the phone idle on the screen where it loads all the albums (for a long long time) you have in your phone & nothing loads.
It looks like it is trying to do something with a list of albums, but none are selected or something like that. Maybe @zody can take a look.
If you clear the app cache and re login does that change anything?
Unfortunately it doesn't.
The list of albums don't populate, so I'm unable to select an album for backup.
This looks like a bug, but I'm not a mobile developer. Hopefully one of them can look at the stacktrace and figure out what is going on.
The trace shows the affected line of code, so they could be able to figure it out
Oh that's good to hear that it has some kind of tracking to make it easier.
Happy to provide any more logs or things to try
This got fixed AFAIK
https://github.com/immich-app/immich/pull/4213
Hopefully, should work in the next release
GitHub
fix(mobile): assetList is empty by fujie-xiyou · Pull Request #4213...
On my phone (Andorid 13, Xiaomi 13 Pro), the assetCountInAlbum variable in this code has a value of 2, but the length of assetList is 0. The code of the main branch will throw an exception here, ca...
Oh wow, thanks for linking the pr. Will wait for the next update.
Fixed in 1.80 mobile