discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

invalid printinfo data, NetBSD


From: Riccardo Mottola
Subject: invalid printinfo data, NetBSD
Date: Sun, 01 Jan 2012 19:18:37 +0100
User-agent: Mozilla/5.0 (X11; NetBSD i386; rv:8.0) Gecko/20111219 Thunderbird/8.0

Hi,

I did some tracing about the problem that I get invalid X/Y sizes.

Breakpoint 3, -[NSScanner initWithString:] (self=0xba01e644, _cmd=0xbb74cd90,
    aString=0x0) at NSScanner.m:199
199           NSLog(@"Scanner initialised with nil string");
(gdb) bt
#0  -[NSScanner initWithString:] (self=0xba01e644, _cmd=0xbb74cd90,
    aString=0x0) at NSScanner.m:199
#1  0xbb5024e6 in +[NSScanner scannerWithString:] (self=0xbb74cd20,
    _cmd=0xbbb63228, aString=0x0) at NSScanner.m:156
#2 0xbb9457cd in -[NSPrinter(PPDParsingPrivate) loadPPDAtPath:symbolValues:inclusionSet:] (self=0xba1f6944, _cmd=0xbbb63340, ppdPath=0xbac7e634,
    ppdSymbolValues=0xba01e5e4, inclusionSet=0xba01e614) at NSPrinter.m:917
#3  0xbb945164 in -[NSPrinter(PPDParsing) parsePPDAtPath:] (self=0xba1f6944,
    _cmd=0xba2465c8, ppdPath=0xbac7e634) at NSPrinter.m:790
#4  0xba243f78 in +[GSLPRPrinter printerWithName:] (self=0xba246540,
    _cmd=0xbbb631f0, name=0xba924b64) at GSLPRPrinter.m:100
#5  0xbb944bc4 in +[NSPrinter printerWithName:] (self=0xbbb63120,
    _cmd=0xba245878, name=0xba924b64) at NSPrinter.m:191
#6  0xba242e15 in +[GSLPRPrintInfo defaultPrinter] (self=0xba245800,
    _cmd=0xbbb64278) at GSLPRPrintInfo.m:83
#7  0xbb949cff in +[NSPrintInfo defaultPrinter] (self=0xbbb641e0,
    _cmd=0xbbb64278) at NSPrintInfo.m:121
#8  0xbb94827d in -[NSPrintInfo initWithDictionary:] (self=0xba0fff64,

the reason of the warning is quickly found:
(gdb) up
#2 0xbb9457cd in -[NSPrinter(PPDParsingPrivate) loadPPDAtPath:symbolValues:inclusionSet:] (self=0xba1f6944, _cmd=0xbbb63340, ppdPath=0xbac7e634,
    ppdSymbolValues=0xba01e5e4, inclusionSet=0xba01e614) at NSPrinter.m:917
917 [ppdString stringByAppendingString: @"\n"]];
(gdb) p ppdString
$1 = (struct NSString *) 0x0

the file is:
(gdb) po ppdPath
/Local/Library/PostScript/PPD/English.lproj/Generic-PostScript_Printer-Postscript.ppd

The file is just not there, I have no "PostScript" subdirectory in /Local/Library

I have it in /System/Library

(gdb) po printerEntry
{Host = localhost; Note = "Automatically Generated"; PPDPath = "/Local/Library/PostScript/PPD/English.lproj/Generic-PostScript_Printer-Postscript.ppd"; Type = Unknown; }

the name of the printer looked for is "Unnamed". But that shouldn't matter, this is a Local vs. System problem. Where is it initialized/set, so I can investigate it?

Riccardo

--
---
GNUstep maintainer and Application developer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]