Closed nohli closed 3 years ago
Hi @nohli
thank you for your report.
I investigated the problem and it appears, that during the save the timestamps were incorrect for the native side. (For Flutter they are in millis, for Swift in seconds).
Made adjustments on the Flutter side, please check the new version 1.5.2
The new version works 😊
You're great 🙏🏽
Describe the bug Since version 1.5.0 or 1.5.1 the app crashes on iOS.
While everything in Dart is in try-catch-blocks, the whole app crashes. Was there a change that I need to update? The analyzer does not complain about any argument.
Screenshots
Below the crash logs I've sent to myself via TestFlight and a screenshot of the crash in Xcode:
Log 1
``` Incident Identifier: 818A3A29-E11B-40E9-AB96-CCBFB0548444 Hardware Model: iPhone10,6 Process: Runner [18400] Path: /private/var/containers/Bundle/Application/8C7D995A-D00B-4055-A557-255202043F77/Runner.app/Runner Identifier: com.achimsapps.breathe Version: 3.18.0 (2220) AppStoreTools: 13A1030d AppVariant: 1:iPhone10,6:15 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.achimsapps.breathe [3592] Date/Time: 2021-11-01 21:18:42.2634 +0100 Launch Time: 2021-11-01 21:17:52.8102 +0100 OS Version: iPhone OS 15.1 (19B74) Release Type: User Baseband Version: 5.00.00 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x182e09c9c __exceptionPreprocess + 216 (NSException.m:200) 1 libobjc.A.dylib 0x199fbd758 objc_exception_throw + 56 (objc-exception.mm:565) 2 CoreFoundation 0x182e5cd04 +[NSException raise:format:] + 108 (NSException.m:156) 3 HealthKit 0x18ec00aa8 -[HKObject _validateForCreation] + 140 (HKObject.m:127) 4 HealthKit 0x18ec00838 +[HKObject _newDataObjectWithMetadata:device:config:] + 268 (HKObject.m:112) 5 HealthKit 0x18ec006e8 +[HKSample _newSampleWithType:startDate:endDate:device:metadata:config:] + 176 (HKSample.m:42) 6 HealthKit 0x18ec01f7c +[HKCategorySample categorySampleWithType:value:startDate:endDate:device:metadata:] + 268 (HKCategorySample.m:42) 7 HealthKitReporter 0x1011d8dd4 @nonobjc HKCategorySample.__allocating_init(type:value:start:end:device:metadata:) + 48 (Log 2
``` Incident Identifier: 6F48EAF0-19F5-49C5-B79F-1CB3A9068FAD Hardware Model: iPhone10,6 Process: Runner [13398] Path: /private/var/containers/Bundle/Application/8C7D995A-D00B-4055-A557-255202043F77/Runner.app/Runner Identifier: com.achimsapps.breathe Version: 3.18.0 (2220) AppStoreTools: 13A1030d AppVariant: 1:iPhone10,6:15 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.achimsapps.breathe [2962] Date/Time: 2021-10-30 21:36:55.1023 +0200 Launch Time: 2021-10-30 21:36:52.5655 +0200 OS Version: iPhone OS 15.1 (19B74) Release Type: User Baseband Version: 5.00.00 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x182e09c9c __exceptionPreprocess + 216 (NSException.m:200) 1 libobjc.A.dylib 0x199fbd758 objc_exception_throw + 56 (objc-exception.mm:565) 2 CoreFoundation 0x182e5cd04 +[NSException raise:format:] + 108 (NSException.m:156) 3 HealthKit 0x18ec00aa8 -[HKObject _validateForCreation] + 140 (HKObject.m:127) 4 HealthKit 0x18ec00838 +[HKObject _newDataObjectWithMetadata:device:config:] + 268 (HKObject.m:112) 5 HealthKit 0x18ec006e8 +[HKSample _newSampleWithType:startDate:endDate:device:metadata:config:] + 176 (HKSample.m:42) 6 HealthKit 0x18ec01f7c +[HKCategorySample categorySampleWithType:value:startDate:endDate:device:metadata:] + 268 (HKCategorySample.m:42) 7 HealthKitReporter 0x102870dd4 @nonobjc HKCategorySample.__allocating_init(type:value:start:end:device:metadata:) + 48 (Smartphone (please complete the following information):