Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 31, 2012, 10:13 AM   #126
RS2
macrumors member
 
Join Date: Apr 2011
Quote:
Originally Posted by razmarino View Post
who is this _eppc user running appleeventsd? icloud?
Just the default Apple Events user name.
RS2 is offline   0 Reply With Quote
Old Oct 31, 2012, 10:25 AM   #127
razmarino
macrumors member
 
Join Date: Mar 2012
only appleeventsd here
Attached Thumbnails
Click image for larger version

Name:	?????? ?????? 2012-10-31 ? 18.23.25.png
Views:	372
Size:	187.7 KB
ID:	373930  
razmarino is offline   0 Reply With Quote
Old Oct 31, 2012, 02:54 PM   #128
maxonthemac
macrumors newbie
 
Join Date: Oct 2012
Not just appleeventsd
I also had other services hanging on shutdown, but they were due to badly designed third-party drivers: I could track them using the same method (looking at the launchd-shutdown log) and I could solve them by just avoiding to load the associated kernel extension. I am saying this to highlight that appleventsd may still not be the sole cause, even though at present it seems the more likely and frequently observed.

Digging further into the problem
For some time I had some evidence that the AppleIDAuthAgent (com.apple.coreservices.appleid.authentication) was also hanging, but after further tests only appleeventsd seemed to actually slow down my poweroff sequence. However, during those tests on the AppleIDAuthAgent I could observe the origin of the problem: the agent just stopped handling the SIGTERM signal. The documentation (man page) of launchd.plist explains that, when a service is to be shut down, launchd first attempts to gracefully stop it by sending a SIGTERM: if the process does not quit spontaneously within the timeout, then launchd abruptly terminates it with a SIGKILL. So, what I did was to invoke the AppleIDAuthAgent "manually" (i.e., not through launchd) and run it through dtruss, a utility that tracks the system calls issued by a process. When I attempted to send a SIGTERM to that process nothing at all happened: no reaction, no system calls printed, no spontaneous exit. SIGQUIT and SIGHUP were instead processed successfully. And what was most strange is that this did not happen consistently, so it could not be ascribed to an overlook by the programmers that "forgot" to process the SIGTERM signal (which, also intuitively, looks very very unlikely).
I guess something similar could be happening with appleeventsd, but the true point is how to determine what makes it ignore the SIGTERM. Reading reports like this and this makes me prone to thinking it's really a bug, although I could not (yet) rule out potential third-party causes on my machine.

BTW, I am not using iCloud.

BTW again, when you use Console remember to look at the launchd-shutdown.log: the other file suffixed with a 1 is usually an older version of the same file that refers to the penultimate (i.e., not latest) shutdown sequence.
maxonthemac is offline   0 Reply With Quote
Old Nov 1, 2012, 03:35 AM   #129
zosokm
macrumors member
 
Join Date: Sep 2012
Removing google chrome has definitely improved my shut down speed.
zosokm is offline   0 Reply With Quote
Old Nov 1, 2012, 07:15 AM   #130
ParryD
macrumors member
 
Join Date: May 2010
Quote:
Originally Posted by RS2 View Post
If you have a very slow shutdown time (+20 seconds) please open the Console app and check the system launchd-shutdown logs and search for the text "timeout" to find out which processes that are causing the slow shutdown. For me the problem is the securityd daemon and the appleevents services.
I had these:

Quote:
20005100 com.apple.launchd 1 com.apple.securityd 15 Exit timeout elapsed (20 seconds). Killing
20007444 com.apple.launchd 1 com.apple.diskarbitrationd 16 Exit timeout elapsed (20 seconds). Killing
20007499 com.apple.launchd 1 com.apple.coreservices.appleevents 51 Exit timeout elapsed (20 seconds). Killing
__________________
MacBook Pro 13' (MD313HN) | iPhone 5S 32GB Space Grey | iPad Mini 16GB WiFi | iPhone 4S 16GB White
ParryD is offline   0 Reply With Quote
Old Nov 1, 2012, 12:00 PM   #131
xgman
macrumors 68040
 
Join Date: Aug 2007
Thanks for all the above. Will give this a try.
__________________
{2012 27imac-3.4i7-680mx-32gb ram-768SSD+External TB Samsung840pro ssd + TB velociraptors-UAD Apollo/Marantz/Amphion/Bowers&Wilkins Sound-Impulse 61}
{ipads}{iphones}
xgman is offline   0 Reply With Quote
Old Nov 1, 2012, 07:07 PM   #132
togidogi
macrumors newbie
 
Join Date: Nov 2012
I am a 67yr tech impaired old fart but I think I'm having the same problem with my 2012 MacBook Air. I googled the issue and eventually got to you all and registered so that I could ask a question. I've read the entire thread and have the same kinds of error messages discussed. My question is simply why does it shut down in 2secs 75% of the time but the other 25% takes 22 secs? It's like a guessing game as to how long it will take to shut down. It's frustrating to have to get out my stopwatch each time I shut down to satisfy myself that all is good (or bad). Quite a few posts suggest that the "shut-down slowly" issue is experienced on a consistent basis.

Regards-
togidogi is offline   0 Reply With Quote
Old Nov 2, 2012, 05:20 AM   #133
maxonthemac
macrumors newbie
 
Join Date: Oct 2012
Quote:
Originally Posted by togidogi View Post
My question is simply why does it shut down in 2secs 75% of the time but the other 25% takes 22 secs? It's like a guessing game as to how long it will take to shut down.
It is, the underlying reason being still basically unknown. The behavior is not always consistently observed, but may depend on how (much) you use the machine since its poweron. The more you do, the more chances you have to experience the slowdown. Since most users rightly use the machine for a while by running several applications before poweroff, the problem is very likely to become constantly present.
Quote:
Quite a few posts suggest that the "shut-down slowly" issue is experienced on a consistent basis.
I think what you call "consistent" can be interpreted in the way I have mentioned above.
maxonthemac is offline   0 Reply With Quote
Old Nov 2, 2012, 07:23 AM   #134
Mike MA
macrumors 6502a
 
Mike MA's Avatar
 
Join Date: Sep 2012
Location: Germany, Europe
Quote:
Originally Posted by togidogi View Post
I am a 67yr tech impaired old fart but I think I'm having the same problem with my 2012 MacBook Air. I googled the issue and eventually got to you all and registered so that I could ask a question. I've read the entire thread and have the same kinds of error messages discussed. My question is simply why does it shut down in 2secs 75% of the time but the other 25% takes 22 secs? It's like a guessing game as to how long it will take to shut down. It's frustrating to have to get out my stopwatch each time I shut down to satisfy myself that all is good (or bad). Quite a few posts suggest that the "shut-down slowly" issue is experienced on a consistent basis.

Regards-
No, its on a random basis. In my case mostly after heavy usage or air play activities via iTunes/ Apple TV.
__________________
Macbook Air 13" (late 2010) - Apple TV2 - Time Capsule - Galaxy S4
Mike MA is offline   0 Reply With Quote
Old Nov 2, 2012, 04:29 PM   #135
razmarino
macrumors member
 
Join Date: Mar 2012
one more tracked down
Attached Thumbnails
Click image for larger version

Name:	?????? ?????? 2012-11-03 ? 0.25.20.png
Views:	248
Size:	17.8 KB
ID:	374506  
razmarino is offline   0 Reply With Quote
Old Nov 2, 2012, 04:44 PM   #136
3rd Rock
Banned
 
Join Date: Aug 2012
Location: Over here
Nov 2 com.apple.launchd[1] (com.apple.coreservices.appleid.authentication[118]): Exit timeout elapsed (20 seconds). Killing


Mine above.......
3rd Rock is offline   0 Reply With Quote
Old Nov 2, 2012, 05:15 PM   #137
Risco
macrumors 65816
 
Join Date: Jul 2010
Location: United Kingdom
Has anyone tried 10.8.3 and seen if it fixes the issue?
__________________
15" Macbook Pro 2012, 2.3ghz, 8GB Ram, 256GB SSD | iPhone 5s 32GB Space Grey
Risco is offline   0 Reply With Quote
Old Nov 2, 2012, 10:19 PM   #138
atMac
macrumors 6502
 
Join Date: Jun 2011
i have 3 items slowing me down
Code:
20006916 com.apple.launchd                1        com.apple.iCloudHelper   351       Exit timeout elapsed (20 seconds). Killing
20010984 com.apple.launchd                1        com.apple.suhelperd      425       Exit timeout elapsed (20 seconds). Killing
20011065 com.apple.launchd                1        com.apple.securityd      15        Exit timeout elapsed (20 seconds). Killing


----------

Quote:
Originally Posted by Risco View Post
Has anyone tried 10.8.3 and seen if it fixes the issue?
its not out for developers yet.
__________________
13in 2012 rMBP: Core i5, 8GB RAM, 256GB SSD; Nexus 7 3G; Nexus 4 16GB
atMac is offline   0 Reply With Quote
Old Nov 9, 2012, 06:37 PM   #139
evgenyneu
macrumors newbie
 
Join Date: Nov 2012
Posted a bugreport on https://bugreport.apple.com. Apple replied immediately asking to attach system report file. It looks like Apple is working hard on this problem. I can also see that they marked my ticked as a duplicate to another ticket.

As it was already noted here, I would suggest everybody who has this problem file a bugreport at Apple. The more data they have the sooner they can fix it.
evgenyneu is offline   0 Reply With Quote
Old Nov 9, 2012, 07:06 PM   #140
Troneas
macrumors 65816
 
Troneas's Avatar
 
Join Date: Oct 2011
Location: At the hacks section.
yep i get this problem too.



reminds me of my days with microsoft windows: shutdown, prepare coffee, feed the dog, call a friend and then come back to close the lid.
Troneas is offline   1 Reply With Quote
Old Nov 12, 2012, 03:24 PM   #141
RMSko
macrumors member
 
Join Date: Sep 2010
I'm not sure what I'm supposed to be looking for in Console so below is everything it said at the time of shut down. If someone can interpret this for me it would be great!

11/12/12 2:24:07.127 PM WindowServer[71]: dict count after removing entry for window 0x1d is 0
11/12/12 2:24:07.137 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.137 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.138 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.138 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.138 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.143 PM com.apple.launchd[1]: (com.apple.ShareKitHelper[570]) Exited: Killed: 9
11/12/12 2:24:07.144 PM com.apple.launchd.peruser.501[121]: ([0x0-0x10010].com.apple.inputmethod.ironwood[173]) Exited: Killed: 9
11/12/12 2:24:07.152 PM coreservicesd[31]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=159
11/12/12 2:24:07.156 PM com.apple.launchd.peruser.501[121]: ([0x0-0xb00b].com.apple.iTunesHelper[164]) Exited with code: 1
11/12/12 2:24:07.155 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.155 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.156 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.156 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.156 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.157 PM com.apple.launchd.peruser.501[121]: ([0x0-0x22022].com.apple.AppleSpell[221]) Exited: Terminated: 15
11/12/12 2:24:07.157 PM com.apple.launchd.peruser.501[121]: (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[985]) Exited: Killed: 9
11/12/12 2:24:07.159 PM coreservicesd[31]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=167
11/12/12 2:24:07.159 PM coreservicesd[31]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=767
11/12/12 2:24:07.159 PM coreservicesd[31]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=140
11/12/12 2:24:07.187 PM loginwindow[53]: DEAD_PROCESS: 53 console
11/12/12 2:24:07.245 PM airportd[1038]: _doAutoJoin: Already associated to “Airport Express - LAJSR”. Bailing on auto-join.
11/12/12 2:24:07.407 PM coreservicesd[31]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=129
11/12/12 2:24:07.409 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.409 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.410 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.410 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.410 PM WindowServer[71]: CGXGetConnectionProperty: Invalid connection 45571
11/12/12 2:24:07.430 PM shutdown[1039]: halt by Rich:
11/12/12 2:24:07.430 PM shutdown[1039]: SHUTDOWN_TIME: 1352748247 430131
RMSko is offline   0 Reply With Quote
Old Nov 12, 2012, 04:14 PM   #142
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Quote:
Originally Posted by RMSko View Post
I'm not sure what I'm supposed to be looking for in Console so below is everything it said at the time of shut down. If someone can interpret this for me it would be great!

(log entries snipped)
Oddly enough, there's nothing in that log suggesting any of the culprits identified in this thread is causing problems for you.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote
Old Nov 12, 2012, 04:46 PM   #143
Prof.
Thread Starter
macrumors 601
 
Prof.'s Avatar
 
Join Date: Aug 2007
Location: Chicago
Quote:
Originally Posted by troneas View Post
yep i get this problem too.



Reminds me of my days with microsoft windows: Shutdown, prepare coffee, feed the dog, call a friend and then come back to close the lid.
lmao! Yes!!!
__________________
"Capitalism is the extraordinary belief that the nastiest of men for the nastiest of motives will somehow work for the benefit of all"
- John Maynard Keynes
Prof. is offline   0 Reply With Quote
Old Nov 12, 2012, 04:53 PM   #144
RMSko
macrumors member
 
Join Date: Sep 2010
Quote:
Originally Posted by wrldwzrd89 View Post
Oddly enough, there's nothing in that log suggesting any of the culprits identified in this thread is causing problems for you.
Hmmm. Well I am certainly experiencing the slow shut down time and also the fact that every once in awhile it shuts down quickly so I would think there must be something else going on that's more innate to the the OS?
RMSko is offline   0 Reply With Quote
Old Nov 12, 2012, 05:11 PM   #145
Krazy Bill
Banned
 
Join Date: Dec 2011
It's pretty bad when a SSD equipped MBP takes 30 seconds to shut down. My kid's machine running Snow Leopard on a 5400rpm drive does it in 3.
Krazy Bill is offline   2 Reply With Quote
Old Nov 13, 2012, 02:18 PM   #146
donalgodon
macrumors newbie
 
Join Date: Nov 2012
Quote:
Originally Posted by pedrofan View Post
Just clean system caches and the restart will be super fast. This has worked for me for ages.

Open terminal and write these commands:


sudo chown root:admin / (enter password when asked)

sudo kextcache -system-prelinked-kernel

sudo kextcache -system-caches



I have this commands in dashboard notes, so every time boot up gets slow I use them to restore it. With a ssd drive it makes reboot ultra fast.
This actually worked.

Thanks so much!
donalgodon is offline   0 Reply With Quote
Old Nov 13, 2012, 03:43 PM   #147
3rd Rock
Banned
 
Join Date: Aug 2012
Location: Over here
Tried the above suggestion using the terminal.....

Unknown what happened but as soon as I got to the "Password" entry part, I could not enter the password at all. None of the keyboard keys worked. Any suggestions ?
3rd Rock is offline   0 Reply With Quote
Old Nov 13, 2012, 04:39 PM   #148
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Quote:
Originally Posted by 3rd Rock View Post
Tried the above suggestion using the terminal.....

Unknown what happened but as soon as I got to the "Password" entry part, I could not enter the password at all. None of the keyboard keys worked. Any suggestions ?
That's normal. The Terminal does NOT echo your input at all for security reasons. Trust me, though - it's still receiving your keystrokes.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   1 Reply With Quote
Old Nov 13, 2012, 05:06 PM   #149
3rd Rock
Banned
 
Join Date: Aug 2012
Location: Over here
Quote:
Originally Posted by wrldwzrd89 View Post
That's normal. The Terminal does NOT echo your input at all for security reasons. Trust me, though - it's still receiving your keystrokes.
Thank you. Will try again
3rd Rock is offline   0 Reply With Quote
Old Nov 14, 2012, 11:48 AM   #150
rhoydotp
macrumors 6502
 
Join Date: Sep 2006
Quote:
Originally Posted by pedrofan View Post
Open terminal and write these commands:

sudo chown root:admin / (enter password when asked)
you've got bigger issues if you have to do this ... permission/ownership on this directory should not change unless you manually do it or a malicious program does it for you
__________________
my pc died and i hardly noticed, go figure

Last edited by rhoydotp; Nov 14, 2012 at 11:50 AM. Reason: include "ownership"
rhoydotp is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Slow shutdown PhillyDK OS X Mavericks (10.9) 41 Nov 1, 2013 08:25 AM
10.8.3 (and 10.8.4b?) Still slow shutdown Krazy Bill OS X 10.8 Mountain Lion 116 Jul 11, 2013 08:06 PM
MBA...Slow to Start...Slow to Shutdown... JoelBC OS X 10.8 Mountain Lion 1 Feb 4, 2013 10:17 PM
ML slow shutdown RJCP OS X 10.8 Mountain Lion 1 Jan 17, 2013 07:49 AM
Slow shutdown? Try this.. SchuettS MacBook Pro 0 Dec 23, 2012 12:11 PM

Forum Jump

All times are GMT -5. The time now is 04:24 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC