NSXCPConnection error handling

Originator:IngmarStein
Number:rdar://23143866 Date Originated:10/16/2015
Status:Duplicate (19601397) Resolved:
Product:OS X SDK Product Version:10.11
Classification: Reproducible:always
 
10-Jan-2016 09:56 AM

I know this has been closed as a duplicate and I don't expect any more feedback. I just wanted to let you know that the bug is still present in 10.11.3 Beta 2 (15D13b).

Apple Developer Relations
12-Nov-2015 07:15 PM

Thank you for contacting us.
	
At this time, there isn't any new information available for this issue. I have checked with engineering.  The issue is still under investigation, and there is no resolution available yet.

If your report was closed as a duplicate, please note that you will not be able to directly view the original report in order to keep its information confidential. 

We will do our best to keep you informed as new information becomes available. Please check release notes regularly for changes affecting this issue.

If you have further questions about this issue or wish to check on the status, please update your report again using the Apple Bug Reporter <http://bugreport.apple.com>.

03-Nov-2015 10:00 PM

The bug is still present in 10.11.2 Beta (15C31f)

Apple Developer Relations
02-Nov-2015 11:56 PM

Engineering has determined that your bug report is a duplicate of another issue and will be closed. 

The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.

If you have any questions or concerns, please update your report directly here: http://bugreport.apple.com/.

23-Oct-2015 06:35 AM

The bug can also be reproduced on the non-beta release of OS X 10.11.1 (15B42)

21-Oct-2015 06:39 AM


'MacBook Pro.spx' was successfully uploaded.
Apple Developer Relations20-Oct-2015 08:10 PM

We need more information to investigate this issue. 
	
Please attach a full System Information Report of the configuration this is reported on.

To obtain a full System Information Report (also known as ASP, system profile, spx, system configuration):

1. Select About This Mac from the Apple Menu
2. Click the System Report button on the About This Mac window
3. Select Save from the File menu (cmd-s)
4. Change the file name and save location as needed
5. Click the Save button

This report can also be obtained in Terminal using the following command:

/usr/sbin/system_profiler -detailLevel full -xml > ~/Desktop/mymachine.spx

Please attach the file to your bug report.

Please provide your response or results by updating your bug report.

16-Oct-2015 05:24 PM

Summary:
When a helper is deleted from /Library/PrivilegedHelperTools, a call on the remote object proxy obtained via -[NSXPCConnection remoteObjectProxyWithErrorHandler] hangs and no error block is called.

Steps to Reproduce:
1. Download the EvenBetterAuthorizationSample
2. Run the program and click install (-> success)
3. Click "Get Version" (-> version = 1.0)
4. sudo rm /Library/PrivilegedHelperTools/com.example.apple-samplecode.EBAS.HelperTool
5. Kill HelperTool process, if it is running
6. Click "Get Version" again


Expected Results:
I expect the error block to be called in order to handle this situation.

Actual Results:
Nothing happens. Neither reply block of connectWithEndpointAndAuthorizationReply nor error handler is called.

Version:
OS X 10.11.1 15B38b

Notes:


Configuration:


Attachments:

Comments

New update from DTS:

Thanks for trying that at least. At this point I think we're going to have to wait for OS X Engineering to come up with a proper API to handle helper tool updates. I wish I had better news.

By IngmarStein at May 3, 2016, 5:22 p.m. (reply...)

Updates since January:

Apple Developer Relations20-Apr-2016 06:34 PM

Thank you for contacting us with the new information.

The original report on this issue, Bug ID 19601397, is still under investigation.

We will do our best to keep you informed as new information becomes available. Please check release notes regularly for changes affecting this issue.

If you have further questions about this issue or wish to check on the status, please update your report again using the Apple Bug Reporter http://bugreport.apple.com.

Ingmar Stein20-Apr-2016 01:25 PM

Just two small inputs which might (or might not) help you with fixing the issue:

  1. I can still trigger the bug when I change step 4 to sudo rm /Library/PrivilegedHelperTools/com.example.apple-samplecode.EBAS.HelperTool /Library/LaunchDaemons/com.example.apple-samplecode.EBAS.HelperTool.plist i.e. it doesn't help if I also remove the launchd job plist.

  2. the bug is still present in El Capitan 10.11.5 Beta (15F18b) Apple Developer Relations28-Mar-2016 10:00 PM

Thank you for contacting us.

The original report on this issue, Bug ID 19601397, is still under investigation.

We will do our best to keep you informed as new information becomes available. Please check release notes regularly for changes affecting this issue.

If you have further questions about this issue or wish to check on the status, please update your report again using the Apple Bug Reporter http://bugreport.apple.com.

Ingmar Stein28-Mar-2016 09:55 PM

This bug is still present in El Capitan 10.11.4 (15E65).

By IngmarStein at May 2, 2016, 8:18 a.m. (reply...)

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!