Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Weird LaunchServices error

Weird LaunchServices error
Thread Tools
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Feb 17, 2003, 09:06 PM
 
So I was working on my project called Dockless, and I was thinking I was pretty close to a 1.1 release, but then all of a sudden I get this crash whenever I start making NSFileManager calls:

BSDPathToIOMediaObject: unable to get IOKit master port: error 0xFFFFFFFF (-1)
dyld: /Users/fahrenba/Projects/Dockless/build/Dockless.app/Contents/MacOS/Dockless can't open library: /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/LaunchServices (Too many open files, errno = 24)

Dockless has exited due to signal 5 (SIGTRAP).
I was worried that I had done something stupid and corrupted a framework or something, and I wanted to a clean install in the near future anyway, so I wiped my drive and zeroed it, then installed 10.2.3 off of the latest ADC mailing. I also recreated the Dockless project and imported all the files. But, much to my displeasure, the error persisted. So I'm lost for an explanation for why this is happening. If I remove the NSFileManager calls, the error goes away, but I really would prefer to find out what's going on instead of reinventing the wheel with a work around.

Thanks,
Matt Fahrenbacher
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 18, 2003, 10:20 AM
 
BSDPathToIOMediaObject: unable to get IOKit master port: error 0xFFFFFFFF (-1)
That's bizarre... And that's about all I can say :-/
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Feb 18, 2003, 05:01 PM
 
Originally posted by Angus_D:
That's bizarre... And that's about all I can say :-/
Sigh...

Well, I guess there won't be a new version of Dockless for a while (or any other apps that I write that use NSFileManager...)

Matt Fahrenbacher
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Feb 19, 2003, 05:44 PM
 
Hmmm... problem fixed. Note to self: don't do stuff with NDResourceFork (aka bizarre for loops)...

Matt Fahrenbacher
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 20, 2003, 04:36 AM
 
Care to elaborate?
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Feb 20, 2003, 01:29 PM
 
Originally posted by Angus_D:
Care to elaborate?
If I must

Okay, I was trying to read in some data from a file's resource fork, but I didn't know the id, just the type. So I created a little for loop to iterate over id's 0 through 255 and see if there was any data. I'm pretty sure that was the stupidest way to go about that, but anyway, that's what I did.

I then conveniently forgot about that portion of code, and noticed that my NSFileManager calls were dieing. It seems that the two were related, although I think you'd be hard pressed to look at my code and figure out that this was the cause.

:hides head in shame:

Matt Fahrenbacher
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:48 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2