Skip to content

[SDK] Week out of range during Alarm Scheduling #8984

@murilopereirame

Description

@murilopereirame

Log

called `Result::unwrap()` on an `Err` value: ComponentRange { name: "week", minimum: 1, maximum: 52, value: 54, conditional_message: Some("for the given year") }
de.tutao.tutasdk.InternalException: called `Result::unwrap()` on an `Err` value: ComponentRange { name: "week", minimum: 1, maximum: 52, value: 54, conditional_message: Some("for the given year") }
at de.tutao.tutasdk.TutasdkKt.uniffiCheckCallStatus(Unknown Source:39)
at de.tutao.tutasdk.TutasdkKt.access$uniffiCheckCallStatus(Unknown Source:0)
at de.tutao.tutasdk.EventFacade.generateFutureInstances-4PLdz1A(Unknown Source:81)
at de.tutao.tutashared.alarms.AlarmModel.iterateAlarmOccurrences(Unknown Source:298)
at de.tutao.tutanota.alarms.AlarmNotificationsManager.iterateAlarmOccurrences(Unknown Source:83)
at de.tutao.tutanota.alarms.AlarmNotificationsManager.schedule(Unknown Source:172)
at de.tutao.tutanota.alarms.AlarmNotificationsManager.scheduleNewAlarms(Unknown Source:57)
at de.tutao.tutanota.push.TutanotaNotificationsHandler.handleAlarmNotifications(Unknown Source:2)
at de.tutao.tutanota.push.TutanotaNotificationsHandler.onNewNotificationAvailable(Unknown Source:32)
at de.tutao.tutanota.push.PushNotificationService$NotificationSseListener.onMessage(Unknown Source:15)
at de.tutao.tutanota.push.SseClient.handleLine(Unknown Source:94)
at de.tutao.tutanota.push.SseClient.connect$lambda$2(Unknown Source:15)
at de.tutao.tutanota.push.SseClient.$r8$lambda$x2UoAh9C5bOpg-8xGMUJKE24Y8M(SourceFile:0)
at de.tutao.tutanota.push.SseClient$$ExternalSyntheticLambda3.invoke(SourceFile:0)
at kotlin.io.TextStreamsKt.forEachLine(Unknown Source:43)
at de.tutao.tutanota.push.SseClient.connect(Unknown Source:158)
at de.tutao.tutanota.push.SseClient.reschedule$lambda$1(Unknown Source:5)
at de.tutao.tutanota.push.SseClient.$r8$lambda$j6107n2ZFZOKO4n1r0UVoQVckNI(SourceFile:0)
at de.tutao.tutanota.push.SseClient$$ExternalSyntheticLambda2.run(SourceFile:0)
at android.os.Handler.handleCallback(Handler.java:991)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at de.tutao.tutanota.push.LooperThread.run(Unknown Source:34)

Note

This error happens only on mobile due to its dependency on the SDK

Test notes

Using a reproducible scenario (on mobile):

  • Create a monthly event with an interval of 3 to repeat every third Thursday, with reminders, e.g April 24 2025.
  • Events should be created and shown at their proper day, even in the next years.
  • No exception or error is thrown during:
    • Creation
    • Editing
    • Login/Logout

Test Notes v2

  • Create a monthly event with an interval of 1 to repeat every last Friday, with reminders, e.g March 28 2025.
  • Events should be created and shown at their proper day, even in the next years
  • No exception or error is thrown during:
    • Creation
    • Editing
    • Login/Logout

Metadata

Metadata

Labels

SDKbugbroken functionality, usability problems, unexpected errorsstate:testedWe tested it and are about to release ittopic: calendar

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions