• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage Crash


  • Subject: Re: NSImage Crash
  • From: "parag vibhute" <email@hidden>
  • Date: Sat, 12 Jul 2008 11:36:11 +0530

It is strange that this type of error can occur in Mac for widely used
class NSImage, I am not able to find out root cause of this problem.
Afterwards when I run same app, it run successfully. I am not sure how
am I going to explain this to my client...

Thanks,
Parag

On 7/11/08, Mike Abdullah <email@hidden> wrote:
> Core Foundation is crashing trying to read in a bundle's info.plist.
> I've seen this happen with our own app a few times but am yet to track
> it down. Presumably, some bundle somewhere has a corrupted info.plist
> file. Even so, if you can find the culprit, it should not be crashing
> Core Foundation like that.
>
> Mike.
>
> On 11 Jul 2008, at 11:32, parag vibhute wrote:
>
>> Hi all,
>>
>> Following is the statement in my code
>>    NSImage *img = [[[NSImage alloc] initWithContentsOfFile:[[NSBundle
>> bundleForClass:[self class]] pathForImageResource:@"testicon"]]
>> autorelease];
>>
>> Here testicon is Apple Icon Image file i.e. its extension is .icns
>> This application was running fine from 10 months but yesterday it was
>> crashed. From crash reported, it seems that it was crashed on above
>> statemement. Following is part of crash report.
>>
>> Thread 2 Crashed:
>> 0   com.apple.CoreFoundation     0x90830a41 __CFFromUTF8 + 565
>> 1   com.apple.CoreFoundation     0x90830170
>> __CFStringDecodeByteStream3 +
>> 1954
>> 2   com.apple.CoreFoundation     0x9080bfaf
>> __CFStringCreateImmutableFunnel3
>> + 672
>> 3   com.apple.CoreFoundation     0x90818c4f CFStringCreateWithBytes
>> + 94
>> 4   com.apple.CoreFoundation     0x9082ec62
>> _CFPropertyListCreateFromXMLData
>> + 824
>> 5   com.apple.CoreFoundation     0x9082e927
>> CFPropertyListCreateFromXMLData
>> + 54
>> 6   com.apple.CoreFoundation     0x908201d1
>> _CFBundleCopyInfoDictionaryInDirectoryWithVersion + 1402
>> 7   com.apple.CoreFoundation     0x9081fc48
>> CFBundleGetInfoDictionary + 55
>> 8   com.apple.CoreFoundation     0x90817362 _CFBundleCreate + 751
>> 9   com.apple.LaunchServices     0x9189b185
>> LSRegisterDirectoryNode(LSContext*, FSNode*, LSRegistrationInfo*,
>> AliasRecord const*, unsigned long*) + 75
>> 10  com.apple.LaunchServices     0x91898658
>> _LSFindOrRegisterBundleNode +
>> 1064
>> 11  com.apple.LaunchServices     0x91893fc9
>> LSDatabaseClean(LSDatabase*) +
>> 211
>> 12  com.apple.LaunchServices     0x91892460 _LSContextInit + 522
>> 13  com.apple.LaunchServices     0x9189ee3b
>> UTTypeCreatePreferredIdentifierForTag + 51
>> 14  com.apple.AppKit             0x932a128e +[NSBitmapImageRep
>> _imagesWithData:hfsFileType:extension:zone:] + 4444
>> 15  com.apple.AppKit             0x932bf00b +[NSBitmapImageRep
>> _imageRepsWithData:hfsFileType:extension:] + 92
>> 16  com.apple.AppKit             0x932bea7e +[NSImageRep
>> imageRepsWithContentsOfFile:] + 646
>> 17  com.apple.AppKit             0x932be776 -[NSImage
>> initWithContentsOfFile:] + 45
>>
>> Can anybody what went wrong?
>>
>> Thanks,
>> Palav
>>
>> --
>>
>> There are many things in your life that will catch your eye but only
>> a few
>> will catch your heart....pursue those'.
>> _______________________________________________
>>
>> 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
>
>


--

There are many things in your life that will catch your eye but only a
few will catch your heart....pursue those'.
_______________________________________________

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

References: 
 >NSImage Crash (From: "parag vibhute" <email@hidden>)
 >Re: NSImage Crash (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: TableView partial bindings
  • Next by Date: Re: Protocol-conforming object does not include retain?
  • Previous by thread: Re: NSImage Crash
  • Next by thread: Learning How to Program in Objective-C
  • Index(es):
    • Date
    • Thread