Login Item corrupted and can not be deleted from Users & Groups after updating to macOS High Sierra

Originator:karl
Number:rdar://34857430 Date Originated:2017-11-05
Status:Closed / Duplicate of 33524015 (also, closed) Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
My Login Items have been corrupted; they show up as `Unknown` with a yellow explanation / warning symbol.  I am unable to delete Login Items from the System Preferences UI.  Editing `plist` files that have been previously associated with the Login Items preference pane has no effect.

Various OSX API's that attempt to read the users Login items are also failing.
A limited list of apps that are currently crashing because the API to fetch the user's login items is broken:

- Google Chrome
- Most apps based on google chrome / Github's eletron framework
- Viscosity vpn


Steps to Reproduce:

0) Be running macOS Sierra.
1) Upgrade to High Sierra


Expected Results:
I expect that my login items are not corrupted / lost / damaged.
I expect that the APIs built into OSX do not result in a crash.  Here is a truncated stack trace.  The same one (and similar ones) is available in the github issues link below.

```
OS Version:            Mac OS X 10.13 (17A405)

Time Awake Since Boot: 450 seconds

System Integrity Protection: enabled

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   exc handler [0]

Application Specific Information:
*** CFEqual() called with NULL first argument ***

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   com.apple.CoreFoundation      	0x00007fff4edbc73c CFEqual + 620
```


Actual Results:
When I click the `-` button on the system UI, i expect the `Unknown` entry to be removed.  It is not.  When i click the `Hide` check box, i get *another* `Unknown` entry in the list.

When I click the `-` Button in the UI, i see multiple lines in the `Console.app`.  They look like this:

```
### Error:18446744073709551581 File:/BuildRoot/Library/Caches/com.apple.xbs/Sources/AccountsPref/AccountsPref-285/LoginItem.m Line:68
```

and come from the `com.apple.preferences.users.remoteservice` process.




Version/Build:
OS Version:            Mac OS X 10.13 (17A405)


Configuration:
Here's some additional information documenting this problem:

https://github.com/electron/electron/issues/10561#issuecomment-334634029

https://discussions.apple.com/thread/8096021
https://discussions.apple.com/thread/8086931
https://discussions.apple.com/thread/8089760

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!