Bug 411865 - kate crashes when clicking print button, caused by an inconsistency in a printer PPD file
Summary: kate crashes when clicking print button, caused by an inconsistency in a prin...
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 18.12.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-12 15:35 UTC by Vadim Lensky
Modified: 2019-11-02 04:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The PPD file provided by the manufacturer (167.85 KB, application/vnd.cups-ppd)
2019-09-12 15:44 UTC, Vadim Lensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Lensky 2019-09-12 15:35:36 UTC
SUMMARY

The system has installed a network Kyocera TASKalpha 3551ci printer, using a PPD file provided by the manufacturer. Kate crashes with a segfault when clicking "print" in the print menu (both when the network printer or print to file is selected), or when clicking the "Printer properties -> Advanced" tab in the print menu. The same, in fact, happens with other KDE applications. This seems to be caused by a typo in the PPD file.

STEPS TO REPRODUCE
1. Install the network printer Kyocera TASKalpha 3551ci, using the PPD file provided by Kyocera
2. In the printing dialog, select any printer and click "Print", or select Printer Properties -> Advanced tab

OBSERVED RESULT
Kate crashes with a segfault

EXPECTED RESULT
A typo in the PPD file should preferably not cause a crash of the application

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Leap 15.1 KDE Plasma 5.12.8
(available in About System)
KDE Plasma Version: 5.12.8
KDE Frameworks Version: 5.55.0
Qt Version: 5.9.7

ADDITIONAL INFORMATION
The issue can be fixed by simply editing the PPD file removing the inconsistency. However, the "inconsistent" PPD file worked fine in openSUSE 42.3.
Comment 1 Vadim Lensky 2019-09-12 15:44:18 UTC
Created attachment 122630 [details]
The PPD file provided by the manufacturer
Comment 2 Christoph Feck 2019-10-03 17:21:25 UTC
Please add the backtrace for the crash, see also https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

I am not sure if any KDE code parses PPD files. The bug is likely either in Qt, or even lower in the printing stack, but a backtrace is needed to confirm.

You could verify with a Qt application, such as qpdfviewer.
Comment 3 Bug Janitor Service 2019-10-18 04:33:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2019-11-02 04:33:09 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!