New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SleepAnalysis improvement] background observer ; method to insert sleep sample #218
Open
ghashi
wants to merge
5
commits into
agencyenterprise:development
Choose a base branch
from
ghashi:master
base: development
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…orySampleWithType:value:startDate:endDate:] receives invalid data the app can crash with the following error message: "_HKObjectValidationFailureException: startDate (2022-09-09 15:18:00 +0000) cannot occur after endDate (2022-09-09 12:55:00 +0000)" Incident Identifier: 1AD60E81-2DA4-4F60-B253-468458246B34 Hardware Model: iPhone10,4 Process: App [13285] Path: /private/var/containers/Bundle/Application/9147D7CD-0417-4791-A315-096A22A8C85E/App.app/App AppStoreTools: 14A305 AppVariant: 1:iPhone10,4:15 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Date/Time: 2022-09-11 14:40:09.0556 -0300 Launch Time: 2022-09-11 14:40:04.6203 -0300 OS Version: iPhone OS 15.6.1 (19G82) Release Type: User Baseband Version: 5.03.01 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 2 Last Exception Backtrace: 0 CoreFoundation 0x1811cfd1c __exceptionPreprocess + 216 (NSException.m:200) 1 libobjc.A.dylib 0x1989efee4 objc_exception_throw + 56 (objc-exception.mm:565) 2 CoreFoundation 0x181222f08 +[NSException raise:format:] + 108 (NSException.m:156) 3 HealthKit 0x18d4ae8f4 -[HKObject _validateForCreation] + 140 (HKObject.m:127) 4 HealthKit 0x18d4ae684 +[HKObject _newDataObjectWithMetadata:device:config:] + 268 (HKObject.m:112) 5 HealthKit 0x18d4ae534 +[HKSample _newSampleWithType:startDate:endDate:device:metadata:config:] + 176 (HKSample.m:42) 6 HealthKit 0x18d4afdd0 +[HKCategorySample categorySampleWithType:value:startDate:endDate:device:metadata:] + 268 (HKCategorySample.m:42) 7 App 0x102d5e018 -[RCTAppleHealthKit(Methods_Sleep) sleep_saveSleepSamples:callback:] + 396 (RCTAppleHealthKit+Methods_Sleep.m:56) 8 App 0x102d6f9c0 -[RCTAppleHealthKit saveSleepSample:callback:] + 80 (RCTAppleHealthKit.m:461) 9 CoreFoundation 0x18115ddd0 __invoking___ + 144 (:-1) 10 CoreFoundation 0x181179ea8 -[NSInvocation invoke] + 300 (NSForwarding.m:3378) 11 CoreFoundation 0x1811ae2cc -[NSInvocation invokeWithTarget:] + 76 (NSForwarding.m:3475) 12 App 0x102e01978 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 388 (RCTModuleMethod.mm:584) 13 App 0x102e039ac facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 452 (RCTNativeModule.mm:181) 14 App 0x102e0363c facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const + 56 (RCTNativeModule.mm:103) 15 App 0x102e0363c invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 100 (RCTNativeModule.mm:95) 16 libdispatch.dylib 0x180e8f094 _dispatch_call_block_and_release + 24 (init.c:1517) 17 libdispatch.dylib 0x180e90094 _dispatch_client_callout + 16 (object.m:560) 18 libdispatch.dylib 0x180e6b4a4 _dispatch_lane_serial_drain$VARIANT$armv81 + 600 (inline_internal.h:2622) 19 libdispatch.dylib 0x180e6bf44 _dispatch_lane_invoke$VARIANT$armv81 + 388 (queue.c:3944) 20 libdispatch.dylib 0x180e758e0 _dispatch_workloop_worker_thread + 608 (queue.c:6732) 21 libsystem_pthread.dylib 0x1dc51ce10 _pthread_wqthread + 284 (pthread.c:2599) 22 libsystem_pthread.dylib 0x1dc51c93c start_wqthread + 8 (:-1)
@RuanAzevedo this looks like a useful feature, will it be reviewed and merged? |
+1 this would be a super helpful feature |
+1 for this nice feature. @GGGava any update for this PR?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds 2 features:
Type of change
Checklist: