ugol/pomodoro — Issue #246: Builds in XCode 4.2, OSX 10.7.2 (Lion) throw errors
Author: mcamiano
Created: 2011-12-02 16:35:26+00:00
State: open

After downloading and switching the scheme, and correcting an absolute path in Pomodoro.xcodeproj/project.pbxproj (to fix the Test build), the project will build with several semantic errors and warnings. (Some look serious -- one error is related to reading off the end of an array.)

Running the app and starting a Pomodoro gives the following error in the debug console:

2011-12-02 11:21:15.119 Pomodoro[46898:107] An uncaught exception was raised
2011-12-02 11:21:15.120 Pomodoro[46898:107] -[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: getToDoListFromThings)

2011-12-02 11:21:15.123 Pomodoro[46898:107] (
0 CoreFoundation 0x00007fff89484286 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff93a88d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff894840ba +[NSException raise:format:arguments:] + 106
3 CoreFoundation 0x00007fff89484044 +[NSException raise:format:] + 116
4 CoreFoundation 0x00007fff8944129b -[__NSCFDictionary setObject:forKey:] + 219
5 Pomodoro 0x00000001000124d5 -[Scripter executeScript:] + 373
6 Pomodoro 0x0000000100004a09 -[GettingThingsDoneController addListToCombo:] + 73
7 Pomodoro 0x00000001000050ae -[GettingThingsDoneController pomodoroWillStart:] + 206
8 Foundation 0x00007fff934dbde2 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
9 CoreFoundation 0x00007fff8942ce0a _CFXNotificationPost + 2634
10 Foundation 0x00007fff934c8097 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
11 Pomodoro 0x0000000100009b93 -[PomodoroController start:] + 403
12 CoreFoundation 0x00007fff89473a1d -[NSObject performSelector:withObject:] + 61
13 AppKit 0x00007fff8ccdf710 -[NSApplication sendAction:to:from:] + 139
14 AppKit 0x00007fff8cdccbd7 -[NSMenuItem _corePerformAction] + 399
15 AppKit 0x00007fff8cdcc90e -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 125
16 AppKit 0x00007fff8d069194 -[NSMenu _internalPerformActionForItemAtIndex:] + 38
17 AppKit 0x00007fff8ceface5 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 138
18 AppKit 0x00007fff8cd4651f NSSLMMenuEventHandler + 339
19 HIToolbox 0x00007fff90d45308 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1263
20 HIToolbox 0x00007fff90d44914 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 446
21 HIToolbox 0x00007fff90d5b6c7 SendEventToEventTarget + 76
22 HIToolbox 0x00007fff90da19f5 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 398
23 HIToolbox 0x00007fff90e88645 SendMenuCommandWithContextAndModifiers + 56
24 HIToolbox 0x00007fff90eceef9 SendMenuItemSelectedEvent + 253
25 HIToolbox 0x00007fff90d9ab07 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 101
26 HIToolbox 0x00007fff90ec7909 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 1660
27 HIToolbox 0x00007fff90ec7bc8 _HandlePopUpMenuSelection7 + 621
28 AppKit 0x00007fff8cefd9b1 _NSSLMPopUpCarbonMenu3 + 3860
29 AppKit 0x00007fff8d2a61ba _NSPopUpCarbonMenu3 + 39
30 AppKit 0x00007fff8cefbb16 -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 322
31 AppKit 0x00007fff8d15ab3e +[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] + 673
32 AppKit 0x00007fff8d15ade9 -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 147
33 AppKit 0x00007fff8ccdd63a -[NSControl mouseDown:] + 786
34 AppKit 0x00007fff8cca80e0 -[NSWindow sendEvent:] + 6306
35 AppKit 0x00007fff8d15b7fc -[NSStatusBarWindow sendEvent:] + 66
36 AppKit 0x00007fff8cc4068f -[NSApplication sendEvent:] + 5593
37 AppKit 0x00007fff8cbd6682 -[NSApplication run] + 555
38 AppKit 0x00007fff8ce5580c NSApplicationMain + 867
39 Pomodoro 0x0000000100001b22 main + 34
40 Pomodoro 0x0000000100001af4 start + 52
)

I've tried updating the project to recommended settings, per XCode's dialogs, but get the same results. Is this just bugs in an unstable version? (the commit was the latest as of today, Dec 2,2011 -- a22b8f94ee120d0338d1b32170b7ed975f51451d)