Re: Mysterious Snow Crash
Re: Mysterious Snow Crash
- Subject: Re: Mysterious Snow Crash
- From: Graham Cox <email@hidden>
- Date: Thu, 24 Sep 2009 11:59:23 +1000
On 24/09/2009, at 9:31 AM, Gerriet M. Denkmann wrote:
As it crashes in _LSAcquireIconRefForURL - is there a way to find
out (in the debugger) what URL is being processed?
You could set a breakpoint on any of the methods in the backtrace and
step through it in the debugger. However, it won't tell you too much
in this case because there's no symbol data there, as
LSSharedFileListInsertItemURL (where I set a breakpoint) for example
is a private framework method. I had a quick try using:
(gdb) po *(id*)($ebp+4)
(that tries to print the description of the first parameter to the
LSSharedFileListInsertItemURL function, assuming it is an object). I
get <not an object> so the assumption is false. The second parameter
returns <LSSharedFileList 0x15668290> {null} and there appears to be
nothing beyond that. Not very helpful.
I infer that what this is doing is adding the just-opened document URL
to the system's "Recent Documents" list as displayed in the Apple
menu. It is called in response to opening a document in (my) app, so I
would further guess that the URL will be simply the one I just opened.
If you only open one document at a time there's no puzzle over what
URL it is - it's the one you opened. So that should give you a way to
examine the document to see if there's something wrong there. Since
the crash appears when trying to obtain the icon data for the URL,
could the problem be that the icon set for the document type in your
info.plist is not set up correctly, or that the icon image is damaged?
Obviously this is clutching at straws but might give you something to
go on.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden