<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Wojno: Mac Applications Not (Force) Quitting</title>
    <link>http://christopher.wojno.com/articles/2007/12/28/mac-applications-not-force-quitting</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Exploration through Code</description>
    <item>
      <title>Mac Applications Not (Force) Quitting</title>
      <description>&lt;p&gt;I&amp;#8217;ve just recently (a few hours ago) run into applications not loading or quitting (even with Forced quits) on Mac &lt;span class="caps"&gt;OSX10&lt;/span&gt;.5 Leopard on a brand-new machine. Here&amp;#8217;s the grueling story:&lt;/p&gt;


	&lt;p&gt;I tried to read a .doc and I declined to try Office 2004 for Mac. Nothing appears wrong at this point. I then tried to launch iTunes, it had the launched icon (blue circle) under it, leading me to believe it was running, but there was no window. I could not interact with iTunes at this point. I attempted repeatedly to launch iTunes to no avail. So, I did what any self-respecting &lt;span class="caps"&gt;GUI&lt;/span&gt; user did: Quit. After ignoring the problem report, I attempted the last straw, the Force Quit. After trying that several times, also to no avail, I turned to the Internet for help. Most forums suggested unplugging your iPod when this happens. I do not have an iPod attached to the computer. So I tried a little Unix magic. But &amp;#8220;kill -9&amp;#8221; from the command line was ineffective. Trevor suggested &amp;#8220;killall Dock,&amp;#8221; (the &lt;a href="http://docs.info.apple.com/article.html?artnum=304728"&gt;Dock&lt;/a&gt; is the application &amp;#8220;Task Bar&amp;#8221; for you Windows users) but that was also ineffective. iTunes appeared thusly in ps xau:&lt;/p&gt;


&lt;pre&gt;% ps xau | grep iTunes
6432   0.0  0.0        0      0   ??   E    6:45PM   0:00.00 (iTunes)&lt;/pre&gt;

	&lt;p&gt;I&amp;#8217;ve never seen an &amp;#8220;E&amp;#8221; state before, nor a process enclosed in parenthesis. According to the man pages for ps, the &amp;#8220;E&amp;#8221; means &amp;#8220;the process is trying to exit.&amp;#8221; The man pages, however, are silent as to what (PROCESS &lt;span class="caps"&gt;NAME&lt;/span&gt;) means.&lt;/p&gt;


	&lt;h1&gt;Can&amp;#8217;t Quit, Can&amp;#8217;t Delete&lt;/h1&gt;


	&lt;p&gt;&lt;a href="http://www.apple.com/macosx/features/timemachine.html"&gt;Time Machine&lt;/a&gt; is running and was backing files up at that time to  an external &lt;span class="caps"&gt;USB&lt;/span&gt; disk. It also refused to load or force quit (like iTunes) after stopping the back up. I could also not view the trash as it claimed that items were &amp;#8220;being deleted.&amp;#8221; The system was still responsive (I could browse the Internet to look for forums with this problem, but found nothing completely applicable). I attempted to restart: &lt;span class="caps"&gt;APPLE MENU&lt;/span&gt; &amp;gt; Restart. All windows quit, but the system would not complete the restart. After trying to restart &lt;span class="caps"&gt;AGAIN&lt;/span&gt; (the dock was still visible, so I opened up a Terminal and the menu reappeared), iTunes, System Preferences (Time Machine) and trash were still inaccessible. I then forced a restart by holding down the power button.&lt;/p&gt;


	&lt;h2&gt;Office 2004 for Mac not the problem&lt;/h2&gt;


	&lt;p&gt;Now, convinced Office was the problem, to avoid this problem again I attempted to deinstall the Office 2000 Test Drive application(s). That began to run, it claimed to have progressed 1/10th of the way through (as seen by the progress bar) at which point, the application was hung. Force quit was ineffective. I submitted a problem report about Remove Office crashing. But the application persists! Force quitting that does not shut it down either. Things are getting serious.&lt;/p&gt;


	&lt;h1&gt;Time machine&lt;/h1&gt;


	&lt;p&gt;Time Machine was not actively backing up at this time. I decided to unmount the back up drive &amp;#8220;Time Machine Backups&amp;#8221; (what Time Machine calls its backup drive). This did nothing as well. The drive refused to unmount, even though backups were stopped (this was done via System Preferences &amp;gt; Time Machine and then click the circled X near &amp;#8220;Backing up&amp;#8221; or &amp;#8220;Next Backup&amp;#8221;. Since that didn&amp;#8217;t work, I decided to go for the gusto. I yanked the &lt;span class="caps"&gt;USB&lt;/span&gt; cable to the backup drive. This caused the trash to immediately empty. Remove Office quit. It appears that Time Machine is causing these hangs.&lt;/p&gt;


	&lt;h2&gt;The External Drive&lt;/h2&gt;


	&lt;p&gt;The external hard drive is a Smart Disk, 60GB FireLite XPress.&lt;/p&gt;


	&lt;p&gt;I then decided to check the disk. I launched the disk utility (Applications&amp;gt;Utilities&amp;gt;Disk Utility.app) and ran &amp;#8220;Verify Disk&amp;#8221;. It claims that the drive appears to be OK. I repaired it anyway and after a vigorous re-indexing (thank you Spotlight (AKA &amp;#8220;mdworker&amp;#8221; to ps)) the volume, again, appears to be OK. Things appear to be working again. I&amp;#8217;ll try yanking the cable if it misbehaves again.&lt;/p&gt;


	&lt;h1&gt;Problem&lt;/h1&gt;


	&lt;p&gt;Applications not quitting, even after forced quit&lt;/p&gt;


	&lt;h1&gt;Solution&lt;/h1&gt;


	&lt;p&gt;Unplug external hard drives/iPods connected via &lt;span class="caps"&gt;USB&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;Although it appears that Time Machine may be responsible, it may apply to all external &lt;span class="caps"&gt;USB&lt;/span&gt; hard drive devices.&lt;/p&gt;</description>
      <pubDate>Fri, 28 Dec 2007 21:24:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:c60ca314-725b-49ee-808e-5d43198fc135</guid>
      <author>Christopher Wojno</author>
      <link>http://christopher.wojno.com/articles/2007/12/28/mac-applications-not-force-quitting</link>
      <category>How-Tos</category>
      <category>time</category>
      <category>problem</category>
      <category>mac</category>
      <category>force</category>
      <category>usb</category>
      <category>quit</category>
      <category>application</category>
      <category>machine</category>
      <category>hard</category>
      <category>drive</category>
    </item>
  </channel>
</rss>
