Bug 405552

Summary: Unable to print from KDE/QT5 Apps anymore
Product: [Frameworks and Libraries] print-manager Reporter: boospy <linux>
Component: generalAssignee: Daniel Nicoletti <dantti12>
Status: RESOLVED UPSTREAM    
Severity: critical CC: nate
Priority: NOR    
Version First Reported In: 18.12   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description boospy 2019-03-17 10:02:46 UTC
Hello all, 

since the last KDE Update we noticed here in the office that on all computers we are unable to printing anymore from KDE applications. Only Okular is able to print on an real printer. PDF's are possible, this is us workaround this time. Printing from QT4 Apps and GTK is also possible. 


STEPS TO REPRODUCE
1. Open an app, like Kmail, Kate..
2. Write somehting, and print. 

OBSERVED RESULT
For a second the printer reports "printing" after a second it is ready and nothing was printed. The only errormessage on the printserver is: 

/var/spool/cups/d01000-001, object 6 0 at offset 444: operation for number attempted on object of type string: returning 0

I tested this also on a fresh KDE-NEON installation. Same result. On an Kubuntu 18.04 it works. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.15
(available in About System)
KDE Plasma Version: 5.15.3 
KDE Frameworks Version: 5.56.0
Qt Version: 5.12 (maybe this is responsible for)

ADDITIONAL INFORMATION
I've tested with networkprinters from HP. I haven't other models to test. From HP we have here 6 different models. Also not tested USB: But i think that probably has nothing to do with it.

Thanks very much. 
Best Regards
Comment 1 Nate Graham 2019-03-18 14:49:47 UTC
Okular is a KDE application, though. From which applications exactly are you unable to print? Trying with USB from affected machines might actually be a helpful debugging step, if you can.
Comment 2 boospy 2019-03-18 22:24:34 UTC
hello graham,

Okular is the only app that are working. Kate, kwrite, gwenview, kmail, whole kontact, digikam ... can't print. There many other users they have the same issue. 

@WillS form kde-neon.de found this report:
https://bugreports.qt.io/browse/QTBUG-72868

and with a lot of test and time i found a workaround. It is working fine if you use a non postscriptprinterdriver. Since the new QT Version it look likes QT can not deal with postscript anymore. This is bad if you bought such printer.
Comment 3 Nate Graham 2019-03-18 22:33:21 UTC
Hmm, it doesn't make much sense to me that only Okular would be working, since Okular is a Qt-using KDE app, just like the others you listed. It just uses the standard Qt printing system.

It looks like https://bugreports.qt.io/browse/QTBUG-72868is already fixed in Qt 5.12.1. Since you're already using Qt 5.12.0, it seems like you're using a distro that offers rapid software upgrades, so would you be willing to test again once you get Qt 5.12.1?
Comment 4 boospy 2019-03-22 07:30:05 UTC
> ...so would you be willing to test again once you get Qt 5.12.1?

Yes i do, probably should not take long until this version also appears in neon.
Comment 5 Christoph Feck 2019-03-31 06:50:57 UTC
Qt 5.12.2 has already been released. If the update does not fix the printing issue with Qt applications, please report it directly to Qt developers via https://bugreports.qt.io/
Comment 6 boospy 2019-03-31 10:05:15 UTC
Ok, thank you, if the update is on Neon, i will test and report that here back. 

:)