Bug 56521 - kghostview crash after wrong setting of intepreter
Summary: kghostview crash after wrong setting of intepreter
Status: RESOLVED FIXED
Alias: None
Product: kghostview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Wilco Greven
URL:
Keywords:
: 49506 53871 57959 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-28 00:26 UTC by Rinse De Vries
Modified: 2003-05-01 16:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rinse De Vries 2003-03-28 00:26:18 UTC
Version:           0.13.2 (using KDE 3.1.0)
Installed from:    SuSE
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19-4GB

Hi,
Try this:

Go to the settings in kghostview, and change the path to the intepreter (/usr/bin/gs) in to something completely wrong (e.g. /usr/bin/whois). 

Then start an KDE application, hit the print button and choose the option of a print preview. 

Kghostview is started, but shows an empty preview, with a busy cursor. When kghostview is closed, the kde application from where we tried to print the preview crashes.

Same with kghostview itself, when opening a ps-file kghostview shows an empty page, with a busy cursor, and crashes when closing the application.

Kind regards, Rinse
Comment 1 Luís Pedro Coelho 2003-04-09 00:06:14 UTC
*** Bug 53871 has been marked as a duplicate of this bug. ***
Comment 2 Luís Pedro Coelho 2003-04-09 00:21:33 UTC
*** Bug 49506 has been marked as a duplicate of this bug. ***
Comment 3 Luís Pedro Coelho 2003-04-09 16:53:54 UTC
Subject: kdegraphics/kghostview

CVS commit by luis_pedro: 

Whenever gs dies unexpected, pop-up a message telling the user about it.

This also shows the error messages which have come from gs.

CCMAIL: 56521@bugs.kde.org


  M +20 -0     kgv_view.cpp   1.121
  M +1 -0      kgv_view.h   1.61
  M +5 -2      kpswidget.cpp   1.110
  M +5 -0      kpswidget.h   1.65
  M +14 -3     logwindow.cpp   1.3
  M +4 -1      logwindow.h   1.3



Comment 4 Luís Pedro Coelho 2003-04-16 01:05:43 UTC
In HEAD right now you get a dialog message when gs fails with a link to configure 
ghostscript, so I think this problem can be considered fixed. 
 
I wondered whether to just redo the automatic reconfiguration whenever there is a 
failure, but I don't like those things. There is a way to directly go to the configuration 
menu and then a button. This is better, I think, respect the users right to do things 
wrong while giving them a clear way for the app to try and help. 
Comment 5 Luís Pedro Coelho 2003-05-01 16:28:40 UTC
*** Bug 57959 has been marked as a duplicate of this bug. ***