vicolo-dev / chrono

A modern and powerful clock, alarms, timer and stopwatch app for Android!
GNU General Public License v3.0
463 stars 19 forks source link

Alarms disabled - error decoding string #384

Open Awesomeragle opened 2 days ago

Awesomeragle commented 2 days ago

Describe the bug A clear and concise description of what the bug is.

No alarms are ringing anymore. I have the following error code.

Error decoding string: FormatException: Unexpected character (at character 19952) ....Alarm(0: Updating all alarms on trigger""isActive" false} Active": false})

First day of download half the alarms worked and then they stopped but I'm not sure exactly what time they stopped.

To Reproduce Steps to reproduce the behavior: No steps known for reproduction. The error is persistent and I cannot get it to start sounding alarms again. Below is my setup.

14 hourly alarms from 9am - 10pm. Most are every day, some are set to specific week days. Other than the time/day all alarms are identical. 10 character basic label, bright melody, volume 0%, vibration on, snooze 5 minutes, 0 tasks. Anything not mentioned is default value.

Expected behavior A clear and concise description of what you expected to happen.

Alarms to go off and the error code not be displayed.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone Information

Additional context Add any other context about the problem here.

rom1v commented 1 day ago

Same problem.

In adb logcat:

11-22 14:54:09.840 14401  9795 I flutter : ┌───────────────────────────────────────────────────────────────────────────────
11-22 14:54:09.840 14401  9795 I flutter : │ #0   listFromString (package:clock_app/common/utils/json_serialize.dart:55)
11-22 14:54:09.840 14401  9795 I flutter : │ #1   loadList (package:clock_app/common/utils/list_storage.dart:59)
11-22 14:54:09.840 14401  9795 I flutter : │ #2   <asynchronous suspension>
11-22 14:54:09.840 14401  9795 I flutter : │ #3   scheduleAlarm (package:clock_app/alarm/logic/schedule_alarm.dart:30)
11-22 14:54:09.840 14401  9795 I flutter : │ #4   <asynchronous suspension>
11-22 14:54:09.840 14401  9795 I flutter : │ #5   AlarmRunner.schedule (package:clock_app/alarm/types/alarm_runner.dart:20)
11-22 14:54:09.840 14401  9795 I flutter : │ #6   <asynchronous suspension>
11-22 14:54:09.840 14401  9795 I flutter : │ #7   OnceAlarmSchedule.schedule (package:clock_app/alarm/types/schedules/once_alarm_schedule.dart:34)
11-22 14:54:09.840 14401  9795 I flutter : │ #8   <asynchronous suspension>
11-22 14:54:09.840 14401  9795 I flutter : │ #9   Alarm.schedule (package:clock_app/alarm/types/alarm.dart:258)
11-22 14:54:09.840 14401  9795 I flutter : │ #10   <asynchronous suspension>
11-22 14:54:09.840 14401  9795 I flutter : │ #11   Alarm.enable (package:clock_app/alarm/types/alarm.dart:295)
11-22 14:54:09.840 14401  9795 I flutter : │ #12   <asynchronous suspension>
11-22 14:54:09.840 14401  9795 I flutter : │ #13   Alarm.setIsEnabled (package:clock_app/alarm/types/alarm.dart:212)
11-22 14:54:09.840 14401  9795 I flutter : │ #14   <asynchronous suspension>
11-22 14:54:09.840 14401  9795 I flutter : │ #15   _AlarmScreenState._handleEnableChangeAlarm (package:clock_app/alarm/screens/alarm_screen.dart:146)
11-22 14:54:09.840 14401  9795 I flutter : │ #16   <asynchronous suspension>
11-22 14:54:09.840 14401  9795 I flutter : ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
11-22 14:54:09.840 14401  9795 I flutter : │ ⛔ Error decoding string: FormatException: Unexpected character (at character 19837)
11-22 14:54:09.840 14401  9795 I flutter : │ ⛔ ...rvice] Update alarms in background service","isActive":false}]tive":false}]
11-22 14:54:09.840 14401  9795 I flutter : │ ⛔                                                                  ^
11-22 14:54:09.840 14401  9795 I flutter : │ ⛔ 
11-22 14:54:09.840 14401  9795 I flutter : └───────────────────────────────────────────────────────────────────────────────

clock