5 Replies Latest reply: Nov 11, 2011 12:55 PM by vea1083
vea1083 Level 3 Level 3 (685 points)

Hi,

 

I was wondering if the launchd-shutdown.log can tell a developer the reason a Mac is hanging at shutdown. I hva bee having an itermittent hanged shutdown issue since installing Mac OS X Lion and there is no indicator on why this is happening.

 

Thanks for your time and assistance!


2.53GHz Core i5 MacBook Pro 15, Mac OS X (10.7.2), 500GB HD @7200, 4GB 1067MHz DDR3 RAM, Intel HD + Nvidia 330m 256
  • twtwtw Level 5 Level 5 (4,900 points)

    maybe.  open it up and match the string 'exited', and look for strings that say 'Exited x.xxxxxx seconds after the first signal was sent'. 

     

    You might also check the hangreporter logs, though you'll need to be in an admin account for that.

  • vea1083 Level 3 Level 3 (685 points)

     

    twtwtw wrote:

     

    maybe.  open it up and match the string 'exited', and look for strings that say 'Exited x.xxxxxx seconds after the first signal was sent'. 

     

    You might also check the hangreporter logs, though you'll need to be in an admin account for that.

     

    Thanks for the response.

     

    I found something interesting, there are some strings that says the followning:

    Exited while shutdown in progress. Processes remaining: 40/1

      120061

    What does the entry above mean?

     

    Most of the shutdown log says the "Exited x.xxxxxx seconds after the first signal was sent" string.

     

    I have another question are those strings related to the process that could be hanging the computer?

     

    I will take another look later tonight.

  • vea1083 Level 3 Level 3 (685 points)

    Would you mind if I send you the complete log?

  • twtwtw Level 5 Level 5 (4,900 points)

    there's no need for that: what you're looking for is an 'x.xxxxxxx seconds' where the number x is large.  most of the entries should be less than a second for  exit time. if you see something that's significantly greater than 1 second that will likely be your hanging process.

     

    the other line seems to be just a countdown of processes that launchd is terminating.  I'm not sure what the 120061 number is (could be ticks since shutdown began?).

  • vea1083 Level 3 Level 3 (685 points)

    I have sent the logs to Apple Developer and I am still waiting on their findings, however, the curious thing is that everytime there is a hanging shutdown issue the dock process makes a lot of notes in the system.log. Who knows the dock now controls Misson Control and Spaces. I have to say I am not impressed with Lion so far. It has made my MacBook Pro a real headache... Do you know how it feels to use a computer with the sense is going to screw up any second?... Not Nice...