How to manually relaunch Finder when it refuses to get killed?

Hi to all,

one more time, the Finder failed in its task to cleanly annonce there was an error and properly ask to close the WebDAV connection I was using (MyDisk.se), trying to download 30MiB in a few ZIP files.

I decided to relaunch it using the dialog accessible in alt cmdesc, click on Finder, then click on "Relaunch".

In fact, it seems to have closed, but not relaunched, and indeed, the Console keeps on displaying lines similar to this one:

04/05/09 01:42:10 com.apple.launchd[237] (0x10e160.Locum[8588]) Did not die after sending SIGKILL 1255 seconds ago...
04/05/09 01:42:15 com.apple.launchd[237] (0x10bf20.Locum[8590]) Did not die after sending SIGKILL 1260 seconds ago...

In the System Monitor, I indeed see 3 Locum operations pertaining to my login name, but I cannot quit or force-quit them.

As reboot/stop/logout options don't work when Finder has bugged, how can I properly kill the frozen Locum processes, and, even more important, prevent this all-too-common problem from hapenning again?

It was a very simple process in Ubuntu, but I don't know what to do in OS X.

I'm using MacBook unibody with 10.5.6 and all updates applied, and so far, it seems the most unstable Mac I ever used 😟 So bad for a first ownership.

MacBook unibody, Mac OS X (10.5.6), iPod Touch 2G 8GB (JB'ed ;)

Posted on May 3, 2009 10:52 PM

Reply
18 replies

May 3, 2009 11:56 PM in response to cubytus

cubytus,

I do know that locum is invoked when securely deleting files, so there is some indication here that you either have that option selected in your Finder preferences, or you are using that option from the Finder menu to empty the trash. I don't know what other functions are performed by locum. Maybe there are others. The fact that you have multiple instances of locum running isn't terribly out of bounds, but the fact that the process hangs and/or cannot be quit is.

Off the top of my head, I would guess disk error. Unless you have "zeroed" the drive personally, and reinstalled, I wouldn't look beyond this possibility for now. The first thing you should do is at least verify the disk in Disk Utility, and perhaps boot to the Leopard install disk to make repairs (if indicated). Keep in mind that, even if your file system gets a clean bill of health from Disk Utility, file damage could remain and cause problems such as the ones you are experiencing (hanging processes, instability, etc. My current "uptime" is over 16 days, my wife's over 35, so I think Leopard is pretty stable).

Ultimately, I think zeroing the drive and reinstalling will be called for, and should fix all of these problems.

Scott

May 4, 2009 4:07 AM in response to cubytus

If you're comfortable in Ubuntu, I assume that means you're at least moderately comfortable with the Unix command line... is that correct? If so, you can open the Terminal app on your Mac (found in /Applications/Utilities/) to access the Unix command line. The kill command will stop a given process. If Activity Monitor isn't letting you quit them, get the process ID from Activity Monitor and then try typing "kill 1234" (replacing 1234 with the correct process ID) in the Terminal.

All that, of course, just solves the current issue, but it sounds like you've got other problems. Your Mac should not be acting like this. Reboot from your Mac OS X install disk and switch to Disk Utility as soon as the installer pops up. Repair the hard drive. Can't hurt to repair permissions as well. If the problem comes back, let us know in more detail what it is that you're doing that seems to be causing the problem. (I don't know a lot about WebDAV, so I'm not sure if what you're talking about involves any third-party software or is using pure Mac OS X functionality.)

May 4, 2009 4:45 AM in response to thomas_r.

I am, indeed, moderately comfortable with command line. Just moderately, because OS X is pretty different from Ubuntu, and used the sudo killall Locum

As far as WebDAV goes, the capability seems built into OS X (as well as Ubuntu) since a long time. It's hard to point what I may be doing wrong; I'm just using the computer the way it's intended to. There's a capability in Finder to connect to WebDAV servers, so I'm using it.
I do run a good bit of applications at the same time (When Finder refused to cleanly get killed: Safari, Skype, NeoOffice, iCal, Console, iTunes, and one Finder window), but always wait when one needs power. In fact, the CPU % use was hovering around 15% when Finder (sort of) crashed, most of which was due to Safari, which is very sensitive to script usage.

Incidentaly, I wasn't running any Trash-related task at this time; when I do and I know that deleted data is not very sensitive, I just empty it, without "securely" emptying it.

This computer was installed on a fully formatted hard drive like, 2 weeks ago, but the drive was not zeroed, just formatted. The rationale to it is it would have taken more than a night to zero a 160GB drive, and since I'm the only user of this machine, privacy for previous data is not in the point here.

If I'm forced to reinstall Leopard from scratch every two weeks AND zero the drive each time, that's not what I call stable.

As for permission repair, an Apple Genius told me that since updates can change permissions on files, in order to improve stability or others, it is advisable to use Disk Utility from inside OS X, not the Install Disc. Is that correct?

May 4, 2009 5:02 AM in response to cubytus

cubytus,

Yes its better to repair permissions from your computer vs the disc because updated permissions. Although its important to note as of now there are a few permission things you can safely ignore per Apples recommendation. More on that here: http://support.apple.com/kb/TS1448

As for relaunching Finder you can do that through Terminal as suggested, You can do it through the Activity Monitor as suggested, and you can also do it through the Force Quite Menu, found under the . Or to access it with a keyboard shortcut Command + Option + ESC.

Hope that helps,
Weston

May 4, 2009 7:28 AM in response to cubytus

Sounds like no third-party software is involved with the WebDAV stuff... that doesn't necessarily rule out that the problems were caused by third-party software, but you haven't mentioned anything that makes me particularly concerned.

You're right that you shouldn't have this kind of thing going on with a system that is only 2 weeks from a fresh install on a clean drive. (Note that zeroing a drive is absolutely not necessary to make sure that it's got a clean file system. You just have to erase using Disk Utility.) Problems on a fresh system like this always make me start to think "hardware problem," but I don't think you've done enough yet to rule out anything else. In particular, since I know nothing about WebDAV, I can't say anything about whether this is a common problem with the Finder's WebDAV support. So you may need to wait for someone with that expertise.

Some general problem-solving: Has this only happened this one time, or has it happened repeatedly? Have you tried on a different account? Have you tried deleting any relevant plist files? (Look for anything with "webdav" and ending with ".plist", using [EasyFind|http://www.devon-technologies.com/products/freeware/index.html] and not Spotlight, and don't actually empty the trash until you've rebooted and re-tested and everything still works okay. If something won't work right, put the file(s) back where you found them.)

May 4, 2009 12:20 PM in response to cubytus

cubytus,

My recommendation for zeroing the drive is for one reason, and one reason only: When we "zero" a drive, any bad blocks are mapped out of the partition map. This is not something one would do on a regular basis, but just once. With a simple erasure/reformat, this doesn't happen.

If you have already had to reinstall on this Mac, it is doubly important that you consider zeroing the drive.

As I said, I'm not sure what other functions locum performs, beyond securely erasing. I think the important point here is that it is a sub-routine of the Finder. The only other thing I have been able to find about it is its typical definition, which is that of a "placeholder." In the context of the Finder, I would assume this means a file system placeholder. If a process that is supposed to be a "file system placeholder" seems to be hanging, the indication would (again) be that a disk error may have occurred.

Of course, this could also indicate an I/O error, even in the presence of a healthy file system. In this case, you're looking at bad hardware. This could be as simple as a bad cable, or as complex as a bad logic board component. If this is the case, so be it, but wouldn't you rather find that your hard drive just needs to be re-mapped?

Scott

May 4, 2009 12:21 PM in response to thomas_r.

Hi Thomas,

in fact, I spent about 2 hours with Apple Care iPod and MacBook specialists on the line,, alternating between both of them, either in French or English (a bit more difficult for me as phones don't transmit pronunciation accurately). I initially called for the Remote application not pairing with my computer, but asked about the Finder issue as well, and in no case they had a clue. I talked about it because problems happen whenever I'm using the AirPort interface (i.e. most of the time).

They made me repair permissions, then repair disk. No issue was found.

As for WebDAV, I don't know precisely how it works (I'm an end-user, after all), just how it behaves in OS X and Ubuntu. It's a marvel when it works properly, as a way to seamlessly send files back and forth to the online storage space (Think a reduced functionality MobileMe).

For the other issue with Remote, everything points out to a hardware issue, although the MacBook unib is completely stock. Apple engineering department is currently on the issue, and I specifically asked to get called any time of the day, since I may need to go out of the country in a very short while, and will need a reliable machine for the trip and after.

BTW, I installed and looked for a .plist file having the "WebDAV" string in its name, and there isn't any. Only a .fs, .kext and .tc files.

May 4, 2009 1:42 PM in response to Scott Radloff

Well, I reinstalled the OS since it is strongly recommended when a computer undergoes a significatn hardware change (Changed motherboard because of a defective audio port). I don't see any valid reason why a 6-month old computer would have a failing hard drive such as it contains bad blocks, or why it would have been manufactured with such a bad drive.

The point is, I don't really have that many hours to wait "downtime" until the drive finishes zeroing + reinstalling everything from scratch and configuring again, as I'm not sure it will solve anything.

May 5, 2009 4:54 AM in response to cubytus

Some updated content:

When I try to relaunch Finder while connected to this WebDAV share, it gives the error I previously described.

This share is pretty constant in making Finder bug: it does bug whenever it's connected through wifi or Ethernet.

Precisely, bugs happen when I try to delete a file from the shared folder; it then hangs without seeming to do anything except wait for something it doesn'T specify. During this time, the CPU is idle.

One way I found to get the Finder relaunched is by briefly putting the MacBook to sleep by closing its lid.

May 5, 2009 6:08 AM in response to cubytus

You're getting the error because the Finder is "stuck" trying to accomplish something via a kernel routine and thus cannot be killed:

04/05/09 01:42:15 com.apple.launchd237 (0x10bf20.Locum8590) Did not die after sending SIGKILL 1260 seconds ago...


The most likely action is the Finder is stuck in a kernel routine trying to perform disk I/O.

This may be a bug, or this may be because your WebDAV server is either slow or is not responding properly.

In either case, since this is a new machine, you may want to contact AppleCare and open a case on this issue.

Bug reports from users in the field are a primary way problems like this get fixed in future releases.

Out of curiosity, have you seen any similar behavior when accessing your WebDAV server using your Ubuntu box ( i.e. a process that won't die because it's stuck in disk wait?)

May 5, 2009 6:14 AM in response to Dogcow-Moof

This makes sense.

However, I don't want Apple to get messed by my multiple problems, so is this really a good idea to open two cases?

The first one being that the Remote application doesn't work on WiFi on my MacBook (consistently across all iPods Touch tried). Waiting for a callback on this one, or a plain exchange if not done in time. Considering the problems I got with the MacBook unibody, I'm seiously considering asking for a white MacBook replacement, upgraded to match unib's original price.

The second case would be this one with this WebDAV server. In fact, when I'm connecting to another WebDAV account I have access to, there's no issue. So far, I can't tell for sure about a distant server bug or a Finder bug.

I will try the same WebDAV share on another Mac, because the first thing Apple Care agents ask is to go test the computer in store if problem can't be solved

May 6, 2009 7:02 AM in response to Dogcow-Moof

Well, they haven't told me the case number, or I didn't understood it, wich is not so likely.

Maybe the guy simply forgot to tell it. I will ask them about it.

Meanwhile, I checked another Mac OS 10.5.6 (white MacBook), and the WebDAV share exhibited the same problem: Finder was stuck trying to delete some files.

So I wrote to the WebDAV tech support, and he didn't understood why I have the problem, but he doesn't (using the same OS X), and moreover, I was the only Mac user to report this problem.

Not conclusive so far.

In the end, I would like to be able just to use my computer, and not have to worry about issues from a computer released too soon on the market.

May 6, 2009 7:04 AM in response to cubytus

cubytus wrote:
So I wrote to the WebDAV tech support, and he didn't understood why I have the problem, but he doesn't (using the same OS X), and moreover, I was the only Mac user to report this problem.


That's what makes me suspect something about your particular server and/or your network connection to it.

If you can reproduce it on a Mac at the Apple Store, that's further proof of an issue for AppleCare.

If you can reproduce it in front of a Mac Genius at the store, they also have a way of getting bug reports into the system.

Finally you can create bug reports yourself using the Apple Bug Reporter, though you'll need to create a free ADC Online account first.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to manually relaunch Finder when it refuses to get killed?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.