Contribute
Register

Slow shutdown/restart time 10.8.3

Status
Not open for further replies.
Joined
Sep 1, 2012
Messages
105
Motherboard
Gibabyte Z77X-UD5H
CPU
I7-3770K
Graphics
GTX 980 Ti
Mobile Phone
  1. iOS
Hey everyone,

I've always had slow shutdowns since I first made my hackintosh this last August, but I'd like to now diagnose why. They typically take 30 seconds, which is annoying as my boot time is about 6 seconds. I think I've isolated the issue to a 20 second timeout on com.apple.launchd. Here is the specific output from Console's shutdown logging.

4/10/13 11:46:12.710 AM com.apple.launchd[1]: (com.apple.coreservices.appleid.authentication[128]) Exit timeout elapsed (20 seconds). Killing

I've read here (https://discussions.apple.com/thread/4339540?start=60&tstart=0) that changing the timeout length of a coreservice can fix this issue, but I'd like to find the root cause. Also that sounds very risky to me. Any ideas?

Thanks!
 
Here is my console output... any ideas here?


4/10/13 10:58:20.214 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyChildDeath to notificationID=220
4/10/13 10:58:20.214 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=100
4/10/13 10:58:20.215 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=114
4/10/13 10:58:20.216 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=153
4/10/13 10:58:20.216 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=198
4/10/13 10:58:22.986 PM iTunes[2718]: 2013-04-10 10:58:22.985486 PM [AVSystemController] Stopping AirPlay
4/10/13 10:58:27.609 PM com.apple.launchd.peruser.501[142]: (com.apple.PackageKit.InstallStatus) Throttling respawn: Will start in 9 seconds
4/10/13 10:58:27.974 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.974 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.974 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.975 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.975 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.975 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.976 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.976 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.976 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.976 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.977 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.977 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.977 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.977 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.977 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.977 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.978 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:27.978 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 78095
4/10/13 10:58:27.978 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 78095
4/10/13 10:58:27.978 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 78095
4/10/13 10:58:27.979 PM com.apple.launchd.peruser.501[142]: (com.apple.rcd[2717]) Exited: Killed: 9
4/10/13 10:58:27.980 PM WindowServer[105]: dict count after removing entry for window 0x45 is 0
4/10/13 10:58:27.982 PM com.apple.launchd.peruser.501[142]: ([0x0-0x24024].com.apple.speech.recognition.SpeakableItemsApp[259]) Exited: Killed: 9
4/10/13 10:58:27.984 PM com.apple.launchd.peruser.501[142]: ([0x0-0x23023].com.apple.inputmethod.ironwood[257]) Exited: Killed: 9
4/10/13 10:58:27.985 PM com.apple.launchd.peruser.501[142]: (com.apple.speech.feedbackservicesserver[233]) Exited: Killed: 9
4/10/13 10:58:27.989 PM Dock[158]: CGSReleaseWindow: Invalid window 97
4/10/13 10:58:27.990 PM com.apple.launchd.peruser.501[142]: (com.apple.speech.synthesisserver[212]) Exited: Killed: 9
4/10/13 10:58:27.991 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=114
4/10/13 10:58:27.991 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=369
4/10/13 10:58:27.999 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=100
4/10/13 10:58:27.999 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=193
4/10/13 10:58:28.001 PM com.apple.launchd.peruser.501[142]: (com.apple.FolderActions.enabled[191]) Exited: Killed: 9
4/10/13 10:58:28.000 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=114
4/10/13 10:58:28.011 PM com.apple.launchd.peruser.501[142]: ([0x0-0x2b02b].com.apple.ImageCaptureExtension2[280]) Exited: Killed: 9
4/10/13 10:58:28.011 PM com.apple.launchd.peruser.501[142]: ([0x0-0x59059].com.apple.AppleSpell[2740]) Exited: Terminated: 15
4/10/13 10:58:28.011 PM com.apple.launchd.peruser.501[142]: (com.apple.speech.recognitionserver[265]) Exited: Killed: 9
4/10/13 10:58:28.012 PM com.apple.launchd.peruser.501[142]: (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[2838]) Exited: Killed: 9
4/10/13 10:58:28.012 PM WindowServer[105]: kCGErrorIllegalArgument: CGXGetWindowWithName: Invalid key
4/10/13 10:58:28.014 PM com.apple.launchd.peruser.501[142]: ([0x0-0x12012].com.apple.iTunesHelper[202]) Exited with code: 1
4/10/13 10:58:28.015 PM com.apple.launchd.peruser.501[142]: (com.apple.mdworker.shared.03000000-0000-0000-0000-000000000000[2719]) Exited: Killed: 9
4/10/13 10:58:28.016 PM coreservicesd[36]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=268
4/10/13 10:58:28.019 PM WindowServer[105]: kCGErrorIllegalArgument: CGXGetWindowWithName: Invalid key
4/10/13 10:58:28.020 PM WindowServer[105]: kCGErrorIllegalArgument: CGXGetWindowWithName: Invalid key
4/10/13 10:58:28.021 PM WindowServer[105]: kCGErrorIllegalArgument: CGXGetWindowWithName: Invalid key
4/10/13 10:58:28.022 PM WindowServer[105]: kCGErrorIllegalArgument: CGXGetWindowWithName: Invalid key
4/10/13 10:58:28.024 PM coreservicesd[36]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=153
4/10/13 10:58:28.025 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:28.025 PM com.apple.launchd[1]: (com.apple.dock.extra[2844]) XPC Service could not exec(3). Resetting port.
4/10/13 10:58:28.025 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:28.025 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:28.025 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:28.026 PM WindowServer[105]: CGXGetConnectionProperty: Invalid connection 9583
4/10/13 10:58:38.039 PM loginwindow[76]: ERROR | -[ApplicationManager quitPrivateProcesses] | Private process did not quit
4/10/13 10:58:38.047 PM loginwindow[76]: DEAD_PROCESS: 76 console
4/10/13 10:58:38.061 PM com.apple.launchd.peruser.501[142]: (com.apple.PackageKit.InstallStatus) Throttling respawn: Will start in 9 seconds
4/10/13 10:58:38.070 PM loginwindow[76]: Application hardKill returned -600
4/10/13 10:58:38.070 PM loginwindow[76]: Application hardKill returned -600
4/10/13 10:58:38.071 PM loginwindow[76]: Application hardKill returned -600
4/10/13 10:58:38.084 PM com.apple.kextd[12]: Error reconsidering volume /Volumes/System Reserved.
4/10/13 10:58:38.084 PM shutdown[2848]: reboot by drew:
4/10/13 10:58:38.084 PM shutdown[2848]: SHUTDOWN_TIME: 1365652718 84323
4/10/13 10:59:25.000 PM bootlog[0]: BOOT_TIME 1365652765 0






Another thing - I am seeing a lot of clutter in my console - for instance, this repeats all the time while my computer is on.


4/10/13 11:01:43.063 PM sandboxd[375]: ([373]) mdworker(373) deny mach-lookup com.apple.ls.boxd
4/10/13 11:01:43.124 PM sandboxd[375]: ([374]) mdworker(374) deny mach-lookup com.apple.ls.boxd
4/10/13 11:01:43.000 PM kernel[0]: Sandbox: sandboxd(375) deny mach-lookup com.apple.coresymbolicationd
4/10/13 11:05:19.422 PM mdworker[394]: Unable to talk to lsboxd
4/10/13 11:05:19.425 PM mdworker[395]: Unable to talk to lsboxd


It repeats all the time.
 
Sorry to triple post here but I feel this is an important problem to follow through with everything I find.

Okay, so I ran a verbose boot (which triggers a verbose shutdown when you choose to shutdown). The attached picture below is the output I get every time I shut down, and it is not contained in my console logs. Looks like a problem unmounting disks?


verboseshutdownissue.jpg


It seems like the computer is having trouble unmounting /home and /net, also issues with com.apple.securityd, com.apple.SystemStarter, and com.apple.diskarbitrationd, in addition to a couple of weird things: (lots of numbers and letters).anonymous.sleep, (lots of numbers and letters).anonymous.sh, (lots of numbers and letters).anonymous.pcscd.


Why is the system unable to stop all these strange background processes?
 
We are all seeing this bug in ML.
Even non-hackingtosh's have it and some are complaining too. But Apple is not listening.
It is even in Maverick !

It's not high priority for Apple to fix it as most "real Apple Mac OS users" do not shutdown their systems but simply sleep.

The workaround fix does seem to work without any adverse effects.
 
Status
Not open for further replies.
Back
Top