[BUG] Unable to sync assets when exposureTime has non-numeric chars #1427

Closed
opened 2026-02-05 01:46:21 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @lordkitsuna on GitHub (Oct 7, 2023).

The bug

images from mobile client are successfully uploaded however the client does not update the status leaving the images marked as "not upload". this means you can't sort to albums or otherwise manage it as expected.

After increasing logging to maximum and enabling troubleshooting the following related error can be seen

Error while getting remote assets: FormatException: Invalid double
24 sec.

#0      double.parse (dart:core-patch/double_patch.dart:112)
#1      DurationExtension.toDouble (package:immich_mobile/utils/builtin_extensions.dart:18)
#2      _exposureTimeToSeconds (package:immich_mobile/shared/models/exif_info.dart:168)
#3      new ExifInfo.fromDto (package:immich_mobile/shared/models/exif_info.dart:57)
#4      new Asset.remote (package:immich_mobile/shared/models/asset.dart:31)
#5      MemoryService.getMemoryLane.<anonymous closure> (package:immich_mobile/modules/memories/services/memory.service.dart:39)
#6      MappedListIterable.elementAt (dart:_internal/iterable.dart:415)
#7      ListIterator.moveNext (dart:_internal/iterable.dart:344)
#8      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189)
#9      new _GrowableList.of (dart:core-patch/growable_array.dart:150)
#10     new List.of (dart:core-patch/array_patch.dart:47)
#11     SetBase.toList (dart:collection/set.dart:119)
#12     AssetService._getRemoteAssets (package:immich_mobile/shared/services/asset.service.dart:76)
<asynchronous suspension>
#13     SyncService._syncRemoteAssetsFull (package:immich_mobile/shared/services/sync.service.dart:193)
<asynchronous suspension>
#14     SyncService.syncRemoteAssetsToDb.<anonymous closure> (package:immich_mobile/shared/services/sync.service.dart:81)
<asynchronous suspension>
#15     AssetService.refreshRemoteAssets (package:immich_mobile/shared/services/asset.service.dart:42)
<asynchronous suspension>
#16     AssetNotifier.getAllAsset (package:immich_mobile/shared/providers/asset.provider.dart:53)
<asynchronous suspension>

The OS that Immich Server is running on

arch/docker

Version of Immich Server

1.81.1

Version of Immich Mobile App

1.80.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

n/a

Your .env content

n/a

Reproduction steps

1.open app
2.new images load
3 remain marked as not uploaded even after uploading.

Additional information

it was partially discussed on the Discord and suggested that it is an issue with parsing numbers. numbers need to be converted from wholes to doubles aka 24 to 24.0

Originally created by @lordkitsuna on GitHub (Oct 7, 2023). ### The bug images from mobile client are successfully uploaded however the client does not update the status leaving the images marked as "not upload". this means you can't sort to albums or otherwise manage it as expected. After increasing logging to maximum and enabling troubleshooting the following related error can be seen ``` Error while getting remote assets: FormatException: Invalid double 24 sec. #0 double.parse (dart:core-patch/double_patch.dart:112) #1 DurationExtension.toDouble (package:immich_mobile/utils/builtin_extensions.dart:18) #2 _exposureTimeToSeconds (package:immich_mobile/shared/models/exif_info.dart:168) #3 new ExifInfo.fromDto (package:immich_mobile/shared/models/exif_info.dart:57) #4 new Asset.remote (package:immich_mobile/shared/models/asset.dart:31) #5 MemoryService.getMemoryLane.<anonymous closure> (package:immich_mobile/modules/memories/services/memory.service.dart:39) #6 MappedListIterable.elementAt (dart:_internal/iterable.dart:415) #7 ListIterator.moveNext (dart:_internal/iterable.dart:344) #8 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189) #9 new _GrowableList.of (dart:core-patch/growable_array.dart:150) #10 new List.of (dart:core-patch/array_patch.dart:47) #11 SetBase.toList (dart:collection/set.dart:119) #12 AssetService._getRemoteAssets (package:immich_mobile/shared/services/asset.service.dart:76) <asynchronous suspension> #13 SyncService._syncRemoteAssetsFull (package:immich_mobile/shared/services/sync.service.dart:193) <asynchronous suspension> #14 SyncService.syncRemoteAssetsToDb.<anonymous closure> (package:immich_mobile/shared/services/sync.service.dart:81) <asynchronous suspension> #15 AssetService.refreshRemoteAssets (package:immich_mobile/shared/services/asset.service.dart:42) <asynchronous suspension> #16 AssetNotifier.getAllAsset (package:immich_mobile/shared/providers/asset.provider.dart:53) <asynchronous suspension> ``` ### The OS that Immich Server is running on arch/docker ### Version of Immich Server 1.81.1 ### Version of Immich Mobile App 1.80.0 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML n/a ``` ### Your .env content ```Shell n/a ``` ### Reproduction steps ```bash 1.open app 2.new images load 3 remain marked as not uploaded even after uploading. ``` ### Additional information it was partially discussed on the Discord and suggested that it is an issue with parsing numbers. numbers need to be converted from wholes to doubles aka 24 to 24.0
OVERLORD added the 📱mobile label 2026-02-05 01:46:21 +03:00
Author
Owner

@vodobaas1 commented on GitHub (Oct 13, 2023):

I am also having this issue.

@vodobaas1 commented on GitHub (Oct 13, 2023): I am also having this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1427