bdkjones/CodeKit — Issue #239: Crashes on startup
Author: jancbeck
Created: 2012-02-27 18:28:38+00:00
State: open

I've been using CodeKit basically since day one and never had any major problems until I downloaded the latest beta yesterday. I can no longer add any files to projects or frameworks. The application will crash without any further notice. I tried a few different projects - some that used to work before - and event just a single empty index.html.

I'm on 10.7.3. The console logs:

```
27.02.12 19:19:49,064 CodeKit: An uncaught exception was raised
27.02.12 19:19:49,065 CodeKit: This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation.
27.02.12 19:19:49,067 CodeKit: (
0 CoreFoundation 0x00007fff83d48fc6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8765cd5e objc_exception_throw + 43
2 CoreData 0x00007fff84031b8e -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 1534
3 CoreData 0x00007fff8405a434 -[NSManagedObjectContext save:] + 708
4 CodeKit 0x000000010603237c -[LPModelController saveDataToDisk:] + 141
5 CodeKit 0x00000001060335b5 -[LPModelController didFinishFindingFilesInProposedNewProjectAtPath:withResult:] + 1080
6 CoreFoundation 0x00007fff83d3b591 -[NSObject performSelector:withObject:withObject:] + 65
7 libdispatch.dylib 0x00007fff8d311beb _dispatch_barrier_sync_f_slow_invoke + 80
8 libdispatch.dylib 0x00007fff8d31272a _dispatch_main_queue_callback_4CF + 308
9 CoreFoundation 0x00007fff83cde06c __CFRunLoopRun + 1724
10 CoreFoundation 0x00007fff83cdd676 CFRunLoopRunSpecific + 230
11 HIToolbox 0x00007fff8257431f RunCurrentEventLoopInMode + 277
12 HIToolbox 0x00007fff8257b5c9 ReceiveNextEventCommon + 355
13 HIToolbox 0x00007fff8257b456 BlockUntilNextEventMatchingListInMode + 62
14 AppKit 0x00007fff8a76cf5d _DPSNextEvent + 659
15 AppKit 0x00007fff8a76c861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
16 AppKit 0x00007fff8a76919d -[NSApplication run] + 470
17 AppKit 0x00007fff8a9e7b88 NSApplicationMain + 867
18 CodeKit 0x000000010602f22d main + 113
19 CodeKit 0x000000010602f1b4 start + 52
)
27.02.12 19:19:49,068 CodeKit: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff83d48fc6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8765cd5e objc_exception_throw + 43
2 CoreData 0x00007fff84031b8e -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 1534
3 CoreData 0x00007fff8405a434 -[NSManagedObjectContext save:] + 708
4 CodeKit 0x000000010603237c -[LPModelController saveDataToDisk:] + 141
5 CodeKit 0x00000001060335b5 -[LPModelController didFinishFindingFilesInProposedNewProjectAtPath:withResult:] + 1080
6 CoreFoundation 0x00007fff83d3b591 -[NSObject performSelector:withObject:withObject:] + 65
7 libdispatch.dylib 0x00007fff8d311beb _dispatch_barrier_sync_f_slow_invoke + 80
8 libdispatch.dylib 0x00007fff8d31272a _dispatch_main_queue_callback_4CF + 308
9 CoreFoundation 0x00007fff83cde06c __CFRunLoopRun + 1724
10 CoreFoundation 0x00007fff83cdd676 CFRunLoopRunSpecific + 230
11 HIToolbox 0x00007fff8257431f RunCurrentEventLoopInMode + 277
12 HIToolbox 0x00007fff8257b5c9 ReceiveNextEventCommon + 355
13 HIToolbox 0x00007fff8257b456 BlockUntilNextEventMatchingListInMode + 62
14 AppKit 0x00007fff8a76cf5d _DPSNextEvent + 659
15 AppKit 0x00007fff8a76c861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
16 AppKit 0x00007fff8a76919d -[NSApplication run] + 470
17 AppKit 0x00007fff8a9e7b88 NSApplicationMain + 867
18 CodeKit 0x000000010602f22d main + 113
19 CodeKit 0x000000010602f1b4 start + 52
)
27.02.12 19:19:49,068 [0x0-0x9d09d].com.incident57.CodeKit: terminate called throwing an exception
27.02.12 19:19:50,760 com.apple.launchd.peruser.502: ([0x0-0x9d09d].com.incident57.CodeKit[1499]) Job appears to have crashed: Abort trap: 6
27.02.12 19:19:51,123 ReportCrash: Saved crash report for CodeKit[1499] version 1.0 (5380) to /Users/admin/Library/Logs/DiagnosticReports/CodeKit_2012-02-27-191951_JB.crash```

I will try to replicate on a different machine tomorrow.