FormatException on iOS with new timeline #6950

Closed
opened 2026-02-05 12:39:47 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @not-matthias on GitHub (Aug 24, 2025).

Originally assigned to: @shenlong-tanwen on GitHub.

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

I switched to the Beta timeline a while ago and now I can't see anything anymore due to this error:

Image

(this error also existed in the previous version - 1.138.1)

The OS that Immich Server is running on

NixOS 25.05

Version of Immich Server

v1.139.2

Version of Immich Mobile App

v1.139.2

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

iPhone 12 Pro

Your docker-compose.yml content

Not relevant, seems to be client-side error.

Your .env content

Not relevant, seems to be client-side error.

Reproduction steps

  1. Enable Beta timeline
  2. Go to Photos and it doesn't work anymore

Relevant log output

App logs: Invalid date format: -001-12-30

#0 _extension#1.dateFmt (package:immich_mobile/infrastructure/repositories/timeline.repository.dart:600)
#1 DriftTimelineRepository._watchMainBucket.<anonymous closure> (package:immich_mobile/infrastructure/repositories/timeline.repository.dart:48)
#2 MappedIterable.elementAt (dart:_internal/iterable.dart:402)
#3 ListIterator.moveNext (dart:_internal/iterable.dart:371)
#4 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:194)
#5 new _GrowableList.of (dart:core-patch/growable_array.dart:154)
#6 new List.of (dart:core-patch/array_patch.dart:40)
#7 ListIterable.toList (dart:_internal/iterable.dart:224)
#8 _MappedSelectable._mapResults (package:drift/src/runtime/query_builder/statements/query.dart:294)
#9 _MapStream._handleData (dart:async/stream_pipe.dart:247)
#10 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:184)
#11 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778)
#12 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381)
#13 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312)
#14 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:154)
#15 _MapStream._handleData (dart:async/stream_pipe.dart:252)
#16 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:184)
#17 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778)
#18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381)
#19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312)
#20 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:154)
#21 _MapStream._handleData (dart:async/stream_pipe.dart:252)
#22 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:184)
#23 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778)
#24 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381)
#25 _DelayedData.perform (dart:async/stream_impl.dart:573)
#26 _PendingEvents.handleNext (dart:async/stream_impl.dart:678)
#27 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:649)
#28 _microtaskLoop (dart:async/schedule_microtask.dart:40)
#29 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

Additional information

Current workaround is to not use the beta timeline. Switching back to the old one fixes the issue.

Originally created by @not-matthias on GitHub (Aug 24, 2025). Originally assigned to: @shenlong-tanwen on GitHub. ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug I switched to the Beta timeline a while ago and now I can't see anything anymore due to this error: <img width="591" height="1280" alt="Image" src="https://github.com/user-attachments/assets/060d08ca-7964-47a1-84a8-30c146519158" /> (this error also existed in the previous version - 1.138.1) ### The OS that Immich Server is running on NixOS 25.05 ### Version of Immich Server v1.139.2 ### Version of Immich Mobile App v1.139.2 ### Platform with the issue - [ ] Server - [ ] Web - [x] Mobile ### Device make and model iPhone 12 Pro ### Your docker-compose.yml content ```YAML Not relevant, seems to be client-side error. ``` ### Your .env content ```Shell Not relevant, seems to be client-side error. ``` ### Reproduction steps 1. Enable Beta timeline 2. Go to Photos and it doesn't work anymore ### Relevant log output ```shell App logs: Invalid date format: -001-12-30 #0 _extension#1.dateFmt (package:immich_mobile/infrastructure/repositories/timeline.repository.dart:600) #1 DriftTimelineRepository._watchMainBucket.<anonymous closure> (package:immich_mobile/infrastructure/repositories/timeline.repository.dart:48) #2 MappedIterable.elementAt (dart:_internal/iterable.dart:402) #3 ListIterator.moveNext (dart:_internal/iterable.dart:371) #4 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:194) #5 new _GrowableList.of (dart:core-patch/growable_array.dart:154) #6 new List.of (dart:core-patch/array_patch.dart:40) #7 ListIterable.toList (dart:_internal/iterable.dart:224) #8 _MappedSelectable._mapResults (package:drift/src/runtime/query_builder/statements/query.dart:294) #9 _MapStream._handleData (dart:async/stream_pipe.dart:247) #10 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:184) #11 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778) #12 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381) #13 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312) #14 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:154) #15 _MapStream._handleData (dart:async/stream_pipe.dart:252) #16 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:184) #17 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778) #18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381) #19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312) #20 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:154) #21 _MapStream._handleData (dart:async/stream_pipe.dart:252) #22 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:184) #23 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778) #24 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381) #25 _DelayedData.perform (dart:async/stream_impl.dart:573) #26 _PendingEvents.handleNext (dart:async/stream_impl.dart:678) #27 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:649) #28 _microtaskLoop (dart:async/schedule_microtask.dart:40) #29 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49) ``` ### Additional information Current workaround is to not use the beta timeline. Switching back to the old one fixes the issue.
OVERLORD added the 📱mobilemobile-beta labels 2026-02-05 12:39:47 +03:00
Author
Owner

@shenlong-tanwen commented on GitHub (Aug 24, 2025):

@not-matthias Looks like there is an incorrect date-time value for assets. Would it be possible for you to export the local SQLite database and share it to me over at discord? It might have some metadata about your photos, so you can run it through an SQLite Viewer locally once and make sure you're not sharing anything private.

If you are not comfortable with sharing the entire SQLite DB, please do let me know and I can guide you in running some queries against it to get the required debug information.

You can export the DB by enabling the beta timeline, navigating to the library page, tap the user icon at the top right corner, go into settings, then beta sync status page. If you scroll through the page, you can find the "Export Database" button there

@shenlong-tanwen commented on GitHub (Aug 24, 2025): @not-matthias Looks like there is an incorrect date-time value for assets. Would it be possible for you to export the local SQLite database and share it to me over at discord? It might have some metadata about your photos, so you can run it through an SQLite Viewer locally once and make sure you're not sharing anything private. If you are not comfortable with sharing the entire SQLite DB, please do let me know and I can guide you in running some queries against it to get the required debug information. You can export the DB by enabling the beta timeline, navigating to the library page, tap the user icon at the top right corner, go into settings, then beta sync status page. If you scroll through the page, you can find the "Export Database" button there
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#6950