My macbook pro 13" mid 2012 Yosemite

i7

750gb Hdd

8gb ram

has been shutting down randomly. It will shut down on the boot screen with the progress bar.

If I hold down any key or keep using the trackpad it works normally. It will let me boot in to the desktop and function normally. As soon as no activity occurs it will ask for shut down with the shutdown dialog and then shuts down like it just blanks out to a black screen.

Things I have tried:

Multiple SMC Resets

PRAM resets

Apple Hardware Test: No Trouble Found

Techtool Pro: Passed all tests

Clean installation of Yosemite from Mountain Lion 10.8.6(had the same problem)





After a shut down during boot the console log is as follows:





06/11/14 8:21:08.105 pm loginwindow[65]: ERROR | -[SessionLogoutManager quitFinder] | Finder is killable, calling SMJobRemove

06/11/14 8:21:08.107 pm CoreServicesUIAgent[271]: unexpected message <OS_xpc_error: <error: 0x7fff76431c60> { count = 1, contents =

"XPCErrorDescription" => <string: 0x7fff76431f70> { length = 18, contents = "Connection invalid" }

}>

06/11/14 8:21:08.108 pm WindowServer[120]: CGXGetConnectionProperty: Invalid connection 42851

06/11/14 8:21:08.109 pm WindowServer[120]: CGXGetConnectionProperty: Invalid connection 42851

06/11/14 8:21:08.109 pm WindowServer[120]: CGXGetConnectionProperty: Invalid connection 42851

06/11/14 8:21:08.109 pm WindowServer[120]: CGXGetConnectionProperty: Invalid connection 42851

06/11/14 8:21:08.109 pm WindowServer[120]: CGXGetConnectionProperty: Invalid connection 42851

06/11/14 8:21:08.109 pm WindowServer[120]: CGXGetConnectionProperty: Invalid connection 42851

06/11/14 8:21:08.115 pm loginwindow[65]: Login Window point of no return

06/11/14 8:21:08.118 pm CoreServicesUIAgent[271]: unexpected message <OS_xpc_error: <error: 0x7fff76431c60> { count = 1, contents =

"XPCErrorDescription" => <string: 0x7fff76431f70> { length = 18, contents = "Connection invalid" }

}>

06/11/14 8:21:08.130 pm WindowServer[120]: _CGXGetWindowOrderingGroup: Operation on a window 0x12 requiring rights 0x5 by caller Dashboard

06/11/14 8:21:08.130 pm WindowServer[120]: _CGXGetWindowOrderingGroup: Operation on a window 0x13 requiring rights 0x5 by caller Dashboard

06/11/14 8:21:08.130 pm WindowServer[120]: _CGXGetWindowOrderingGroup: Operation on a window 0x14 requiring rights 0x5 by caller Dashboard

06/11/14 8:21:08.130 pm WindowServer[120]: _CGXGetWindowOrderingGroup: Operation on a window 0x15 requiring rights 0x5 by caller Dashboard

06/11/14 8:21:08.121 pm com.apple.xpc.launchd[1]: (com.apple.lateragent[293]) Service exited due to signal: Killed: 9

06/11/14 8:21:08.128 pm com.apple.xpc.launchd[1]: (com.apple.AirPlayUIAgent[282]) Service exited due to signal: Killed: 9

06/11/14 8:21:08.151 pm sharingd[205]: 20:21:08.150 : SIGTERM received, shutting down.

06/11/14 8:21:08.152 pm com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.oneshot.0x10000002.AppleSpell[307]) Service exited due to signal: Killed: 9

06/11/14 8:21:08.153 pm lsuseractivityd[212]: [SFActivityAdvertiser] ERROR: lost XPC connection

06/11/14 8:21:08.154 pm lsuseractivityd[212]: [SFContinuityScanManager] ERROR: lost XPC connection

06/11/14 8:21:08.253 pm com.apple.xpc.launchd[1]: (com.apple.coreservices.uiagent[271]) Service exited due to signal: Killed: 9

06/11/14 8:21:08.333 pm com.apple.xpc.launchd[1]: (com.apple.internetaccounts[267]) Service exited due to signal: Killed: 9

06/11/14 8:21:08.384 pm com.apple.xpc.launchd[1]: (com.apple.metadata.SpotlightNetHelper[254]) Service exited due to signal: Killed: 9

06/11/14 8:21:08.395 pm sessionlogoutd[607]: sessionlogoutd Launched

06/11/14 8:21:08.513 pm sessionlogoutd[607]: DEAD_PROCESS: 65 console

06/11/14 8:21:08.723 pm shutdown[609]: halt by Nabil:

06/11/14 8:21:08.000 pm kernel[0]: Kext loading now disabled.

06/11/14 8:21:08.000 pm kernel[0]: Kext unloading now disabled.

06/11/14 8:21:08.723 pm shutdown[609]: SHUTDOWN_TIME: 1415285468 723138

06/11/14 8:21:08.000 pm kernel[0]: Kext autounloading now disabled.

06/11/14 8:21:08.000 pm kernel[0]: Kernel requests now disabled.

06/11/14 8:21:08.724 pm com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.system) System reboot initiated by: shutdown.609<-sessionlogoutd.607<-launchd.1