'Document print status' window doesn't refresh when you cancel a print job

Bug #137984 reported by Peter Maydell
6
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: system-config-printer

This is system-config-printer version 0.7.73+svn1429-0ubuntu1.

In the 'document print status' window, if you take a print job which is in the 'Stopped' state, and right-click and select 'Cancel', the job seems to be cancelled but the list of jobs in the window is not updated (ie the job you've just cancelled is still listed). If you again right-click on it and 'Cancel', you get the error dialog: "CUPS server error There was an error during the CUPS operation: 'client-error-not-possible'.".

If you select Refresh from the document print status window's View menu, the list is updated and the cancelled job (correctly) disappears.

The window should automatically refresh itself when you do some operation like cancel; the user shouldn't have to do this manually.

Revision history for this message
Tim Waugh (twaugh) wrote :

Works fine in Fedora. Wonder if it's to do with this subscriptions fix we apply:

--- cups-1.3b1/scheduler/subscriptions.c.eggcups 2007-07-11 22:46:42.0000
00000 +0100
+++ cups-1.3b1/scheduler/subscriptions.c 2007-07-18 11:34:16.000000000 +0
100
@@ -1292,13 +1292,13 @@
     what = "PrinterAdded";
   else if (event & CUPSD_EVENT_PRINTER_DELETED)
     what = "PrinterRemoved";
- else if (event & CUPSD_EVENT_PRINTER_CHANGED)
- what = "QueueChanged";
   else if (event & CUPSD_EVENT_JOB_CREATED)
     what = "JobQueuedLocal";
   else if ((event & CUPSD_EVENT_JOB_STATE) && job &&
            job->state_value == IPP_JOB_PROCESSING)
     what = "JobStartedLocal";
+ else if (event & (CUPSD_EVENT_PRINTER_CHANGED|CUPSD_EVENT_JOB_STATE_CHANGED|C
UPSD_EVENT_PRINTER_STATE_CHANGED))
+ what = "QueueChanged";
   else
     return;

@@ -1334,7 +1334,7 @@
   dbus_message_append_iter_init(message, &iter);
   if (dest)
     dbus_message_iter_append_string(&iter, dest->name);
- if (job)
+ if (job && strcmp (what, "QueueChanged") != 0)
   {
     dbus_message_iter_append_uint32(&iter, job->id);
     dbus_message_iter_append_string(&iter, job->username);

I hope that a future version of CUPS will include a proper D-Bus notifier; that will make this a lot cleaner.

Changed in system-config-printer:
importance: Undecided → Medium
Revision history for this message
mozgreen (m0z) wrote :

As a linux freshman I would rlike to know how to get my printer to work. See:
http://ubuntuforums.org/showthread.php?t=488147

Revision history for this message
mxyzptlk (mxyzptlk) wrote :

Confirmed on my end. I have two computers stuck in the same loop.

Revision history for this message
Don Cristóbal (doncristobal) wrote : Additional suggestion

a) I confirm the bug. I was also really confused about this when I tried to correctly install my printer.

b) I would suggest to link the menu item "refresh" with both the F5 key and the ctrl-r key combination as these are the most intuitive.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

system-config-printer (0.7.78+svn1771-0ubuntu1) hardy; urgency=low

  * New upstream release
     o Subversion snapshot r1771
     o Added support for setting up queues pointing to Mac OS X printers,
       detected with the dnssd CUPS backend.
     o Allow deleting of remote queues, so that queues pointing to Mac OS X
       printers can get deleted again.
     o Fixed handling of auto-detected IPP queues in the "New printer" wizard.
     o Fixed traceback when creating a raw queue.
     o Fixed "New Printer" notifications after they got broken by the icon
       hiding changes for LP: #151360 and LP: #156816.
     o For C/POSIX locale, show only English PPDs.
     o Include PPD language in driver description (LP: #161037).
     o If there are no jobs but there is a printer warning/error indicated
       by the tray icon, set the icon tooltip to the reason description.
     o In the printer status window fix columns so that the full printer name
       can be seen.
     o Set printer icon in "Connect" dialog.
     o Set AboutDialog logo by icon name, set URL and email hooks, set icon
       (LP: #165101).
     o In the printer status window set Ctrl+R accelerator for Refresh menu
       entry (LP: #137984).

 -- Till Kamppeter <email address hidden> Mon, 03 Dec 2007 21:40:08 +0000

Changed in system-config-printer:
status: New → Fix Released
Revision history for this message
Peter Maydell (pmaydell) wrote :

     o In the printer status window set Ctrl+R accelerator for Refresh menu
       entry (LP: #137984).

That doesn't sound like it's fixed this bug; it's fixed a different bug which somebody mentioned in a comment here. Should this bug really be marked 'fix released' ?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Sorry, I have simply followed the bug numbers in the upstream ChangeLog. reopening ...

Changed in system-config-printer:
status: Fix Released → Confirmed
Revision history for this message
Pelládi Gábor (pelladigabor) wrote :

Bug still present. A non-technical user called me up yesterday, because she can't stop the printer printing. She gets errors trying to cancel the jobs. I sat before the computer, and saw an ugly error when I clicked cancel. I restarted the machine, after that the queue was empty. Now I know this was an overkill, but this bug mislead me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.