Bug 51583 - Printing fails
Summary: Printing fails
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.5.4 release
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-30 03:10 UTC by Jürgen Obermeyer
Modified: 2013-12-05 16:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Bugtrace (17.83 KB, text/x-log)
2012-07-06 01:30 UTC, Jürgen Obermeyer
Details
LibreOffice - Screenshot (129.30 KB, image/png)
2012-09-14 14:31 UTC, Jürgen Obermeyer
Details
Cups - Screenshot (7.03 KB, image/png)
2012-09-14 14:32 UTC, Jürgen Obermeyer
Details
Cups error log file (62.78 KB, text/plain)
2012-09-19 07:22 UTC, Jürgen Obermeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jürgen Obermeyer 2012-06-30 03:10:32 UTC
I'm not able to print any document from LibreOffice on my Cups printers (other applications are printing fine). Printing a test page with 'spadmin' ends with a segmentation fault.

The error message is: "spadmin.bin crashed with SIGSEGV in g_object_newv()"
Comment 1 Julien Nabet 2012-06-30 14:17:41 UTC
What Linux distribution and version do you use ?

Would it be possible you retrieve a useful backtrace (see http://wiki.documentfoundation.org/BugReport#How_to_get_backtrace_.28on_Linux.29) ?
Comment 2 Julien Nabet 2012-07-03 12:58:13 UTC
Here are more information Jürgen gave me by mails :
- uninstall/reinstall with last version
- new LO profile
- printing works on gedit, firefox, thunderbird, evince, ...

(Put back "unconfirmed")
Comment 3 Jürgen Obermeyer 2012-07-06 01:29:28 UTC
I tried to attach a bugtrace - but it seems that gdb crashed while debugging ... let's see if the report is helpful.
Comment 4 Jürgen Obermeyer 2012-07-06 01:30:07 UTC
Created attachment 63880 [details]
Bugtrace
Comment 5 Julien Nabet 2012-09-13 09:42:24 UTC
I put it at new since there's a stacktrace.

Michael: do you know who may help in vcl and gtk parts?
Comment 6 Michael Meeks 2012-09-13 11:19:05 UTC
Using un-supported gtk3 backend, and only vaguely loved padmin (which is soon for the chop I think).

It shouldn't crash of course, but gtk3 is -very- experimental; not such an interesting bug without a patch :-)
Comment 7 Jürgen Obermeyer 2012-09-13 14:54:21 UTC
After updating to version 3.5.4, the problem is still unsolved. Print jobs from LibreOffice arriving at the cups server have a size of 0 KB. Printing fails only with LibreOffice, all other applications are printing fine.
Comment 8 Michael Meeks 2012-09-14 11:07:05 UTC
So - please never use spadmin :-) it's not going to help you at all - and is highly unsupported.

So  - can you confirm you load libreoffice writer; type "Hello World" try to print to a printer, and nothing comes out ?

Can you confirm that you are working from a clean profile, and have not touched spadmin in between ? I'd like to isolate the problem.

What do the cups logs say ?
Comment 9 Julien Nabet 2012-09-14 11:32:00 UTC
Michael: following your 2 comments, could padmin be removed right now or, as lo-menubar, is it a little too early for this?
Just for my information, if too early, when will it be possible and above all, what does it depend on?
Comment 10 Michael Meeks 2012-09-14 11:41:07 UTC
IIRC padmin is an obsolete and nasty horror. That is my recollection.
Actually  though - now I look at it it seems it has been cleaned up ;-) so perhaps I'm not so annoyed with it these days. It even looks quite pretty - though it's purpose is really unclear to me [ as a separate tool ].
Comment 11 Jürgen Obermeyer 2012-09-14 14:31:49 UTC
Created attachment 67158 [details]
LibreOffice - Screenshot
Comment 12 Jürgen Obermeyer 2012-09-14 14:32:15 UTC
Created attachment 67159 [details]
Cups - Screenshot
Comment 13 Jürgen Obermeyer 2012-09-14 14:34:37 UTC
> So  - can you confirm you load libreoffice writer; type "Hello World" try to
> print to a printer, and nothing comes out ?

Yes, exactly. Take a look at shot_1.png; you will see three network printers, offered by cups.

> Can you confirm that you are working from a clean profile, and have not touched
> spadmin in between ? I'd like to isolate the problem.

Yes.

> What do the cups logs say ?

Take a look at shot_2.png; /var/log/cups/error_log says "print job cancelled by 'om'" - but I didn't cancel the job.
Comment 14 Michael Meeks 2012-09-17 09:56:04 UTC
Ok - so - I'm very suspicious of CUPS - it is a heap of code more
fragile than LibreOffice even. Can you turn on all the debugging
options:

sudo cupsctl --debug-logging

might help us get more out; re-attempt the failed print, and then re-attach the cups log files ?
Comment 15 Julien Nabet 2012-09-17 10:17:51 UTC
Michael: could this commit http://cgit.freedesktop.org/libreoffice/core/commit/?id=68ffb332f5717f9ef6af11497372becddaac7ef0 help?
Comment 16 Michael Meeks 2012-09-17 11:48:04 UTC
Nope, that commit looks unrelated to me,
Comment 17 Jürgen Obermeyer 2012-09-19 07:20:35 UTC
(In reply to comment #14)

Ok - I did. Result: no document printed. I tried at 09:13 to print on the printer named printer-r134.

See the attached error.log. Thank you!
Comment 18 Jürgen Obermeyer 2012-09-19 07:22:24 UTC
Created attachment 67367 [details]
Cups error log file
Comment 19 Michael Meeks 2012-09-19 09:41:57 UTC
D [19/Sep/2012:09:13:55 +0200] Create-Job ipp://localhost:631/printers/printer-r134
D [19/Sep/2012:09:13:55 +0200] cupsdMarkDirty(----J-)
D [19/Sep/2012:09:13:55 +0200] add_job: requesting-user-name="om"
D [19/Sep/2012:09:13:55 +0200] Adding default job-sheets values "none,none"...
I [19/Sep/2012:09:13:55 +0200] [Job 1522] Adding start banner page "none".
D [19/Sep/2012:09:13:55 +0200] cupsdMarkDirty(-----S)
I [19/Sep/2012:09:13:55 +0200] [Job 1522] Queued on "printer-r134" by "om".
D [19/Sep/2012:09:13:55 +0200] Returning IPP successful-ok for Create-Job (ipp://localhost:631/printers/printer-r134) from 192.168.1.2
D [19/Sep/2012:09:13:55 +0200] [Notifier] state=3
D [19/Sep/2012:09:13:55 +0200] cupsdSetBusyState: Dirty files
D [19/Sep/2012:09:13:55 +0200] [Notifier] state=3
D [19/Sep/2012:09:13:55 +0200] [Notifier] state=3
D [19/Sep/2012:09:13:55 +0200] [Notifier] state=3
D [19/Sep/2012:09:13:55 +0200] cupsdReadClient: 16 POST /printers/printer-r134 HTTP/1.1
D [19/Sep/2012:09:13:55 +0200] cupsdSetBusyState: Active clients and dirty files
D [19/Sep/2012:09:13:55 +0200] cupsdAuthorize: No authentication data provided.
D [19/Sep/2012:09:13:55 +0200] cupsdReadClient: 16 1.1 Send-Document 1
D [19/Sep/2012:09:13:55 +0200] Send-Document ipp://localhost:631/printers/printer-r134
D [19/Sep/2012:09:13:55 +0200] cupsdIsAuthorized: username=""
D [19/Sep/2012:09:13:55 +0200] Returning HTTP Nicht berechtigt for Send-Document (ipp://localhost:631/printers/printer-r134) from 192.168.1.2

The last piece looks suspicious to me: "Nicht berechtigt" - looks like there is some mis-interaction with some security setting you have configured for cups.

Do you have any unusual configuration options set around authentication ?

Do you get a password prompt from the CUPS code ? I guess this is some under-tested interaction.
Comment 20 Jürgen Obermeyer 2012-09-19 10:24:23 UTC
Yes, I saw this line, too. Cups is only prompting for a password for administrative tasks. I will re-read my cups configuration, but all other applications are printing fine. I can do that this afternoon.
Comment 21 Jürgen Obermeyer 2012-09-25 17:45:15 UTC
So finally, I uninstalled CUPS, re-installed it and configured it from scratch. Result: all applications are printing fine on all network printers, except LibreOffice.

Yes, cupsctl is prompting for a password.

The messages in the error log file are always the same.

No idea what to do now ...
Comment 22 Michael Meeks 2012-09-26 11:36:11 UTC
please attach your cups.conf config; and a CUPS error log that matches an strace -s 256 -f ./soffice.bin -writer - and a print of an empty document there.

Can you also switch your locale to english to see if that helps (perhaps the PPD parsing is locale specific): export LANG=en_US.UTF-8 - that would be a useful data point.

Clearly without being able to reproduce it here this is pretty annoying for us all; can you confirm what Linux distribution / version you're using ?

Thanks ! :-)
Comment 23 Jürgen Obermeyer 2012-09-26 11:58:06 UTC
YES, I DID IT - after some months, LibreOffice is printing. It was NOT a LibreOffice problem, but a logical error in my CUPS configuration. Under <Limit SendDocument ...>, there was an entry "AuthType Default", and I found in the Cups admin manual that "Default" means "none". BUT: in another line of my cupsd.conf, I found "DefaultAuthType Basic", so "Default" is not the same as "default".

Changing "AuthType" to "None" solved the problem ... sorry for all that! But I don't understand why LibreOffice is the only application having this "problem".

Thanks a lot for your support!
Comment 24 Michael Meeks 2012-09-26 12:50:35 UTC
Well - any debugging of the CUPS / authentication code is much appreciated if you want to go deeper.