Re: Odd Runtime Message
Re: Odd Runtime Message
- Subject: Re: Odd Runtime Message
- From: Ryan Britton <email@hidden>
- Date: Thu, 27 Oct 2005 19:57:21 -0700
The problem is with some plist file spotlight uses:
#0 0x9074c4f4 in CFPropertyListCreateFromXMLData
#1 0x9073cc70 in _CFBundleCopyInfoDictionaryInDirectoryWithVersion
#2 0x9073c788 in CFBundleGetInfoDictionary
#3 0x90733d3c in _CFBundleCreate
#4 0x91033150 in MDSchemaCopyDisplayNameForAttribute
#5 0x00035424 in -[SmartGroupRuleView stringAttribute:] at
SmartGroupRuleView.m:719
#6 0x00033afc in -[SmartGroupRuleView buildAttributesArray] at
SmartGroupRuleView.m:475
#7 0x00030db8 in -[SmartGroupRuleView initWithFrame:] at
SmartGroupRuleView.m:25
#8 0x9364e6f4 in -[NSCustomView nibInstantiate]
#9 0x9364bd98 in -[NSIBObjectData instantiateObject:]
#10 0x9364bb28 in -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:]
#11 0x93637fc4 in loadNib
#12 0x93637a1c in +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:]
#13 0x9368ecfc in +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:]
#14 0x9371eab0 in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#15 0x9371e850 in NSApplicationMain
#16 0x00003394 in main at main.m:13
If I comment out the spotlight querying code, the error messages
disappear. Still working on tracking down which file it's having a
problem with though...
On Oct 26, 2005, at 4:04 PM, Ryan Britton wrote:
No luck. I ran plutil on every plist and nib file in the project
and got an OK on all of them. Oddly, it just now started
complaining about a different nib file, which also works correctly.
If this helps, I just tried running an older "release" build and am
getting the same error in my Console. I know for sure this build
never did that before.
On Oct 26, 2005, at 3:14 PM, Chris Parker wrote:
On Oct 26, 2005, at 3:08 PM, Ryan Britton wrote:
About two days ago, I started getting about 30 identical messages
like this when launching my program:
CFPropertyListCreateFromXMLData(): plist parse failed; the data
is not proper UTF-8. The file name for this data could be:
/Users/ryan/Projects/MyApp/build/Release/MyApp.app/Contents/
Resources/English.lproj/MainMenu.nib/keyedobjects.nib
However, everything still works just fine. I can open
MainMenu.nib (and all of my other nibs for that matter) in
interface builder and I can open the file it says in Property
List Editor and see everything as expected.
The program appears to be functioning perfectly, but nothing I do
seems to be able to get rid of that error.
I have tried:
- Re-saving the nib file
- Using IB's auto-backup of MainMenu.nib
- Deleting the preferences file.
- Deleting the Core Data store
The last thing I can do is to pull it out of my svn repository,
but that's more of a pain so I'd rather exhaust all other options
first.
Any ideas?
What's probably happening here is the warning you're getting and
the filename it's trying to report aren't actually matching up.
The log says the name "could be" that of your nib. In this case, I
suspect it's not.
Did you add something to your project a couple of days ago that
involves reading a plist? Have you put any non-UTF8 strings into
an XML plist your program depends on? Depending on what editor you
use to muck about with the plists, one popular trigger of this
error is putting a MacRoman-encoded copyright symbol into your
UTF-8 encoded Info.plist.
You might take a pass through your sources for anything that's a
plist and feeding it to plutil(1) - the plist that reports this
error is your culprit.
.chris
--
Chris Parker
Cocoa Frameworks
Apple Computer, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden