• 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
NSImage Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage Crash


  • Subject: NSImage Crash
  • From: "parag vibhute" <email@hidden>
  • Date: Fri, 11 Jul 2008 16:02:16 +0530

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

  • Follow-Ups:
    • Re: NSImage Crash
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: How do I copy a view?
  • Next by Date: Re: Calling autorelease on CFAllocated objects?
  • Previous by thread: Re: Goofy behavior with CICheckerboardGenerator filter and transparency
  • Next by thread: Re: NSImage Crash
  • Index(es):
    • Date
    • Thread