Importing data to Health.app fails

Originator:dloewenherz
Number:rdar://29899913 Date Originated:06-Jan-2017 06:32 AM
Status:Duplicate/28494648 Resolved:
Product:iOS / iOS SDK Product Version:10.2
Classification:Serious bug Reproducible:Always
 
Area:
HealthKit

Summary:
HKHealthStore fails to save all samples in some situations. The batch save fails with an error which has no actionable fix and the health store fails to save all data points.

Steps to Reproduce:
1. Unzip Radar27Sep2016.zip and open the project.
2. Build and run on a device (the issue does not manifest on a simulator).
3. Wait until you see the Health data access prompt and accept.
4. Wait a few seconds.

Expected Results:
"Success!" is printed to the console and all samples are saved to the health store.

Actual Results:
The following errors are printed to the console and not all samples are saved:

Short Description: Couldn’t communicate with a helper application.
Long Description: The connection to service named com.apple.healthd.server was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.

Version:
10.2 (14C92)

Notes:
Please view attached sysdiagnose that was created while the error occurred, along with referenced Xcode project to reproduce the issue.

Configuration:
iPhone SE 64GB T-Mobile

Attachments:
'sysdiagnose_2017.01.02_11-01-02-0600.tar.gz' and 'Radar27Sep2016.zip' were successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!