JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

Frequent App Crashes on the 1st of the Month

Open kundan-kumar-eptura opened this issue 1 year ago • 2 comments

(Required) Version Number: 8.0.5

Description

We are experiencing frequent crashes in the app, specifically on the 1st day of every month. This has been observed for January 1, 2025, as well as for similar crashes in 2024 (on the 1st of couples month). The crash appears to be related to a specific pattern or recurring event in the app. The issue is reported frequently through Firebase Crashlytics.

Steps to Reproduce:

Launch the app. Use it normally, but specifically on the 1st day of the month. Observe that the app crashes repeatedly at the start of the day (or the first time it's opened on the 1st). You may need to check Firebase Crashlytics for detailed error logs.

Expected Behavior:

The app should not crash on the 1st of any month and should handle the daily cycle normally without interruptions.

##Environment: Device: All User iOS Version: 17.5.1 Crash Analytics Tool: Firebase Crashlytics

#Firebase Crashlytics Report Screenshot 2025-01-09 at 15 29 53

kundan-kumar-eptura avatar Jan 09 '25 10:01 kundan-kumar-eptura

I do not understand the steps to reproduce.

  1. launch the app
  2. use it normally
  3. --> "but specifically on the 1st day of the month" -- what does this mean?

What are you doing on the first of the month? Are you just tapping the first of the month?

Also, i see in the log stack, reloadData is being called, followed by selectDates. Is this automatic?

What code do you do when a user taps a date for the following to be called (according to the stack trace)

  1. ReloadData
  2. then select dates

Its hard to tell the sequence of events if I do not know the code and order of it being run. Finally, is it reproducible in development mode as well? If yes, then a minimal app reproducing it will be helpful

patchthecode avatar Jan 09 '25 16:01 patchthecode

@patchthecode Q1 . "but specifically on the 1st day of the month" -- what does this mean?

Ans - Means if current date will be start of month or 1Jan , 1 Feb , 1 Mar.. so on.

Q2 . What are you doing on the first of the month? Are you just tapping the first of the month Ans - I'm just opening app and passing current date.

Q3. i see in the log stack, reloadData is being called, followed by selectDates. Is this automatic? Ans - Yes this is automatic call on passing current date

@IBOutlet var calendarView: JTACMonthView!
...
override func viewDidLoad() {
        super.viewDidLoad()
     calendarView.selectDates([Date()])
    }
..

kundan-kumar-eptura avatar Jan 22 '25 11:01 kundan-kumar-eptura