[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing not working at all...
From: |
Riccardo Mottola |
Subject: |
Re: Printing not working at all... |
Date: |
Fri, 15 Jul 2016 15:42:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; NetBSD amd64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
Hi,
Fred Kiefer wrote:
the first thing I notice from your stack trace is that the line numbers are
missing. That way I cannot tell which exception gets thrown. Most likely the
PPD file is missing or corrupt. If the file is actually missing, you should try
to select a different default printer. If there aren't any PPD files at all, as
you wrote, you need to find out why that is the case.
Since I have no real printer set up, I guess we are using the dummy
generic printer, which is the GS default installed in the standard place
(I checked against other systems)
I have now a stacktrace with line-numbers:
Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 1]
0x00007096dc433d7b in NSCountFrames () from
/System/Library/Libraries/libgnustep-base.so.1.24.9
(gdb) bt
#0 0x00007096dc433d7b in NSCountFrames () from
/System/Library/Libraries/libgnustep-base.so.1.24.9
#1 0x00007096dc43ff7d in GSPrivateStackAddresses () from
/System/Library/Libraries/libgnustep-base.so.1.24.9
#2 0x00007096dc45a46d in -[GSStackTrace init] () from
/System/Library/Libraries/libgnustep-base.so.1.24.9
#3 0x00007096dc4b19a9 in +[NSObject new] () from
/System/Library/Libraries/libgnustep-base.so.1.24.9
#4 0x00007096dc45b2bb in -[NSException raise] () from
/System/Library/Libraries/libgnustep-base.so.1.24.9
#5 0x00007096dc45a9af in +[NSException raise:format:arguments:] () from
/System/Library/Libraries/libgnustep-base.so.1.24.9
#6 0x00007096dc45a8ed in +[NSException raise:format:] () from
/System/Library/Libraries/libgnustep-base.so.1.24.9
#7 0x00007096dcf26287 in -[NSPrinter(PPDParsingPrivate)
loadPPDAtPath:symbolValues:inclusionSet:] (self=0x7096d8b295d0,
_cmd=0x7096dd3d7620 <_OBJC_SELECTOR_TABLE+960>,
ppdPath=0x7096dcbd6b90, ppdSymbolValues=0x7096d8b2d770,
inclusionSet=0x7096d8b2d7d0)
at NSPrinter.m:917
#8 0x00007096dcf25e1b in -[NSPrinter(PPDParsing) parsePPDAtPath:]
(self=0x7096d8b295d0, _cmd=0x7096c9a07350 <_OBJC_SELECTOR_TABLE+144>,
ppdPath=0x7096dcbd6b90) at NSPrinter.m:790
#9 0x00007096c9804453 in +[GSLPRPrinter printerWithName:]
(self=0x7096c9a07240 <_OBJC_Class_GSLPRPrinter>,
_cmd=0x7096dd3d7380 <_OBJC_SELECTOR_TABLE+288>,
name=0x7096dc150470) at GSLPRPrinter.m:100
#10 0x00007096dcf23ea1 in +[NSPrinter printerWithName:]
(self=0x7096dd3d71e0 <_OBJC_Class_NSPrinter>,
_cmd=0x7096c9a05e30 <_OBJC_SELECTOR_TABLE+112>,
name=0x7096dc150470) at NSPrinter.m:191
#11 0x00007096c9803459 in +[GSLPRPrintInfo defaultPrinter]
(self=0x7096c9a05d40 <_OBJC_Class_GSLPRPrintInfo>,
_cmd=0x7096dd3d8ad0 <_OBJC_SELECTOR_TABLE+176>) at GSLPRPrintInfo.m:83
#12 0x00007096dcf286be in +[NSPrintInfo defaultPrinter]
(self=0x7096dd3d89a0 <_OBJC_Class_NSPrintInfo>,
_cmd=0x7096dd3d8ad0 <_OBJC_SELECTOR_TABLE+176>) at NSPrintInfo.m:121
#13 0x00007096dcf28920 in -[NSPrintInfo initWithDictionary:]
(self=0x7096da7cb230, _cmd=0x7096dd3d8ac0 <_OBJC_SELECTOR_TABLE+160>,
aDict=0x0)
at NSPrintInfo.m:161
#14 0x00007096dcf28571 in +[NSPrintInfo sharedPrintInfo]
(self=0x7096dd3d89a0 <_OBJC_Class_NSPrintInfo>,
_cmd=0x7096dd376b70 <_OBJC_SELECTOR_TABLE+2576>) at NSPrintInfo.m:96
#15 0x00007096dce908ea in -[NSDocument printInfo] (self=0x7096d8728ec0,
_cmd=0x608a30 <_OBJC_SELECTOR_TABLE+1776>) at NSDocument.m:1333
#16 0x0000000000402a79 in -[Document printShowingPrintPanel:] ()
#17 0x00007096dce90e71 in -[NSDocument
printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]
(self=0x7096d8728ec0,
_cmd=0x7096dd376c60 <_OBJC_SELECTOR_TABLE+2816>,
settings=0x7096d8b2c1b0, flag=1 '\001', delegate=0x0, sel=0x0, context=0x0)
at NSDocument.m:1441
#18 0x00007096dce90d98 in -[NSDocument printDocument:]
(self=0x7096d8728ec0, _cmd=0x7096dd4373b0 <_OBJC_SELECTOR_TABLE+1680>,
sender=0x7096db1ac2f0)
at NSDocument.m:1426
#19 0x00007096dce0f70e in -[NSApplication sendAction:to:from:]
(self=0x7096dcb6f500, _cmd=0x7096dd3b3860 <_OBJC_SELECTOR_TABLE+2720>,
aSelector=0x7096dd4373b0 <_OBJC_SELECTOR_TABLE+1680>, aTarget=0x0,
sender=0x7096db1ac2f0) at NSApplication.m:2249
#20 0x00007096dcef3320 in -[NSMenu performActionForItemAtIndex:]
(self=0x7096db965280, _cmd=0x7096dd3b8220 <_OBJC_SELECTOR_TABLE+3712>,
index=5)
at NSMenu.m:1330
#21 0x00007096dcefe0d3 in -[NSMenuView
_trackWithEvent:startingMenuView:] (self=0x7096dbdbf790,
_cmd=0x7096dd3b8310 <_OBJC_SELECTOR_TABLE+3952>,
event=0x7096dd56fd40, mainWindowMenuView=0x0) at NSMenuView.m:1916
#22 0x00007096dcefe315 in -[NSMenuView trackWithEvent:]
(self=0x7096dbdbf790, _cmd=0x7096dd3b8400 <_OBJC_SELECTOR_TABLE+4192>,
event=0x7096db965d30)
at NSMenuView.m:1952
#23 0x00007096dcefe55d in -[NSMenuView mouseDown:] (self=0x7096dbdbf790,
_cmd=0x7096dd44f380 <_OBJC_SELECTOR_TABLE+7040>, theEvent=0x7096db965d30)
at NSMenuView.m:1994
#24 0x00007096dcfef538 in -[NSWindow sendEvent:] (self=0x7096dd52b410,
_cmd=0x7096dd32de80 <_OBJC_SELECTOR_TABLE+4864>, theEvent=0x7096db965d30)
at NSWindow.m:3924
#25 0x00007096dce0f214 in -[NSApplication sendEvent:]
(self=0x7096dcb6f500, _cmd=0x7096dd32dcf0 <_OBJC_SELECTOR_TABLE+4464>,
theEvent=0x7096db965d30) at NSApplication.m:2124
#26 0x00007096dce0d97d in -[NSApplication run] (self=0x7096dcb6f500,
_cmd=0x7096dd31c8d0 <_OBJC_SELECTOR_TABLE+1808>) at NSApplication.m:1562
#27 0x00007096dcdeb621 in NSApplicationMain (argc=1,
argv=0x7f7fffa268e8) at Functions.m:91
It is not nice to crash when printing out an exception!
We have a nice hint from the code though:
912 ppdString = [NSString stringWithContentsOfFile: ppdPath];
913 if (nil == ppdString)
914 {
915 // The file isn't readable
916 [NSException raise: NSPPDParseException
917 format: @"PPD file '%@' isn't readable", ppdPath];
918 }
(gdb) po ppdPath
/Local/Library/PostScript/PPD/English.lproj/Generic-PostScript_Printer-Postscript.ppd
why... Local ? gnustep-base is installed in /System!
in fact:
disc$ head -3
/Local/Library/PostScript/PPD/English.lproj/Generic-PostScript_Printer-Postscript.ppd
head:
/Local/Library/PostScript/PPD/English.lproj/Generic-PostScript_Printer-Postscript.ppd:
No such file or directory
disc$ head -3
/System/Library/PostScript/PPD/English.lproj/Generic-PostScript_Printer-Postscript.ppd
*PPD-Adobe: "4.3"
*%
*% For information on using this, and to obtain the required backend
So the issue appears that the wrong domain is looked for ?
Furthermore the exception makes a SIGSEV which isn't nice either.
Richard, do you have a clue why we crash inside NSCountFrames() when
allocating the exception??
Riccardo
- Printing not working at all..., Gregory Casamento, 2016/07/13
- Re: Printing not working at all..., Riccardo Mottola, 2016/07/13
- Re: Printing not working at all..., Fred Kiefer, 2016/07/13
- Re: Printing not working at all..., Riccardo Mottola, 2016/07/14
- Re: Printing not working at all...,
Riccardo Mottola <=
- Re: Printing not working at all..., Richard Frith-Macdonald, 2016/07/15
- Re: Printing not working at all..., Riccardo Mottola, 2016/07/15
- Re: Printing not working at all..., Richard Frith-Macdonald, 2016/07/15
- Re: Printing not working at all..., Fred Kiefer, 2016/07/15
- Re: Printing not working at all..., Gregory Casamento, 2016/07/15
- Re: Printing not working at all..., Gregory Casamento, 2016/07/16
- Re: Printing not working at all..., Gregory Casamento, 2016/07/16
- Re: Printing not working at all..., Fred Kiefer, 2016/07/17
- Re: Printing not working at all..., Gregory Casamento, 2016/07/17
- Re: Printing not working at all..., Gregory Casamento, 2016/07/17