[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 70358] No print preview - error
From:       Stephan Matthiesen <stephan () met ! ed ! ac ! uk>
Date:       2004-01-06 14:03:43
Message-ID: 20040106140343.241.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=70358      




------- Additional Comments From stephan@met.ed.ac.uk  2004-01-06 15:03 -------
Hi Michael,

thanks for your help. I'm not sure I understand your questions exactly. Sorry if I \
repeat what you already know...

> Looking at your initial bug report, the "weird" output is also
> there when you simply print with no preview.

I don't think so. The first line in the output (the ypcat thing) came from something \
different (some wrong setting in the DNS system?), that doesn't come up any more. \
Without preview I do not get any error or weird output, only with preview.

Here is the situation now: I just tried again, same procedure in the initial report. \
I started konqueror from command line, called www.google.com and tried to print, \
making sure that no filters are set in the print dialogue

Situation 1.: Direct printing, no preview: Page comes out of the printer perfectly \
fine, no error message at all on the command line (even the "Wrote 1 page" is not \
there - that might have been some filter).

Situation 2: with preview, all other settings as in situation 1. Again the error box \
with  Öffnen nicht möglich (= cannot open)
/tmp/kde-stephan/kdeprint_XigKGTQM
then the empty preview window, and on the command line the following output:

[stephan@Godzilla-PC stephan]$ konqueror
parsing started
size is 4
parsing finished
command to execute is (gs -q -dBATCH -dNOPAUSE -dSAFER -dNODISPLAY ps2ai.ps \
'/tmp/kde-stephan/kdeprint_XigKGTQM' | sed -e "s/%%BoundingBox: 0 0 612 \
792/%%BoundingBox: 0 0 595 842/g" > '/tmp/kde-stephan/konquerorsxjqVb.tmp') unknown \
operator: Adobe_packedarray pushing Adobe_packedarray to stack
etc. etc.
---
So, this program is only called for preview, and fails. The file \
                /tmp/kde-stephan/kdeprint_XigKGTQM exists and I can open it with \
                Kghostview, but 
/tmp/kde-stephan/konquerorsxjqVb.tmp (the output from the gs command) does not exist. \
But I can produce the .tmp file by copying the gs command to the command line. But \
the resulting file crashes kghostview (see previous report).

I see two points here:
1. For the preview kghostview tries to call ghostscript, and this fails, although the \
command works from the command line.

2. When executing the gs command from the command line, the result is not readable.

So perhaps it is a problem with my ghostscript? But I'm using the standard Fedora \
ghostscript: [stephan@Godzilla-PC stephan]$ rpm -qa | grep ghostscript
ghostscript-7.07-11
ghostscript-fonts-5.50-9

Perhaps you can try the following: 
I attach the files kdeprint_ZT9iPZLW and konquerorX2jmkc.tmp
I produced the second one by calling
gs -q -dBATCH -dNOPAUSE -dSAFER -dNODISPLAY ps2ai.ps 'kdeprint_ZT9iPZLW' | sed -e \
"s/%%BoundingBox: 0 0 612 792/%%BoundingBox: 0 0 595 842/g" > 'konquerorX2jmkc.tmp' \
This file is not readable (kghostview crashes) Perhaps you can try the same and see \
if you get something reasonable. If it works for you, then the problem might be my \
ghostscript.

Just to make sure that it is not a konqueror thing: I just tried with kedit. the \
command line output is:

[stephan@Godzilla-PC stephan]$ kedit test
parsing started
size is 4
parsing finished
command to execute is (gs -q -dBATCH -dNOPAUSE -dSAFER -dNODISPLAY ps2ai.ps '/tm
p/kde-stephan/kdeprint_kKG8tfCu' | sed -e "s/%%BoundingBox: 0 0 612 792/%%Boundi
ngBox: 0 0 595 841/g" > '/tmp/kde-stephan/kedit8JycFb.tmp')
unknown operator: Adobe_packedarray
pushing Adobe_packedarray to stack
...
unknown operator: TO
pushing TO to stack
before save document
after save document
QObject::connect: Cannot connect KStatusBarLabel::itemPressed(int) to (null)::pr      \
essed(int) QObject::connect: Cannot connect KStatusBarLabel::itemReleased(int) to \
                (null)::r           eleased(int)
ASSERT: "sb" in koView.cc (420)
QObject::connect: Cannot connect KStatusBarLabel::itemPressed(int) to (null)::pr      \
essed(int) QObject::connect: Cannot connect KStatusBarLabel::itemReleased(int) to \
                (null)::r           eleased(int)
ASSERT: "sb" in koView.cc (420)
[stephan@Godzilla-PC stephan]$

And kedit crashes, with the KDE crashmanager coming up (no preview window at all, not \
even an empty one).

Cheers
Stephan


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic