No New Projects

Hi guys,

I recently installed 2.0 but for some reason when I click on “file”, and “new project”, nothing happens. I get the bouncing ball thinking for 10-15 seconds, then… nothing.

What’s happening?

I’ve removed 1.54 and I can still see my old templates in the Applications Support Folder. I’ve reinstalled 2.0 twice now, cleaned the caches and also fixed any problems with disk permissions (and restarted several times) but I still can’t open/create a new project.

Hi,

Try re-downloading and re-installing, as I updated the version on the server with one that fixes a good number of the early teething problems this afternoon.

If it still happens after that, let me know and we’ll take it from there.

Sorry you’re having problems.

Thanks,
Keith

Hi Keith,

Just got home from work (in Oz here) and tried the new download as soon as walked in the door.

It doesn’t make any difference. I still click on File, New Project, and it has a little think before… nothing.

I closed every open app and everything in the menu that doesn’t need to be open (I read somewhere on the forums that Spell Checker could cause some problems, so I’ve removed that).

At them moment it’s simply unusable, which is a real shame. And I have a new 15" Macbook Pro with all the trimmings, so there’s no issue with speed, RAM or any of that stuff.

Any ideas would be great. Thanks.

Regards

Darren

Can you please open up the Console (~/Applications/Utilities/Console.app) and then try creating a new project again - let me know if any errors get generated on the console.

Thanks,
Keith

P.S. One thought - when you go to File > New Project, it should just open the “new project” templates chooser panel; if that’s already open and to the front, it won’t do anything. You create the new project itself by picking a template. Just double-checking: you are saying that this template chooser panel doesn’t appear at all, right?

Hi Keith,

Just to confirm, the Templates Choose Panel doesn’t come up. Scrivener just thinks about it and then gives up. Here’s the Info from the Console.

5/11/10 7:52:51 AM [0x0-0x1d01d].com.literatureandlatte.scrivener2[239] Scrivener(239,0xa0123500) malloc: *** mmap(size=231211008) failed (error code=12)
5/11/10 7:52:51 AM [0x0-0x1d01d].com.literatureandlatte.scrivener2[239] *** error: can’t allocate region
5/11/10 7:52:51 AM [0x0-0x1d01d].com.literatureandlatte.scrivener2[239] *** set a breakpoint in malloc_error_break to debug
5/11/10 7:53:04 AM [0x0-0x1d01d].com.literatureandlatte.scrivener2[239] Scrivener(239,0xa0123500) malloc: *** mmap(size=268435456) failed (error code=12)
5/11/10 7:53:04 AM [0x0-0x1d01d].com.literatureandlatte.scrivener2[239] *** error: can’t allocate region
5/11/10 7:53:04 AM [0x0-0x1d01d].com.literatureandlatte.scrivener2[239] *** set a breakpoint in malloc_error_break to debug
5/11/10 7:53:04 AM Scrivener[239] HIToolbox: ignoring exception ‘Attempt to allocate 268435456 bytes for NS/CFData failed’ that raised inside Carbon event dispatch
(
0 CoreFoundation 0x900d6bba __raiseError + 410
1 libobjc.A.dylib 0x945d5509 objc_exception_throw + 56
2 Foundation 0x91768f92 _NSSearchForNameInPath + 0
3 CoreFoundation 0x900f03f5 __CFDataHandleOutOfMemory + 101
4 CoreFoundation 0x9002b4fd __CFDataGrow + 717
5 CoreFoundation 0x9002908a CFDataReplaceBytes + 362
6 CoreFoundation 0x9002a8ba CFDataAppendBytes + 154
7 CFNetwork 0x95abd161 _ZN19URLConnectionClient21_clientDidReceiveDataEPK8__CFDataPNS_26ClientConnectionEventQueueE + 243
8 CFNetwork 0x95b364c6 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 260
9 CFNetwork 0x95ab194e _ZN19URLConnectionClient13processEventsEv + 94
10 CFNetwork 0x95ab17ef _ZN17MultiplexerSource7performEv + 183
11 CoreFoundation 0x900420fb __CFRunLoopDoSources0 + 1563
12 CoreFoundation 0x9003fbbf __CFRunLoopRun + 1071
13 CoreFoundation 0x9003f094 CFRunLoopRunSpecific + 452
14 CoreFoundation 0x9003eec1 CFRunLoopRunInMode + 97
15 CFNetwork 0x95afce8d CFURLConnectionSendSynchronousRequest + 419
16 Foundation 0x917bc76f +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 142
17 Foundation 0x917dae9b -[NSXMLDocument initWithContentsOfURL:options:error:] + 262
18 ScrAppKit 0x003e5e08 +[NSXMLDocument(KBAdditions) XMLDocumentWithContentsOfURLPreservingWhitespace:error:] + 149
19 Scrivener 0x001d8d84 -[SCRTemplateXMLGenerator xmlTemplateAttributesAtPath:projectZipData:] + 130
20 Scrivener 0x001d9564 -[SCRTemplateXMLGenerator attributesForTemplateAtPath:] + 50
21 Scrivener 0x00142939 -[SCRTemplatesPanelController loadTemplatesFromDisk] + 651
22 Scrivener 0x00143132 -[SCRTemplatesPanelController showWindow:] + 62
23 AppKit 0x93014f1e -[NSApplication sendAction:to:from:] + 112
24 AppKit 0x93014dd1 -[NSMenuItem _corePerformAction] + 435
25 AppKit 0x93014ac2 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 174
26 AppKit 0x930149ae -[NSMenu performActionForItemAtIndex:] + 65
27 AppKit 0x93014961 -[NSMenu _internalPerformActionForItemAtIndex:] + 50
28 AppKit 0x930148c7 -[NSMenuItem _internalPerformActionThroughMenuIfPossible] + 97
29 AppKit 0x9301480b -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 336
30 AppKit 0x93008f49 NSSLMMenuEventHandler + 404
31 HIToolbox 0x92612f2f _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1567
32 HIToolbox 0x926121f6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 411
33 HIToolbox 0x926349bb SendEventToEventTarget + 52
34 HIToolbox 0x92660fa7 _ZL18SendHICommandEventmPK9HICommandmmhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 448
35 HIToolbox 0x92685d1c SendMenuCommandWithContextAndModifiers + 66
36 HIToolbox 0x92685cd1 SendMenuItemSelectedEvent + 121
37 HIToolbox 0x92685bda ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2 + 152
38 HIToolbox 0x926552e4 _ZL14MenuSelectCoreP8MenuData5PointdmPP13OpaqueMenuRefPt + 454
39 HIToolbox 0x92654a56 _HandleMenuSelection2 + 465
40 HIToolbox 0x92654874 _HandleMenuSelection + 53
41 AppKit 0x9300248a _NSHandleCarbonMenuEvent + 285
42 AppKit 0x92fd703a _DPSNextEvent + 2304
43 AppKit 0x92fd62ca -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
44 AppKit 0x92f9855b -[NSApplication run] + 821
45 AppKit 0x92f905ed NSApplicationMain + 574
46 Scrivener 0x00002c61 _start + 208
47 Scrivener 0x00002b90 start + 40
48 ??? 0x00000002 0x0 + 2
)

Let me know what you think.

Regards

Darren

Blimey, memory is getting eaten up - very strange. Do you have any custom 1.x templates that you created? I’m wondering if a large 1.x template in your Application Support folder is causing problems. Try the following:

• In the Finder, go to ~/Library/Application Support/Scrivener (where the tilde represents your home folder).

• Look for a folder entitled “ProjectTemplates” and rename it - it doesn’t matter what you rename it to, just something different so that Scrivener will ignore it.

• Relaunch Scrivener and try again.

If this fixes the problem, can you please send me, or post, a screenshot of the contents of the ProjectTemplates directory? (And don’t delete it, because I’d like to investigate the cause - but do take a peek to see if there are any particularly large .scrtpl files in there.)

Thanks,
Keith

Hi Keith,

Thanks for that; I’m at work at present, so I’ll get onto this when I get home.

I think you’re right, as I created a template that included all the training videos in the reference folder. That would make it pretty large.

That must be it! But I’ll check and let you know.

Regards

Darren

That definitely sounds like the culprit! The template has to get unzipped into memory, so a massive one could cause problems. Let me know how it goes and if that is the cause, I’ll take a look to see if I can optimise memory usage for that.
Thanks,
Keith

Hi Keith,

That’s exactly what it was. Problem solved. But I guess that means I can’t use my old templates? Yes they’re big, but it’s great to have the training videos handy in the reference folder for whenever I need a refresher. Any ideas on how best to handle this in the future - other than keeping my templates “basic”?

Kind Regards

Darren

Glad you’re up and running at least.

How big is the template? I’m wondering if it’s possible for you to share it with me so that I can take a look and work out how to fix it.

Thanks,
Keith

Hi Keith,

Sorry I haven’t gotten back to you; just finished our weekend, and what with managing the kids and the usual list of wifey’s chores to do, time flew by. Oh, and I also finally had a chance to play with Scrivener 2.0! It’s fantastic. Great job, mate.

The old template is about 650Mb. I’m happy to upload it to hotfile or something for you.

One thing I would say though is it’s easy to replicate. All I did was add about 15 or so Scrivener Tutorial videos to a standard novel template. That racked up the Mb’s.

Interestingly, I tried to do exactly the same thing in my new 2.0 Novel Template, and it didn’t let me save it. I can’t remember the exact error message - I should have written it down - but there’s definitely a limit on the size of the template you’re allowed to have in 2.0 it seems.

Give it a try yourself; just drag as many Scrivener Tutorial videos into the Reference Folder or something and try and create a template. Let me know how you go.

Like I said, I’m happy to send my old 1.54 Template, but that’s all it is - should be pretty easy to replicate your end, without having to download a meaty file and waste your bandwidth.

Whatever helps you though; just let me know, okay?

Regards

Darren

Many thanks, Darren! I’ll try that. It may be that the templates format needs tweaking somewhat. It’s based on serialising zip data inside an XML file, but the XML format might not be handling larger zip files so well. I’ll look into it.
Thanks again!
All the best,
Keith

Hi Keith,

Just thought I’d get in contact and see how you went with the issue of the XML format not handling larger zip files. I tried the other day to create a template with all the training videos attached, but the same thing happened.

Would be great to get it fixed as it was handy having videos attached in 1.54.

Regards

Darren