Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ravenvii

macrumors 604
Original poster
Mar 17, 2004
7,585
492
Melenkurion Skyweir
iTunes has frozen, and not even Force Quit works. I can't reboot or shut down because of it. I tried to enter a killall iTunes command in Terminal to no avail. Is there anything else I can do other than holding down the power button to do a hard reboot?
 

dubbz

macrumors 68020
Sep 3, 2003
2,284
0
Alta, Norway
Ouch.. 'kill' should be able to take it down. Strange that it didn't.

You could try 'shutdown -r now' in the terminal to reboot.

Or use 'top', get the pid of iTunes and try 'kill -9 pid'. Killall doesn't always do the trick.
 

dsharits

macrumors 68000
Jun 19, 2004
1,639
1
Plant City, FL
I have this happen every now and then when my iPod is connected. It usually only happens when I wake my G4 from sleep after ejecting my iPod and leaving it in the dock. I fix it by disconnecting the iPod and force-quitting iTunes, if necessary.
 

ham_man

macrumors 68020
Jan 21, 2005
2,265
0
Just do a hard shutdown. I have had that happen to a printer app a few times and that is sometimes the only option...
 

Duff-Man

Contributor
Dec 26, 2002
2,984
17
Albuquerque, NM
Duff-Man says....how many times did you try to force quit? Sometimes I have found that it can take a few tries to get a hung app to quit.....oh yeah!
 

dsharits

macrumors 68000
Jun 19, 2004
1,639
1
Plant City, FL
Duff-Man said:
Duff-Man says....how many times did you try to force quit? Sometimes I have found that it can take a few tries to get a hung app to quit.....oh yeah!
That's a good point. Some stubborn apps take 3 or 4 force quits to finally force quit. At least it's not neraly as bad as 'end task' is in Windows.
 

neocell

macrumors 65816
May 23, 2005
1,073
2
Great White North
I find that force quitting from dock (option click on app and choose force quit) doesn't work nearly as well as command + option + escape force quitting. Doesn't make sense but on both my G4 iMac and my 12" PB if I have to force quit something almost always I have to go to the escape method after trying the dock a couple of times.
 

Linkjeniero

macrumors 6502
Jan 6, 2005
255
0
neocell said:
I find that force quitting from dock (option click on app and choose force quit) doesn't work nearly as well as command + option + escape force quitting. Doesn't make sense but on both my G4 iMac and my 12" PB if I have to force quit something almost always I have to go to the escape method after trying the dock a couple of times.

This probably means that the dock force quit uses kill -15 (default signal for process terminating), while the other way uses kill -9 (the true death penalty; no process can say no to it). kill -9 always works, instantly.
 

Chaszmyr

macrumors 601
Aug 9, 2002
4,267
86
Raven VII said:
Bam. Unplugging the iPod did the trick. Thanks dsharits!

Apple really should fix this bug...

There are more than a couple bugs caused by leaving the iPod plugged in... I'm really surprised I don't hear more about them.
 

Sean7512

macrumors 6502a
Jun 8, 2005
854
37
Why are there soo many bugs with iPods being left in...I would think that Apple would have them FLAWLESS together. I wonder if these bugs are present with a iPod - Windows environment?
 

neocell

macrumors 65816
May 23, 2005
1,073
2
Great White North
Linkjeniero said:
This probably means that the dock force quit uses kill -15 (default signal for process terminating), while the other way uses kill -9 (the true death penalty; no process can say no to it). kill -9 always works, instantly.
Is there a way to change the dock kill setting?
 

ravenvii

macrumors 604
Original poster
Mar 17, 2004
7,585
492
Melenkurion Skyweir
Linkjeniero said:
This probably means that the dock force quit uses kill -15 (default signal for process terminating), while the other way uses kill -9 (the true death penalty; no process can say no to it). kill -9 always works, instantly.

Well, not always as this instance shows. Force Quit (from the Force Quit window) didn't work even after several tries, and even a "kill -9 630" command in Terminal didn't work (630 was iTunes' pid).
 

zakatov

macrumors 6502
Mar 8, 2005
497
0
South Florida
OSX is surprisingly inflexible with mounted (or not mounted) drives. If it wants to use a drive that it thinks is still attached (physically or over the network), it will lock up the entire system until the problem is "fixed".
 

cleanup

macrumors 68030
Jun 26, 2005
2,643
10
Toronto
dsharits said:
That's a good point. Some stubborn apps take 3 or 4 force quits to finally force quit. At least it's not neraly as bad as 'end task' is in Windows.

End Task is terrible. But End Process ends the process immediately. You just have to know what the process is called. It's easy to find out. End Process is much better than Force Quit in my opinion.
 

eva01

macrumors 601
Feb 22, 2005
4,720
1
Gah! Plymouth
Raven VII said:
Well, not always as this instance shows. Force Quit (from the Force Quit window) didn't work even after several tries, and even a "kill -9 630" command in Terminal didn't work (630 was iTunes' pid).

did you try "sudo kill" in terminal
 

PlaceofDis

macrumors Core
Jan 6, 2004
19,241
6
another thing to keep in mind with iTunes is that if it locks up is that it can take a few minutes to force quit, at least for me it does depending on the situation.
 

yoavcs

macrumors regular
Apr 7, 2004
218
92
Israel
Why "force quit" won't always work

Force quit and all the various kill options won't always work. If a process is stuck in kernel mode, usually trying to access a device, no kill will, uh, kill it :)

Since the problem was fixed by unplugging the iPod I bet that was the situation. iTunes was stuck in kernel mode inside the iPod driver, with some arcane bug-device sleep interaction going on.

If this happens again, do a ps -aux and look at the iTunes line. If it has a U in the STAT field, it means it is sleeping in device driver code in the kernel.
 

Makosuke

macrumors 604
Aug 15, 2001
6,661
1,242
The Cool Part of CA, USA
Linkjeniero said:
... while the other way uses kill -9 (the true death penalty; no process can say no to it). kill -9 always works, instantly.
No process can say no to it, but that doesn't mean that it always works; as yoavcs explains, attached device flakyness can cause programs to stall in a way that even kill -9 won't. This iPod situation may be one, but I've also seen it happen occasionally with mounted network volumes not responding properly. VERY annoying.
 

Fukui

macrumors 68000
Jul 19, 2002
1,630
18
zakatov said:
OSX is surprisingly inflexible with mounted (or not mounted) drives. If it wants to use a drive that it thinks is still attached (physically or over the network), it will lock up the entire system until the problem is "fixed".
Yep, mounted stuff is really a problem for GUI apps. The Unix stuff underneath though runs fine. I've investigated this, and I think its because all GUI processes for each user is a sub-process of LoginWindow.app. Since login window handles the mounting for each user, if LoginWindow is using a mount like the iPod, and iTunes is associated with that, force quiting iTunes would cause some error in login window, which would then cause problems with its sub-processes (other GUI apps)... I'm not 100% sure, but I think thats why when login window stalls on a lost network mount, a lot of other GUI apps freeze (but web servers etc are fine) up until you click "disconnect" from that warning window...

If you really wanna force quit in that situation without pulling the plug, force quit Loginwindow.
 

Linkjeniero

macrumors 6502
Jan 6, 2005
255
0
Makosuke said:
No process can say no to it, but that doesn't mean that it always works; as yoavcs explains, attached device flakyness can cause programs to stall in a way that even kill -9 won't. This iPod situation may be one, but I've also seen it happen occasionally with mounted network volumes not responding properly. VERY annoying.

Every day you learn something new... thank you both :).
I researched a little more on the subject and in appears that when in kernel mode the process won't even get the signal, so it can't be killed :S.
 

dsharits

macrumors 68000
Jun 19, 2004
1,639
1
Plant City, FL
Raven VII said:
Bam. Unplugging the iPod did the trick. Thanks dsharits!

Apple really should fix this bug...
I thought that problem sounded familiar. Glad it worked for you. I hate it when it happens to me, because it sometimes locks up my iPod when I remove it as well.
 

mac-er

macrumors 65816
Apr 9, 2003
1,452
0
Sean7512 said:
Why are there soo many bugs with iPods being left in...I would think that Apple would have them FLAWLESS together. I wonder if these bugs are present with a iPod - Windows environment?

Sometimes leaving the iPod plugged in on a Windows machine will give it the blue screen of death.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.