Click here to Skip to main content
15,867,568 members
Home / Discussions / Objective-C and Swift
   

Objective-C and Swift

 
QuestionNSPrintOperation not print properly Landscape print Pin
Le@rner30-Jan-18 20:13
Le@rner30-Jan-18 20:13 
Questionmy application crashed with this message NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.' Pin
Le@rner17-Jan-18 0:50
Le@rner17-Jan-18 0:50 
hi all

on printing action application get crashed with NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.' message.

please help me for this.

crash log is

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  4

Application Specific Information:
abort() called
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x00007fff83ab3784 __exceptionPreprocess + 180
	1   libobjc.A.dylib                     0x00007fff89814f03 objc_exception_throw + 45
	2   CoreFoundation                      0x00007fff83ab35a7 +[NSException raise:format:arguments:] + 103
	3   CoreFoundation                      0x00007fff83ab3534 +[NSException raise:format:] + 148
	4   AppKit                              0x00007fff879c386e -[NSPrintSpoolingGraphicsContext dealloc] + 37
	5   CoreFoundation                      0x00007fff83a2ff93 __CFArrayReleaseValues + 435
	6   CoreFoundation                      0x00007fff83a0da73 _CFRelease + 179
	7   AppKit                              0x00007fff8746e53d __NSAppKitFinalizeThreadData + 260
	8   libSystem.B.dylib                   0x00007fff8098f751 _pthread_tsd_cleanup + 187
	9   libSystem.B.dylib                   0x00007fff8098f39c _pthread_exit + 147
	10  Foundation                          0x00007fff84f9718f __NSFinalizeThreadData + 0
	11  Foundation                          0x00007fff84f97127 __NSThread__main__ + 1448
	12  libSystem.B.dylib                   0x00007fff8098efd6 _pthread_start + 331
	13  libSystem.B.dylib                   0x00007fff8098ee89 thread_start + 13
)

Thread 4 Crashed:
0   libSystem.B.dylib             	0x00007fff809c89ce __semwait_signal_nocancel + 10
1   libSystem.B.dylib             	0x00007fff809c88d0 nanosleep$NOCANCEL + 129
2   libSystem.B.dylib             	0x00007fff80a253ce usleep$NOCANCEL + 57
3   libSystem.B.dylib             	0x00007fff80a44a00 abort + 93
4   libstdc++.6.dylib             	0x00007fff8a10e5d2 __tcf_0 + 0
5   libobjc.A.dylib               	0x00007fff89818b39 _objc_terminate + 100
6   libstdc++.6.dylib             	0x00007fff8a10cae1 __cxxabiv1::__terminate(void (*)()) + 11
7   libstdc++.6.dylib             	0x00007fff8a10cb16 __cxxabiv1::__unexpected(void (*)()) + 0
8   libstdc++.6.dylib             	0x00007fff8a10cbfc __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
9   libobjc.A.dylib               	0x00007fff89814fa2 object_getIvar + 0
10  com.apple.CoreFoundation      	0x00007fff83ab35a7 +[NSException raise:format:arguments:] + 103
11  com.apple.CoreFoundation      	0x00007fff83ab3534 +[NSException raise:format:] + 148
12  com.apple.AppKit              	0x00007fff879c386e -[NSPrintSpoolingGraphicsContext dealloc] + 37
13  com.apple.CoreFoundation      	0x00007fff83a2ff93 __CFArrayReleaseValues + 435
14  com.apple.CoreFoundation      	0x00007fff83a0da73 _CFRelease + 179
15  com.apple.AppKit              	0x00007fff8746e53d __NSAppKitFinalizeThreadData + 260
16  libSystem.B.dylib             	0x00007fff8098f751 _pthread_tsd_cleanup + 187
17  libSystem.B.dylib             	0x00007fff8098f39c _pthread_exit + 147
18  com.apple.Foundation          	0x00007fff84f9718f __NSFinalizeThreadData + 0
19  com.apple.Foundation          	0x00007fff84f97127 __NSThread__main__ + 1448
20  libSystem.B.dylib             	0x00007fff8098efd6 _pthread_start + 331
21  libSystem.B.dylib             	0x00007fff8098ee89 thread_start + 13

AnswerRe: my application crashed with this message NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.' Pin
Jochen Arndt17-Jan-18 1:07
professionalJochen Arndt17-Jan-18 1:07 
GeneralRe: my application crashed with this message NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.' Pin
Le@rner17-Jan-18 1:40
Le@rner17-Jan-18 1:40 
GeneralRe: my application crashed with this message NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.' Pin
Jochen Arndt17-Jan-18 1:56
professionalJochen Arndt17-Jan-18 1:56 
GeneralRe: my application crashed with this message NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.' Pin
Le@rner30-Jan-18 20:10
Le@rner30-Jan-18 20:10 
QuestionNSImage become blurry after transfromation Pin
Le@rner7-Jul-17 20:27
Le@rner7-Jul-17 20:27 
QuestionNSMutableArray copy problem Pin
Le@rner26-Jun-17 21:19
Le@rner26-Jun-17 21:19 
SuggestionRe: NSMutableArray copy problem Pin
Richard MacCutchan26-Jun-17 23:02
mveRichard MacCutchan26-Jun-17 23:02 
GeneralRe: NSMutableArray copy problem Pin
Le@rner26-Jun-17 23:05
Le@rner26-Jun-17 23:05 
GeneralRe: NSMutableArray copy problem Pin
Richard MacCutchan26-Jun-17 23:14
mveRichard MacCutchan26-Jun-17 23:14 
GeneralRe: NSMutableArray copy problem Pin
gurdevs8013-Jul-17 18:46
gurdevs8013-Jul-17 18:46 
GeneralRe: NSMutableArray copy problem Pin
Richard MacCutchan13-Jul-17 22:20
mveRichard MacCutchan13-Jul-17 22:20 
QuestionHow to access webcam and capture image? Pin
Le@rner6-Jun-17 23:36
Le@rner6-Jun-17 23:36 
AnswerRe: How to access webcam and capture image? Pin
Pete O'Hanlon7-Jun-17 0:19
subeditorPete O'Hanlon7-Jun-17 0:19 
GeneralRe: How to access webcam and capture image? Pin
Le@rner7-Jun-17 0:42
Le@rner7-Jun-17 0:42 
SuggestionRe: How to access webcam and capture image? Pin
Jochen Arndt7-Jun-17 0:49
professionalJochen Arndt7-Jun-17 0:49 
GeneralRe: How to access webcam and capture image? Pin
Le@rner7-Jun-17 1:25
Le@rner7-Jun-17 1:25 
GeneralRe: How to access webcam and capture image? Pin
Jochen Arndt7-Jun-17 1:49
professionalJochen Arndt7-Jun-17 1:49 
Questionhow add control manually in NSBox? Pin
Le@rner15-May-17 20:36
Le@rner15-May-17 20:36 
QuestionCan i use scanline Flood Fill algorithm to apply gradient in UIImage?How to use? Pin
Member 1319561211-May-17 21:09
Member 1319561211-May-17 21:09 
AnswerRe: Can i use scanline Flood Fill algorithm to apply gradient in UIImage?How to use? Pin
Richard MacCutchan11-May-17 21:15
mveRichard MacCutchan11-May-17 21:15 
QuestionCrashing in printing Pin
Le@rner5-Apr-17 1:22
Le@rner5-Apr-17 1:22 
AnswerRe: Crashing in printing Pin
Surya_Narayan10-Apr-17 23:26
professionalSurya_Narayan10-Apr-17 23:26 
GeneralRe: Crashing in printing Pin
Le@rner11-Apr-17 22:19
Le@rner11-Apr-17 22:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.