Leap 15.1 KDE applications crash when clicking "Print"

Hello everyone,

I’m getting weird printing-related issues after upgrading from 42.3 to 15.1. At first, I couldn’t use the network printer that was installed in the system, the problem was this:

  1. I could print the test page from YaST but couldn’t print anything from any of the applications;
  2. All KDE applications (okular, gwenview, kwrite, kmail, konsole) would freeze when I selected Menu -> Print, sometimes for good, but mostly they would come back live after 3-5 minutes but then freeze again when I chose a printer or clicked “Print”
  3. Non-KDE applications (LibreOffice) would not freeze but printing would not work (with the “filter failed” error)

I installed a newer version of CUPS (2.3b instead of 2.2.7) from the Printing repository (together with the dependencies, of course). Now the printing seems to work fine in non-KDE apps (I tried FoxIt Reader and LibreOffice). This also seems to have fixed the KDE printing menu freeze. However, KDE apps crash invariably after I select a printer (even “Print to file”) and click “Print”.

I would be grateful for any help :slight_smile:

Hi, and welcome to the forums.

Is a new user affected in the same manner?

How did you update?

What repositories have you enabled?

sudo zypper lr -d

Thanks!

Yes, I just checked with the root account and with a new user, both seem to be affected in the same way.

Live upgrade 42.3 -> 15.0 -> 15.1


#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI   
   | Service
---+-------------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------------+--------
 1 | Games                               | Games                                   | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/games/openSUSE_Leap_42.3/          |        
 2 | Skype                               | Skype                                   | No      | ----      | ----    |   99     | rpm-md | https://repo.skype.com/rpm/stable                                            |        
 3 | download.nvidia.com-leap            | nVidia Graphics Drivers                 | No      | ----      | ----    |   99     | rpm-md | http://download.nvidia.com/opensuse/leap/42.3                                |        
 4 | download.opensuse.org-non-oss       | Main Repository (NON-OSS)               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/non-oss/            |        
 5 | download.opensuse.org-non-oss_1     | Update Repository (Non-Oss)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/non-oss/                       |        
 6 | download.opensuse.org-oss           | Main Repository (OSS)                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/oss/                |        
 7 | download.opensuse.org-oss_1         | Main Update Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/oss                            |        
 8 | download.opensuse.org-oss_2         | Main Repository (Sources)               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.1/repo/oss          |        
 9 | http-download.opensuse.org-4621cdaf | science                                 | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/science/openSUSE_Leap_42.3/        |        
10 | http-download.opensuse.org-8e43eed5 | openSUSE:Leap:42.3:Ports                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/repositories/openSUSE:/Leap:/42.3:/Ports/ports/ |        
11 | openSUSE-42.3-0                     | openSUSE-42.3-0                         | No      | ----      | ----    |   99     | yast2  | hd:/?device=/dev/disk/by-id/scsi-1SanDiskUltra-part2                         |        
12 | openSUSE_Leap_15.1                  | Printing                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Printing/openSUSE_Leap_15.1/      |        
13 | packman.inode.at-suse               | Packman Repository                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.1/                             |
14 | repo-debug                          | openSUSE-Leap-42.3-Debug                | No      | ----      | ----    |   99     | yast2  | http://download.opensuse.org/debug/distribution/leap/42.3/repo/oss/          |        
15 | repo-debug-non-oss                  | openSUSE-Leap-42.3-Debug-Non-Oss        | No      | ----      | ----    |   99     | yast2  | http://download.opensuse.org/debug/distribution/leap/42.3/repo/non-oss/      |        
16 | repo-debug-update                   | openSUSE-Leap-42.3-Update-Debug         | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/42.3/oss/                     |        
17 | repo-debug-update-non-oss           | openSUSE-Leap-42.3-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/42.3/non-oss/          

Sorry, I guess I need to do some clean-up here.

After some more playing around: it appears that I can print my TeX sources from kile, but not from kwrite or kate (both of which crash as described in the first post). Print preview also causes some issues: it seems to be working fine in kwrite and kate, however, okular shows a gray screen saying “could not load the preview part”. Previewing doesn’t seem to be causing any crashes, though.

EDIT: If I get it correctly, Kile is using KDE 4.14, and all the other apps are KDE 5.55, which may be the reason Kile is behaving differently.

More fiddling around: the apps also crash when I click Print -> Printer Properties -> Advanced (just on my click on the Advanced tab, any of the installed printers/print to file).

I’m suspecting you may have some remnants of 42.3 still installed.

Although in post #3 they are shown as disabled, I’d remove the old 42.3 repos, and temporarily disable the “Printing” repository. Then from the command line:

sudo zypper dup

to see what it would do if you performed another distribution upgrade.

Thanks. Here’s the output:



zypper dup
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...
12 Problems:
Problem: problem with installed package cups-2.3b6-lp151.237.3.x86_64
Problem: problem with installed package cups-client-2.3b6-lp151.237.3.x86_64
Problem: problem with installed package cups-config-2.3b6-lp151.237.3.x86_64
Problem: problem with installed package ghostscript-9.27-lp151.134.1.x86_64
Problem: problem with installed package ghostscript-fonts-other-9.06-lp151.29.1.noarch
Problem: problem with installed package ghostscript-x11-9.27-lp151.134.1.x86_64
Problem: problem with installed package gutenprint-5.2.14pre15.1-lp151.70.1.x86_64
Problem: problem with installed package hplip-hpijs-3.19.6-lp151.191.1.x86_64
Problem: problem with installed package hplip-sane-3.19.6-lp151.191.1.x86_64
Problem: problem with installed package libcups2-2.3b6-lp151.237.3.x86_64
Problem: problem with installed package libcupsimage2-2.3b6-lp151.237.3.x86_64
Problem: problem with installed package libQtWebKit4-4.8.7+2.3.4-7.3.2.x86_64

Problem: problem with installed package cups-2.3b6-lp151.237.3.x86_64
 Solution 1: install cups-2.2.7-lp151.5.2.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete cups-2.3b6-lp151.237.3.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package cups-client-2.3b6-lp151.237.3.x86_64
 Solution 1: install cups-client-2.2.7-lp151.5.2.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete cups-client-2.3b6-lp151.237.3.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package cups-config-2.3b6-lp151.237.3.x86_64
 Solution 1: install cups-config-2.2.7-lp151.5.2.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete cups-config-2.3b6-lp151.237.3.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package ghostscript-9.27-lp151.134.1.x86_64
 Solution 1: install ghostscript-9.26a-lp151.2.1.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete ghostscript-9.27-lp151.134.1.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package ghostscript-fonts-other-9.06-lp151.29.1.noarch
 Solution 1: install ghostscript-fonts-other-9.06-lp151.5.1.noarch (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete ghostscript-fonts-other-9.06-lp151.29.1.noarch

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package ghostscript-x11-9.27-lp151.134.1.x86_64
 Solution 1: install ghostscript-x11-9.26a-lp151.2.1.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete ghostscript-x11-9.27-lp151.134.1.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package gutenprint-5.2.14pre15.1-lp151.70.1.x86_64
 Solution 1: install gutenprint-5.2.14-lp151.2.3.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete gutenprint-5.2.14pre15.1-lp151.70.1.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package hplip-hpijs-3.19.6-lp151.191.1.x86_64
 Solution 1: install hplip-hpijs-3.18.6-lp151.1.1.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete hplip-hpijs-3.19.6-lp151.191.1.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package hplip-sane-3.19.6-lp151.191.1.x86_64
 Solution 1: install hplip-sane-3.18.6-lp151.1.1.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete hplip-sane-3.19.6-lp151.191.1.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package libcups2-2.3b6-lp151.237.3.x86_64
 Solution 1: install libcups2-2.2.7-lp151.5.2.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete libcups2-2.3b6-lp151.237.3.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package libcupsimage2-2.3b6-lp151.237.3.x86_64
 Solution 1: install libcupsimage2-2.2.7-lp151.5.2.x86_64 (with vendor change)
  obs://build.opensuse.org/Printing  -->  openSUSE
 Solution 2: keep obsolete libcupsimage2-2.3b6-lp151.237.3.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1

Problem: problem with installed package libQtWebKit4-4.8.7+2.3.4-7.3.2.x86_64
 Solution 1: install libQtWebKit4-4.8.7+2.3.4-lp151.2.78.x86_64 (with vendor change)
  openSUSE  -->  http://packman.links2linux.de
 Solution 2: keep obsolete libQtWebKit4-4.8.7+2.3.4-7.3.2.x86_64

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1
Resolving dependencies...
Computing distribution upgrade...

The following NEW package is going to be installed:
  libx264-155

The following 15 packages are going to be REMOVED:
  ImageMagick-config-6-SUSE libass5 libgif6 libgnutls28 libHalf11 libhogweed2 libIex-2_1-11 libIlmImf-Imf_2_1-21 libIlmThread-2_1-11 liblcms1 libMagickCore-6_Q16-1 libMagickWand-6_Q16-1 libmng1 libnettle4
  libwebp5

The following 29 packages are going to be downgraded:
  cups cups-client cups-config flash-player-ppapi ghostscript ghostscript-fonts-other ghostscript-x11 gmplayer gutenprint hplip-hpijs hplip-sane libcups2 libcupsimage2 libdca0 libdcadec0 libfaac0 libfaad2
  libfdk-aac1 libopencore-amrnb0 libopencore-amrwb0 libprojectM3 libQtWebKit4 librtmp1 libvo-aacenc0 libx265-176 libxvidcore4 MPlayer normalize transcode

The following 12 packages are going to change vendor:
  cups                     obs://build.opensuse.org/Printing -> openSUSE
  cups-client              obs://build.opensuse.org/Printing -> openSUSE
  cups-config              obs://build.opensuse.org/Printing -> openSUSE
  ghostscript              obs://build.opensuse.org/Printing -> openSUSE
  ghostscript-fonts-other  obs://build.opensuse.org/Printing -> openSUSE
  ghostscript-x11          obs://build.opensuse.org/Printing -> openSUSE
  gutenprint               obs://build.opensuse.org/Printing -> openSUSE
  hplip-hpijs              obs://build.opensuse.org/Printing -> openSUSE
  hplip-sane               obs://build.opensuse.org/Printing -> openSUSE
  libcups2                 obs://build.opensuse.org/Printing -> openSUSE
  libcupsimage2            obs://build.opensuse.org/Printing -> openSUSE
  libQtWebKit4             openSUSE -> http://packman.links2linux.de    

29 packages to downgrade, 1 new, 15 to remove, 12  to change vendor.
Overall download size: 69.5 MiB. Already cached: 0 B. After the operation, 1.6 MiB will be freed.
Continue? [y/n/v/...? shows all options] (y): n

Could it be the libQtWebKit package? I would guess it’s not the culprit, but I’m not that well-experienced as to judge. Apart from that one, it seems that it mostly wants to roll the printing packages back to the factory version.

Also, I did some more playing around: I removed all printers from the YaST printer setup. After that I could print to a file (however, the Printer Properties -> Advanced tab is not accessible if there’s only the print to file option, so I could not test it). After reinstalling the printers again, I’m back at step one.

As what @tannington tries to do, is being sure you have 15.1 and nothing but 15.1, I would indeed change vendor to openSUSE. When need arises, you can always change to the Printing repo later.

That should be needed btw, your problem is not a general one and most people just print with the standrad 15.1 repo.

Thanks @hcvv. I disabled the printing repository, rolled back to the 15.1 version and rebooted, and it now seems that at least the printing is working fine with the factory versions of CUPS etc. I can print the test page from YaST and I can also print from non-KDE5 applications (including Kile). However, KDE5 applications are still crashing when I click print (including print to file) or advanced printer settings. There is no freezing like I had it in the very beginning, though.

The preview issue in okular doesn’t seem to be related to crashing. As described here (in German) - Fehlermeldung bei "Druckvorschau", in Okular? - Software & Anwendungen - Community Hilfe - Download Software - Tipps und Tricks - the preview issue is solved by installing the okular-spectre package. It doesn’t make the main issue any better, though.

Does KDE “System Settings” -> “Printers” -> (“Maintenance | Configure | Open Print Queue”) also crash?

If you start kate from within konsole and then attempt to print are there any error messages shown in the konsole window?

Anything to be gleaned from the journal? Try perhaps to grep for “print”

sudo journalctl -b | grep -i "print"

Thanks. No, it doesn’t, it seems to be working fine (with the only caveat - the test page that I print from there seems to be different from that of YaST and a much more simplistic one, but that is probably normal).

I can see this:

kate
Invalid MIT-MAGIC-COOKIE-1 keyKCrash: Application 'kate' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

[1]+  Stopped                 kate

where the first part about “Invalid MIT-MAGIC-COOKIE-1 key” appears immediately after launch and doesn’t seem to refer to any critical errors, and then some output which seems to be related to the crash handling

QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
Unable to start Dr. Konqi
Re-raising signal for core dump handling.

[1]+  Segmentation fault      (core dumped) kate

The crash causes Dr. Konqi to run, and a backtrace can be generated. Should I post it here?

It’s too long to be posted here in full, but the last events show this:

Sep 10 19:14:51 linux.msi systemsettings5[18689]: libkcups: CUPS-Get-Printers last error: 0 successful-ok
Sep 10 19:14:51 linux.msi systemsettings5[18689]: libkcups: CUPS-Get-Printers last error: 0 successful-ok
Sep 10 19:14:52 linux.msi kactivitymanagerd[2171]: Creating the cache for:  "kcm:kcm_printer_manager.desktop"
Sep 10 19:14:52 linux.msi kactivitymanagerd[2171]: ResourceScoreUpdated: "229dfa3d-9d22-4af8-9757-3e89381ce288" "org.kde.systemsettings" "kcm:kcm_printer_manager.desktop"
Sep 10 19:14:57 linux.msi systemsettings5[18689]: libkcups: Create-Printer-Subscriptions last error: 0 successful-ok
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed to processing." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: Print-Job last error: 0 successful-ok
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: "Printer \"kyocera\" state changed to processing." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history,connecting-to-device" true
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history,connecting-to-device" true
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:14:59 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi systemsettings5[18689]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:03 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:04 linux.msi systemsettings5[18689]: libkcups: Create-Printer-Subscriptions last error: 0 successful-ok
Sep 10 19:15:06 linux.msi plasmashell[2142]: org.kde.plasmaquick: Applet "Printers" loaded after 0 msec
Sep 10 19:15:06 linux.msi plasmashell[2142]: org.kde.plasmaquick: Increasing score for "Printers" to 100
Sep 10 19:15:08 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history,cups-waiting-for-job-completed" true
Sep 10 19:15:08 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:08 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:09 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed." "ipp://linux/printers/kyocera" "kyocera" 4 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history,cups-waiting-for-job-completed" true
Sep 10 19:15:09 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:09 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:12 linux.msi plasmashell[2142]: libkcups: "Printer \"kyocera\" state changed to idle." "ipp://linux/printers/kyocera" "kyocera" 3 "cups-ipp-conformance-failure-report,cups-ipp-missing-job-history" true
Sep 10 19:15:12 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
Sep 10 19:15:12 linux.msi plasmashell[2142]: libkcups: Get-Printer-Attributes last error: 0 successful-ok

  • this shows up when I use the system settings printer applet to print a test page;
Sep 10 19:16:36 linux.msi drkonqi[18756]: 7 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 8 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 9 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 10 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 11 "QPrintDialog::accept" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 3 "#11 0x00007f689659b33d in QPrintDialog::accept() () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 1 "#10 0x00007f689659aa31 in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 1 "#9  0x00007f689659a38f in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 1 "#8  0x00007f68965965ee in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:16:36 linux.msi drkonqi[18756]: 1 "#7  0x00007f68965965a6 in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"


Sep 10 19:22:25 linux.msi drkonqi[18873]: 7 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 8 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 9 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 10 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 11 "QPrintDialog::accept" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 39 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 1 "#39 0x00007fcb72fc9863 in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 3 "#11 0x00007fcb72fbb33d in QPrintDialog::accept() () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 1 "#10 0x00007fcb72fbaa31 in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 1 "#9  0x00007fcb72fba38f in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 1 "#8  0x00007fcb72fb65ee in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:22:25 linux.msi drkonqi[18873]: 1 "#7  0x00007fcb72fb65a6 in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"
Sep 10 19:25:51 linux.msi drkonqi[18967]: 8 "??" "" "/usr/lib64/libQt5PrintSupport.so.5"
Sep 10 19:25:51 linux.msi drkonqi[18967]: 1 "#8  0x00007fc85455f750 in ?? () from /usr/lib64/libQt5PrintSupport.so.5
"

  • and this occurs when I click on “Generate backtrace” in Dr. Konqi (here it shows two instances of that event).

OK, let’s try to clear the “Invalid MIT-MAGIC-COOKIE” first. Logout from KDE, switch to a virtual terminal (Ctrl-Alt-F2), login as your normal user, and rename “~/.Xauthority”

mv ~/.Xauthority ~/.Xauthority-old

Exit from the terminal session (exit), switch back to the graphical terminal (Ctrl-Alt-F7) and login to KDE. Again, start kate from konsole to see if it’s cleared the “Invalid MIT-MAGIC-COOKIE” message.

The crash causes Dr. Konqi to run, and a backtrace can be generated. Should I post it here?

If you have the debug packages installed the back-trace may be useful. But probably better posted to the KDE bugzilla against kate ( Log in to KDE Bugtracking System ). I’m not convinced though this is a bug per se. I’m running 15.1 on two machines, one of which also went the 42.3 -> 15.0 -> 15.1 upgrade path, they both print OK to a network printer (Samsung).

It’s too long to be posted here in full, but the last events show this:

At a quick look, I don’t immediately see anything that jumps out from the journal.

Printing is the only problem? In all other respects KDE is behaving OK?

Yes, that message isn’t showing anymore. As a side effect, the Plasma session seems to be loading much faster now, which is nice. Is it OK to leave it like that? :slight_smile: However, kate still crashes when I try to print (as do other apps).

No, I don’t have the debug packages at the moment, I could install them at some point, I guess.

So far (it’s been about a week since I did the upgrade) I haven’t noticed anything major. A couple of minor, seemingly unrelated, things with Kmail: it won’t store the view settings (the accounts tree, I always choose not to show the “Size” column, which reappears after a restart, plus the column widths have to be readjusted after a restart, too), plus something a bit weird - it would crash when I tried to view one particular email that I got yesterday. The message was seemingly a “normal” unimportant email with attachments coming from a reasonably trusted source, and I could view it without any trouble on my Android phone. Since it wasn’t important, I just deleted it, and I couldn’t reproduce the issue with any other emails.

Yes, a new “.Xauthority” file would have been created.

However, kate still crashes when I try to print (as do other apps).

Yeh… I wasn’t expecting it to change anything there.

The fact it also affects a new user signifies it’s “something” at the system rather than user level. My feeling is still that something went awry in the upgrade path. Normally, reinstalling software very seldom offers a solution with linux… however, in this case it may be worthwhile trying an unconditional update of Plasma/KDE.

Using YaST2 - YaST Software Management:

From the “Patterns” tab (if it’s not shown, add via the “View” dropdown menu), select the pattern “KDE Plasma 5 Desktop …”, in the right pane, right click to bring up the context menu, select “All in this list”, followed by “Update unconditionally”.

Then try printing…

If still problematic, repeat the process for the pattern “KDE Applications…”

And once more see if that has effected a cure, although I’m tending to think it unlikely.

I’m sorry, but at this point I’m at a loss as to any further constructive suggestions.

Your options would be to wait and see if any other advice is offered; consider a fresh install of 15.1, keeping your existing home directory; file a bug report against kate (although it affects other KDE apps), which, if you could include the full debug backtrace, may at least result in a KDE developer offering further thoughts, even if it’s not a bug per se.

Thanks for your help! I guess I just fixed it, it appears that all this trouble was caused by a broken PPD file that I was using (it was provided by the printer manufacturer and worked fine with 42.3 though). It looks like there was a mismatch between the name of a definition and the name of its default option, I fixed it, so that the edited PPD file passes the cupstestppd check, and the printing seems to be working fine now. The printer Properties -> Advanced tab is also working fine.

Wow! you found it. Good work.

Good news :slight_smile: … Excellent.

Well done with finding the problem here!

As a final thought on this…

I would expect Qt/KDE print routines to have more robust error handling in the case of a “faulty” PPD file, so the end application attempting to print doesn’t crash/segfault, as was the case here.

It may be worth a bug report, probably against “kate”, whose developers can assign it upstream as needed.