severity 685805 normal
reassign 685805 gtk+2.0
affects 685805 icedove
tags 685805 +patch
thanks

On Fri, Aug 24, 2012 at 07:32:55PM +0200, Daniel Pocock wrote:
> Package: icedove
> Version: 10.0.5-1
> Severity: important
> 
> I noticed this bug in icedove on wheezy.
> 
> I can print from some other applications, but not from icedove.
> 
> When I try to print an email from icedove, the job is stuck in the CUPS
> queue
> 
> When I check the cups log, I find the following:
> 
> 
> D [21/Aug/2012:13:51:03 +0200] [Job 1427] argv[5]="InputSlot=Auto
> Duplex=None MediaType=Plain PageSize=Custom.Custom.595.28x841.89
> OutputMode=Normal number-up=1
> job-uuid=urn:uuid:dd67d061-cb1a-3c67-7664-a5aa9aac063d
> job-originating-host-name=localhost time-at-creation=1345549863
> time-at-processing=1345549863"
> 
> 
> 
> D [21/Aug/2012:13:51:03 +0200] [Job 1427] Ghostscript command line:
> /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE
> -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sMediaType=Plain
> -sOutputType=0 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=0
> -dDEVICEHEIGHTPOINTS=0 -dcupsBitsPerColor=1 -dcupsColorOrder=0
> -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2
> -scupsPageSizeName=Custom -I/usr/share/cups/fonts -c -f -_
> 
> 
> 
> D [21/Aug/2012:13:51:03 +0200] [Job 1427] Unrecoverable error:
> rangecheck in setpagedevice
> D [21/Aug/2012:13:51:03 +0200] [Job 1427] Operand stack:
> D [21/Aug/2012:13:51:03 +0200] [Job 1427] true  --nostringval--
> --nostringval--  --nostringval--  --nostringval--  --nostringval--
> --nostringval--  --nostringval--  --nostringval--  true  --nostringval--
>  .LockSafetyParams  true  %MediaSource  0  %MediaDestination  0
> LeadingEdge  0  --nostringval--  --nostringval--  --nostringval--  0
> --nostringval--  false  --nostringval--
> I [21/Aug/2012:13:51:03 +0200] [Job 1427] Rendering completed
> D [21/Aug/2012:13:51:03 +0200] [Job 1427] Set job-printer-state-message
> to "Rendering completed", current level=INFO
> D [21/Aug/2012:13:51:03 +0200] Discarding unused job-progress event...
> D [21/Aug/2012:13:51:03 +0200] Discarding unused printer-state-changed
> event...
> D [21/Aug/2012:13:51:03 +0200] [Job 1427] prnt/hpcups/HPCupsFilter.cpp
> 536: cupsRasterOpen failed, fd = 0
> D [21/Aug/2012:13:51:03 +0200] PID 13137
> (/usr/lib/cups/filter/gstoraster) exited with no errors.
> D [21/Aug/2012:13:51:03 +0200] PID 13138 (/usr/lib/cups/filter/hpcups)
> stopped with status 1.
> 
> 
> E [21/Aug/2012:13:51:03 +0200] [Job 1427] Job stopped due to filter
> errors; please consult the error_log file for details.
> 
> 
> 
> Notice the following in particular:
> 
>    PageSize=Custom.Custom.595.28x841.89
> 
> 
> It appears likely to be related to this bug:
> 
>   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674500

Indeed. Reassigned to gtk+2.0. Since this affects quit some people it'd
be nice to have this in Wheezy. Patch attached. The patch is
cherry-picked from upstream but got applied after 2.24.14 currently in
experimental so it affects wheezy/sid/experimental.
Cheers,
 -- Guido
>From 0fb412a7a31b439192f2b6de16c34c1de4a23f21 Mon Sep 17 00:00:00 2001
Message-Id: <0fb412a7a31b439192f2b6de16c34c1de4a23f21.1357934121.git....@sigxcpu.org>
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <a...@sigxcpu.org>
Date: Fri, 11 Jan 2013 18:03:26 +0100
Subject: [PATCH] Fix printing problem with custom pagesizes

Closes: #685805
---
 debian/patches/045_bz_224615.patch |   26 ++++++++++++++++++++++++++
 debian/patches/series              |    1 +
 2 files changed, 27 insertions(+)
 create mode 100644 debian/patches/045_bz_224615.patch

diff --git a/debian/patches/045_bz_224615.patch b/debian/patches/045_bz_224615.patch
new file mode 100644
index 0000000..b2e6924
--- /dev/null
+++ b/debian/patches/045_bz_224615.patch
@@ -0,0 +1,26 @@
+From 54473ec794fbe013773ce3590e5959c2ec3ba88e Mon Sep 17 00:00:00 2001
+From: Marek Kasik <mka...@redhat.com>
+Date: Tue, 18 Sep 2012 14:18:15 +0200
+Subject: [PATCH] printing: Add "Custom." prefix only once to paper size
+
+Check whether "Custom." prefix is already present in the name
+of selected paper size. (#679883)
+---
+ modules/printbackends/cups/gtkprintbackendcups.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
+index c7ee014..2a60103 100644
+--- a/modules/printbackends/cups/gtkprintbackendcups.c
++++ b/modules/printbackends/cups/gtkprintbackendcups.c
+@@ -558,8 +558,8 @@ add_cups_options (const gchar *key,
+         }
+     }
+ 
+-  /* Add "Custom." prefix to custom values. */
+-  if (custom_value)
++  /* Add "Custom." prefix to custom values if not already added. */
++  if (custom_value && !g_str_has_prefix (value, "Custom."))
+     {
+       new_value = g_strdup_printf ("Custom.%s", value);
+       gtk_cups_request_encode_option (request, key, new_value);
diff --git a/debian/patches/series b/debian/patches/series
index 9858c44..1e2a852 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,6 +9,7 @@
 041_ia32-libs.patch
 042_treeview_single-focus.patch
 044_tracker_fts.patch
+045_bz_224615.patch
 060_ignore-random-icons.patch
 061_use_pdf_as_default_printing_standard.patch
 065_gir_set_packages.patch
-- 
1.7.10.4

Reply via email to