Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Error -10810: what's that?

I just installed leopard. Erase and install, then I copied my setting back using migration assistant.
I am going through my programs to see if everything works.
One weird thing, it happened twice since yesterday: all of a sudden, many if not all programs refuse to open (terminal, disk utility, activity monitor, etc., but also non apple programs (office, quicken, ecc.).
The message is "The application "<name of the application>" cannot be launched. -10810".
In addition, i have stuff in the trash, and if I try to empty it, I get the message "the operation cannot be completed becaus you do not have sufficient privileges".
Mine is an administrator account.
When I restart, everything is working back.
Has anybody seen this -10810 error? What happens? What triggers it? How to avoid it?
Thanks for helping.

MacBook Pro, Mac OS X (10.5), 2 GB ram

Posted on Oct 28, 2007 10:01 AM

Reply
22 replies

Dec 11, 2007 1:30 AM in response to donazipe

donazipe,

The following file defines the error -10810:

/System/Library/Frameworks/CoreServices.framework/... /Frameworks/LaunchServices.framework/... /Headers/LSInfo.h

as:

/* ======================================================== */

/* LaunchServices Type & Constants */

/* ======================================================== */

enum {

kLSUnknownErr = - 10810 , /* Unexpected internal error*/

};

Basically, it means that the Launch Services framework is misbehaving and is encountering errors when trying to launch an application. This is fairly rare, as I've only seen a few other people in these forums have this error in the last several years.

When you encounter this error message, it is probably best to restart the machine (as I can't think of any other easy way out of this, since it's a catch-22 situation: if there was an app that could fix the problem you still wouldn't be able to launch it).

There could be a potential problem with the Launch Services database cache file, which is a file that OS X uses to store information about what applications are installed and the types of documents they can open, etc. You could try rebuilding this database as a step to troubleshoot the issue. I've written a small application that can do this: http://homepage.mac.com/mdouma46/images/LaunchServicesDatabaseRebuildApp.zip (.zip, ~60 KB). (Yes, there are literally hundreds of other third-party utilities that offer to basically accomplish this same thing, but none that I've seen follow the advice given to a developer friend of mine several years ago in a Developer Technical Support Incident (not customer support, developer support, normally these are $200/problem where you get help from an actual Apple engineer on a specific problem). That advice is to quit the Finder during the rebuild and to restart afterward). Obviously, if you're encountering the launch error, you'll need to run this after you restart, but it should hopefully prevent the problem from occurring in the future.

Sorry, I'm not sure about the Trash errors...

Hope this helps....

Dec 11, 2007 3:15 AM in response to donazipe

While you are correct in finding the result, the problem is that some process is running multiple copies of itself and sucking up the all of the per user process ids that are permitted. In my case, it is "always" airport. Everyone else might be identifying the "symptom" when they try to start a process and get the error, but the error is with the process that is found in the process list 25+ times. Logging out and back in will work for a few days, but the problem will come back. Anyone who comes across this again should quit something, and quickly open a shell and type 'ps -ax' and post the results. You might have to quit two or three apps.

Once we have that data, then we can make a guess.

I did notice that my ISP was having DNS errors last night (slow actually) and this preceded the problem. the DNS resolution library on Unix is the most nasty piece of business I have worked with since you can't timeout or abort with out using a setjump/longjump setup and that is evil stuff. This might be a hint.

Robert

Dec 12, 2007 7:36 PM in response to donazipe

It happened again, but this time I found the criminal. The "(airport)" process was launched through the dashboard and there was an active dashboard widget named "Air Traffic Control" that watched for wireless signal strength. I had wireless turned off, but the widget was active. It looks like it spawns a child process on every activation of the widget desktop and since there was no wireless interface active, it hangs that process. Nothing wrong with Apple's launch process, just a bad widget.

Like any process that spawns a child process, they must ensure they reap the dead child processes and make sure the child's life time is controlled!

Dec 22, 2007 7:58 AM in response to donazipe

I was getting the same message (-10810) when using iTunes, and sometimes Itunes shows as not responding in the "Activity Monitor". Looking at the Console's logs for iTunes I realize that an error was occurring when trying to open a Xvid codec (r58), so I deleted the codec, and the problem seem to be gone. The codec was dated back to 2006....

Error -10810: what's that?

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