Bug 37255 - ghostscript 6.51 bug(?) eats part of graphics at certain zoom levels with default config of kghostview
Summary: ghostscript 6.51 bug(?) eats part of graphics at certain zoom levels with def...
Status: RESOLVED FIXED
Alias: None
Product: kghostview
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: Wilco Greven
URL:
Keywords:
: 37287 46729 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-18 02:18 UTC by Georg Robbers
Modified: 2003-04-09 00:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
test case (472.71 KB, application/octet-stream)
2003-04-06 17:43 UTC, Luís Pedro Coelho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Robbers 2002-01-18 02:07:26 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kghostview
Version:           KDE 2.9.1 CVS/CVSup/Snapshot
Severity:          normal
Installed from:    Compiled sources
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

I have a ps file with images in it. With anti-alias on and the default gs parameters at various zoom level various parts of the image are not displayed. This happens with gs 6.51 when it's called with -sDEVICE=x11 AND -dMaxBitmap=10000000. Solution: default either to -DEVICE=x11alpha (as (my) gv does) or remove the -dMaxBitmap=10000000 in the default. If you wanna take a peak at the file please mail me.

(Submitted via bugs.kde.org)
Comment 1 Georg Robbers 2002-01-18 17:15:53 UTC
further testing showed that it is easy to for example print preview a file 
in kword with the same result as in #33395 (some parts are missing).
Same 'bug' same fix.
Comment 2 Wilco Greven 2002-01-19 00:08:19 UTC
On Friday 18 January 2002 03:07 you wrote:
> Package: kghostview
> Version: KDE 2.9.1 CVS/CVSup/Snapshot
> Severity: normal
> Installed from:    Compiled sources
> Compiler:          Not Specified
> OS:                Linux
> OS/Compiler notes: Not Specified
>
> I have a ps file with images in it. With anti-alias on and the default gs
> parameters at various zoom level various parts of the image are not
> displayed. This happens with gs 6.51 when it's called with -sDEVICE=3Dx11=
 AND
> -dMaxBitmap=3D10000000. Solution: default either to -DEVICE=3Dx11alpha (a=
s (my)
> gv does) or remove the -dMaxBitmap=3D10000000 in the default. If you wan=
na
> take a peak at the file please mail me.

First of all thanks for the analysis of the bug. It's is a pity that this=
=20
happens since the x11 driver usually gives better results than the x11alph=
a=20
driver. Maybe I can adjust MaxBitmap a bit although making at too small=20
slows down Ghostscript considerably. Could you send me the file so I can s=
ee=20
if newer ghostscript versions also have this problem.

Greetings
Wilco
Comment 3 Martin Koller 2003-02-27 13:21:20 UTC
http://partner.advantech.com.tw/epartner/Files/Temp/PCM-5820_DS-19.pdf 
 
With this file also some images are not displayed (using KDE 3.1 using gs 6.52 on 
Linux RedHat 7.2 with Qt 3.1.1) when changing the zoom factor. 
Some times you see the images, some times not, and sometimes kghostview crashes 
when zooming. 
Comment 4 Luís Pedro Coelho 2003-03-14 12:54:35 UTC
This is really a bug in gs 6.5x. I don't remember the details of all of this, but it has 
been fixed in gs 7.05. I myself have PDF documents which were unviewable before 
upgrading gs. 
 
Considering the still large marketshare of gs 6.5x maybe kghostview should cater for 
it, so I will leave the bug open, but marked down in severity. 
Comment 5 Luís Pedro Coelho 2003-04-06 17:40:12 UTC
*** Bug 37287 has been marked as a duplicate of this bug. ***
Comment 6 Luís Pedro Coelho 2003-04-06 17:43:56 UTC
Created attachment 1312 [details]
test case

This file shows works in gs 7.05 always and fails with gs 6.5x for certain
values of MaxBitmap. This comes from bug 37287.
Comment 7 Luís Pedro Coelho 2003-04-08 14:15:39 UTC
Subject: kdegraphics/kghostview

CVS commit by luis_pedro: 

gs 6.5x doesn't work with -dMaxBitmap=... so we detect it and remove that option if we have a broken gs.
Note that this might make postscript rendering slower or take an awful lot of memory, but it is better no optimization than one which breaks on certain files.

CCMAIL:37255-done@bugs.kde.org


  M +49 -17    kgvconfigdialog.cpp   1.18



Comment 8 Luís Pedro Coelho 2003-04-09 00:44:44 UTC
*** Bug 46729 has been marked as a duplicate of this bug. ***