Bug 65408 - kprinter crashes when trying to convert a high resolution image to a pdf file
Summary: kprinter crashes when trying to convert a high resolution image to a pdf file
Status: CLOSED FIXED
Alias: None
Product: kdeprint
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Michael Goffioul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-02 23:57 UTC by Stefan Schwetschke
Modified: 2008-12-31 13:18 UTC (History)
1 user (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 Stefan Schwetschke 2003-10-02 23:57:54 UTC
Version:           Unbekannt (using KDE 3.1.4)
Installed from:     (testing/unstable)
Compiler:          gcc version 3.3.2 20030908 (Debian prerelease)
OS:          Linux (i686) release 2.4.21-5-k7

When trying to print a scanned image (a4, 300dpi, color, jpeg, scanned with kooka) to a pdf file, kprinter crashes. Perhaps an automatic downscaling could solve this.
Comment 1 Thiago Macieira 2003-10-03 00:12:36 UTC
Can you provide a backtrace? One with debugging symbols would be preferred. 
Comment 2 Michael Goffioul 2004-02-26 08:39:11 UTC
Does this problem still exist?
Comment 3 Stefan Schwetschke 2004-02-26 13:13:11 UTC
Am Donnerstag, 26. Februar 2004 08:39 schrieben Sie:
> ------- Additional Comments From goffioul imec be  2004-02-26 08:39 -------
> Does this problem still exist?

No. Now it produces a 0 Byte PDF, but does not crash anymore. I tried this 
with KDE 3.1.5 (3.2 is still not in Debian Sid).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAPeLNTCeCnCU9zTsRAhS9AKDrTHykTzuDORJQCIBrAmPibBL2hQCfQTEu
VDdhIsFyCs34v8QrbdoRl/E=
=dTc/
-----END PGP SIGNATURE-----

Comment 4 Michael Goffioul 2004-02-26 13:52:11 UTC
Basically, when printing to a PDF file, kdeprint does almost nothing:
- the app generates PS print data
- kdeprint calls "gs" to convert it to PDF
- result is stored at wanted location
What you can try is to print your scanned image from the app you're using to a PS file. Then try to convert this file to PDF using the command-line tool "ps2pdf" (this emulates what kdeprint is doing). Do you get the same result (0 byte file)?
Comment 5 Stefan Schwetschke 2004-02-26 15:15:41 UTC
Am Donnerstag, 26. Februar 2004 13:52 schrieben Sie:
> nothing: - the app generates PS print data
> - kdeprint calls "gs" to convert it to PDF
> - result is stored at wanted location
> What you can try is to print your scanned image from the app you're using
> to a PS file. Then try to convert this file to PDF using the command-line
> tool "ps2pdf" (this emulates what kdeprint is doing). Do you get the same
> result (0 byte file)?

Sorry, I didn't look carefully enough. The prinitng dialog was already closed, 
the file had a size of 0 byte. Now I checked with "lsof". It showed that the 
file was still open. And just 15 minutes later, the pdf was completely 
written.

I think the problem is solved, just the user interaction is a little 
strange :)

Thanks,
  Stefan Schwetschke
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAPf+HTCeCnCU9zTsRAsBCAJ9fIQ4O3+5KQB5WLPjbwCYE0a2SswCfQCD6
+IqsaiR+IUF/DVW41XLsTas=
=fMHn
-----END PGP SIGNATURE-----

Comment 6 Michael Goffioul 2004-02-26 15:53:30 UTC
That's because the job viewer doesn't handle pseudo-printers (like printing to PDF), so there's no possibility for a user to see the print job status. Usually, this is not a problem because execution is very quick and the user doesn't notice anything. In your case, the PDF conversion is *very* long, but you don't have any mean to know the PDF conversion is still ongoing (except with "ps"). Let's turn this into a wishlist.
Comment 7 John Layt 2008-12-31 13:18:27 UTC
Closing old Resolved status bug.