You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing my app on several devices via TestFlight and receive frequent crashes from code in OCKHealthKitPassthroughStore. I have a straightforward use of a few CareKit tasks to fetch and display the latest outcome such as step count, exercise minutes, and body weight. The crash never occurs while using the app, but only while idle in the background.
The crash occurs in several locations, but all within the OCKHealthKitPassthroughStore framework code.
For example, at the line "context.performAndWait" shown below.
I am testing my app on several devices via TestFlight and receive frequent crashes from code in OCKHealthKitPassthroughStore. I have a straightforward use of a few CareKit tasks to fetch and display the latest outcome such as step count, exercise minutes, and body weight. The crash never occurs while using the app, but only while idle in the background.
The crash occurs in several locations, but all within the OCKHealthKitPassthroughStore framework code.
For example, at the line "context.performAndWait" shown below.
extension OCKStore {
func fetchHealthKitTasks(query: OCKTaskQuery) throws -> [OCKHealthKitTask] {
var result: Result<[OCKHealthKitTask], Error> = .failure(OCKStoreError.fetchFailed(reason: "Timeout"))
context.performAndWait {
I also receive frequent crashes that appear to be related to use of Calendar when computing schedules, e.g. from last line shown in this snippet.
The crash then occurs in this subsequent call to Calendar:
return event.start >= Calendar.current.startOfDay(for: start)
Has anyone else encountered these kinds of crashes? Any suggestions for resolving?
Thank you!
Dave Carlson
The text was updated successfully, but these errors were encountered: