Bug 57563

Summary: Kghostview displays only first page of document
Product: [Applications] kghostview Reporter: vkoch
Component: generalAssignee: Wilco Greven <greven>
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: fixes the problem (against 3.1.1a

Description vkoch 2003-04-22 19:07:12 UTC
Version:           0.13.2 (using KDE KDE 3.1.1a)
Installed from:    SuSE RPMs
OS:          Linux

after upgrading to KDE3.1.1a from 3.1.0 Kghostview has problems displaying but the first page of a muliple page p.s. document.
On the sidebar I see all the page number.
Neither clicking on a page number on the side bar,
nor clicking the "next page" icon on the tool bar
nor pressing page-down moves to the next page.

However, if I click on another page number on the side-bar and then click on either "zoom-in" or "Zoom-out" the relevant page is diplayed.

Similar behaviour when embeded in konqueror

No problems before upgrade to 3.1.1a

Problem seems independent of specific ps file. I.e. I tried a large variety of them from different source. Always the sma problem

I used the kde-packeages from the SUSE ftp site
Comment 1 Marin Mitov 2003-04-23 18:24:19 UTC
The same on slackware-9.0. Downgrading to 3.1.1 (from 3.1.1a) shows correct 
Marin Mitov. 
Comment 2 vkoch 2003-04-23 18:35:53 UTC
Well, but I thought the whole idea of 3.1.1a was to fix security bugs which, among 
others, are in kghostview. So downgrading is not the right things to do. 
Hoping for some help from the kde-experts.... 
Comment 3 Mark Davies 2003-04-27 15:41:43 UTC
I see the same thing with 3.1.1a, built from source on NetBSD-current.  Its definitely an issue 
introduced with the security patch. 
Mark Davies 
Comment 4 Luís Pedro Coelho 2003-04-29 15:25:03 UTC
3.1.1a is broken on some systems. On the rush caused by trying to plug the security 
issue, the patch was not tested enough. Also, some older systems (gs versions < 
6.53 or < 7.04 IIRC) are impossible to support since they do not have the necessary 
properties to use in a safe fashion. 
I will attach a patch which fixes this, if you want a simple patch and don't want to 
get all of BRANCH. This patch has already been applied to BRANCH and HEAD so 
that both KDE 3.1.2 and KDE 3.2 will work. A warning for broken gs versions will be 
put in soon as well. 
Comment 5 Luís Pedro Coelho 2003-04-29 15:26:10 UTC
Created attachment 1456 [details]
fixes the problem (against 3.1.1a
Comment 6 Luís Pedro Coelho 2003-04-29 15:30:19 UTC
should be duplicate, not FIXED. 
Comment 7 Luís Pedro Coelho 2003-04-29 15:31:04 UTC

*** This bug has been marked as a duplicate of 57441 ***