corruption?

Hello
Recently someone else was using my computer, and for some reason found it necessary to close all files before they did so, and now I cannot access any of my Scrivener files, or create a new project. Here is a screenshot of what I get:

This is what I get when opening existing projects and new projects.

Please advise – I’m using a MacBook with 10.5.8.

Thanks in advance,
Bronwyn

This sounds like a font problem, try running FontBook, and validating all of the fonts on your system. In particular, Scrivener needs Helvetica, Courier, Lucida Grande and Optima to load up correctly, so if any of those are damaged or disabled, fixing them would almost certainly fix the problem you are seeing.

While you are at it, if you could paste any information from the Console.app program (in Applications/Utilities) pertaining to Scrivener, from around when you try to load a project, that would help.

Thanks for your quick reply. I tried validating those fonts, and there were no problems with any of them, and I’m not having any problems in any other programs.

Below I’ve pasted the info from the console from today, relating to Scrivener.

Cheers
Bronwyn


25/08/2010 16:57:36 Scrivener[9208] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 16:57:36 Scrivener[9208] .sdef error: Operation could not be completed. (NSXMLParserErrorDomain error 1549.)
25/08/2010 16:57:36 Scrivener[9208] line number: 2
25/08/2010 16:57:36 Scrivener[9208] .sdef error: Operation could not be completed. (NSXMLParserErrorDomain error 1549.)
25/08/2010 16:57:36 Scrivener[9208] line number: 2
25/08/2010 17:00:27 Scrivener[9208] *** Assertion failure in -[NSMenuItem setTitle:], /SourceCache/AppKit/AppKit-949.54/Menus.subproj/NSMenuItem.m:743
25/08/2010 17:00:27 Scrivener[9208] Invalid parameter not satisfying: aString != nil
25/08/2010 17:01:50 Scrivener[9208] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 17:02:02 Scrivener[9208] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 17:11:01 Scrivener[9208] *** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0]
25/08/2010 17:16:16 Scrivener[9208] An exception was thrown during execution of an NSScriptCommand…
25/08/2010 17:16:16 Scrivener[9208] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 20:08:26 Scrivener[10534] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 20:08:27 Scrivener[10534] .sdef error: Operation could not be completed. (NSXMLParserErrorDomain error 1549.)
25/08/2010 20:08:27 Scrivener[10534] line number: 2
25/08/2010 20:08:27 Scrivener[10534] .sdef error: Operation could not be completed. (NSXMLParserErrorDomain error 1549.)
25/08/2010 20:08:27 Scrivener[10534] line number: 2
25/08/2010 20:09:58 Scrivener[10534] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 20:24:00 Scrivener[10534] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 20:30:31 Scrivener[10534] An exception was thrown during execution of an NSScriptCommand…
25/08/2010 20:30:31 Scrivener[10534] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 20:30:45 Scrivener[10534] An exception was thrown during execution of an NSScriptCommand…
25/08/2010 20:30:45 Scrivener[10534] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)
25/08/2010 20:33:30 Scrivener[10534] An exception was thrown during execution of an NSScriptCommand…
25/08/2010 20:33:30 Scrivener[10534] *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects[0] (key: NSFont)

Thanks, this is helpful. It definitely does look like a font issue. You are getting repeated errors which indicate that Scrivener is trying to apply a font that the system is refusing to make available. In particular some people have problems with Courier, after installing Snow Leopard. Double-check to make sure all of the fonts I listed in the first response are installed on your system and not greyed out in FontBook.

I would also try resetting preferences at this point. Either delete, or temporarily drag the “com.literatureandlatte.scrivener.plist” file out of your Library/Preferences folder to the desktop, and try opening the project again.

But the good news is, I wouldn’t worry about corruption too much at this point. You’d be getting different errors if the projects were damaged. It looks like something else, exterior to the projects, or perhaps some font within the projects is no longer available (though that usually results in substitution, not a failure to load it).

Though on that note, until we get this solves let’s stick with attempting to create new projects and testing with those instead of your important ones, just to be on the safe side.

I looked again at the fonts, and I have Courier New, not Courier, so that must be it.

I guess the only way to get Courier back is to reinstall OSX (my external hard drive is out of action). I’ll try the reinstall later today and let you know. Thanks so much for your help.

Best
Bronwyn

All right, good. Glad you found the culprit. Re-installing the font should clear up the whole problem.

Brilliant, it worked! Thanks so very much.