New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing doesn't work when pie charts are visible #308

Closed
hsoft opened this Issue Jun 22, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@hsoft
Owner

hsoft commented Jun 22, 2013

When pie charts are visible, print does nothing and produce this error in the console:

@@@

2012-02-09 9:34:58.619 AM moneyGuru: unlockFocus called too many time.
2012-02-09 9:34:58.620 AM moneyGuru: unlockFocus called too many time.
2012-02-09 9:34:58.620 AM moneyGuru: unlockFocus called too many time.
2012-02-09 9:34:58.620 AM moneyGuru: unlockFocus called too many time.
2012-02-09 9:34:58.620 AM moneyGuru: unlockFocus called too many time.
2012-02-09 9:34:58.621 AM moneyGuru: *** -[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 .. 2]
2012-02-09 9:34:58.775 AM moneyGuru: (
0 CoreFoundation 0x00007fff919edfc6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff88e81d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff9197b582 -[__NSArrayM objectAtIndex:] + 274
3 moneyGuru 0x000000010000cd82 -[MGPieChartView drawRect:] + 3665
4 AppKit 0x00007fff88261abe -[NSView _drawRect:clip:] + 3758
5 AppKit 0x00007fff8828f1eb -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1583
6 AppKit 0x00007fff8828f617 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
7 AppKit 0x00007fff8828f617 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
8 AppKit 0x00007fff8825f099 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1032
9 AppKit 0x00007fff882599af -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4755
10 AppKit 0x00007fff8888fc34 -[NSView displayIfNeededInRectIgnoringOpacity:] + 722
11 AppKit 0x00007fff8888f95b -[NSView displayRectIgnoringOpacity:] + 158
12 AppKit 0x00007fff88969a9b -[NSView(NSPrintingInternal) _renderCurrentPageForPrintOperation:] + 457
13 AppKit 0x00007fff889665a1 -[NSPrintThumbnailView drawRect:] + 3238
14 AppKit 0x00007fff88261abe -[NSView _drawRect:clip:] + 3758
15 AppKit 0x00007fff8828f1eb -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1583
16 AppKit 0x00007fff8828f617 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
17 AppKit 0x00007fff8828f617 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
18 AppKit 0x00007fff8828f617 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
19 AppKit 0x00007fff8828f617 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
20 AppKit 0x00007fff8825f099 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1032
21 AppKit 0x00007fff8825e593 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 270
22 AppKit 0x00007fff882599af -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4755
23 AppKit 0x00007fff88252429 -[NSView displayIfNeeded] + 1676
24 AppKit 0x00007fff88311718 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1306
25 AppKit 0x00007fff88311115 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 807
26 AppKit 0x00007fff884cbaa3 -[NSApplication _orderFrontModalWindow:relativeToWindow:] + 662
27 AppKit 0x00007fff884cb56c -[NSApplication _commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelector:contextInfo:] + 831
28 AppKit 0x00007fff884cbe06 -[NSApplication beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:] + 134
29 AppKit 0x00007fff88722ae9 -[NSPrintPanel beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:] + 642
30 AppKit 0x00007fff8871f465 -[NSConcretePrintOperation runOperationModalForWindow:delegate:didRunSelector:contextInfo:] + 477
31 AppKit 0x00007fff885bec4c __-[NSDocument runModalPrintOperation:delegate:didRunSelector:contextInfo:]_block_invoke_1 + 228
32 AppKit 0x00007fff885ceddf -[NSDocument performActivityWithSynchronousWaiting:usingBlock:] + 82
33 AppKit 0x00007fff885beb62 -[NSDocument runModalPrintOperation:delegate:didRunSelector:contextInfo:] + 96
34 AppKit 0x00007fff885be963 __-[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]_block_invoke_4 + 142
35 AppKit 0x00007fff885b2c73 -[NSDocument continueActivityUsingBlock:] + 42
36 AppKit 0x00007fff885be58f __-[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]_block_invoke_3 + 250
37 AppKit 0x00007fff885be3dd __-[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]_block_invoke_2 + 1097
38 AppKit 0x00007fff885c5cd9 -[NSDocument _commitEditingThenContinue:] + 337
39 AppKit 0x00007fff885c19a6 -[NSDocument _commitEditingWithDelegate:didSomethingSelector:contextInfo:thenContinue:] + 91
40 AppKit 0x00007fff885bdf09 __-[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]_block_invoke_1 + 232
41 AppKit 0x00007fff885ceddf -[NSDocument performActivityWithSynchronousWaiting:usingBlock:] + 82
42 AppKit 0x00007fff885bde1b -[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:] + 103
43 AppKit 0x00007fff885bddad -[NSDocument printDocument:] + 70
44 CoreFoundation 0x00007fff919dd75d -[NSObject performSelector:withObject:] + 61
45 AppKit 0x00007fff8831acb2 -[NSApplication sendAction:to:from:] + 139
46 AppKit 0x00007fff88407fe7 -[NSMenuItem _corePerformAction] + 399
47 AppKit 0x00007fff88407d1e -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 125
48 AppKit 0x00007fff88385264 -[NSMenu performKeyEquivalent:] + 281
49 AppKit 0x00007fff88383eb5 -[NSApplication _handleKeyEquivalent:] + 526
50 AppKit 0x00007fff8827bc4e -[NSApplication sendEvent:] + 4282
51 AppKit 0x00007fff882121f2 -[NSApplication run] + 555
52 AppKit 0x00007fff88490b88 NSApplicationMain + 867
53 moneyGuru 0x0000000100001bb7 main + 391
54 moneyGuru 0x0000000100001a28 start + 52
)
@@@

@hsoft hsoft closed this Jun 22, 2013

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

(from [4a0544113a02]) [#308 state:fixed] Fixed pie charts printing under Cocoa.
https://bitbucket.org/hsoft/moneyguru/changeset/4a0544113a02/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment