Bug 421200 - PDF is shown in Okular Version 1.10.0 , but is not printed
Summary: PDF is shown in Okular Version 1.10.0 , but is not printed
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-08 20:55 UTC by Michael Josenhans
Modified: 2020-05-09 21:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
PDF File that crashes Karbon, Dr. Konqi and does not print on Okular as it crashes gs (237.59 KB, application/pdf)
2020-05-08 20:55 UTC, Michael Josenhans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Josenhans 2020-05-08 20:55:11 UTC
Created attachment 128262 [details]
PDF File that crashes Karbon, Dr. Konqi and does not print on Okular as it crashes gs

SUMMARY
PDF is attached. 

Releated to #421181.



STEPS TO REPRODUCE
1. Open the file with Okular
2. Print it

OBSERVED RESULT
It prints empty page

EXPECTED RESULT
It prints the same as shown in Okular. 

Note: 
It prints fine with evince. 

It prints empty page

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

KDE Neon 5.18 user edition
ADDITIONAL INFORMATION

$ pdftops Rechnung_c\'t_11052020.pdf 
$ gs Rechnung_c\'t_11052020.ps
GPL Ghostscript 9.26 (2018-11-20)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/AAAAAB+HelveticaNeueLTPro-Bd.
Can't find (or can't open) font file AAAAAB+HelveticaNeueLTPro-Bd.
Didn't find this font on the system!
Substituting font Helvetica-Bold for AAAAAB+HelveticaNeueLTPro-Bd.
Loading NimbusSans-Bold font from /usr/share/ghostscript/9.26/Resource/Font/NimbusSans-Bold... 4524876 3030174 9489012 8036723 1 done.
Error: /rangecheck in --xyshow--
Operand stack:
   199.65   542.09   (\000B\000e\000l\000e\000g\000-\000N\000r\000.)   --nostringval--   (\000B\000e\000l\000e\000g\000-\000N\000r\000.)   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   2045   1   3   %oparray_pop   2044   1   3   %oparray_pop   2025   1   3   %oparray_pop   1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:968/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--   --dict:70/75(L)--   --dict:19/25(L)--   --dict:7/15(L)--
Current allocation mode is local
Last OS error: Resource temporarily unavailable
Current file position is 342629
GPL Ghostscript 9.26: Unrecoverable error, exit code 1

Seems to be a gs bug.
Comment 1 Michael Josenhans 2020-05-08 21:01:13 UTC
This bug is realted to #421181 (same PDF file).
Comment 2 Albert Astals Cid 2020-05-09 13:56:28 UTC
Okular doesn't really do the printing, it's poppler, please report a bug at https://gitlab.freedesktop.org/poppler/poppler/
Comment 3 Yuri Chornoivan 2020-05-09 13:58:49 UTC
(In reply to Albert Astals Cid from comment #2)
> Okular doesn't really do the printing, it's poppler, please report a bug at
> https://gitlab.freedesktop.org/poppler/poppler/

Actually, that might be Ghostscript itself or cups-filters. Cf. https://bugs.archlinux.org/task/62251
Comment 4 Michael Josenhans 2020-05-09 19:54:15 UTC
(In reply to Yuri Chornoivan from comment #3)
> (In reply to Albert Astals Cid from comment #2)
> > Okular doesn't really do the printing, it's poppler, please report a bug at
> > https://gitlab.freedesktop.org/poppler/poppler/
> 
> Actually, that might be Ghostscript itself or cups-filters. Cf.
> https://bugs.archlinux.org/task/62251

See for debugging a similar, but different issue:
https://bugs.kde.org/show_bug.cgi?id=344645

When running manually:
$ pdftops Rechnung_c\'t_11052020.pdf 
$ gs Rechnung_c\'t_11052020.ps

ghostscript crashes. Shall I file the error now against ghostscript or poppler? Or uses poppler ghostscript?
Comment 5 Michael Josenhans 2020-05-09 20:19:36 UTC
Here I have filed a bug against poppler:
https://gitlab.freedesktop.org/poppler/poppler/-/issues/914
Comment 6 Albert Astals Cid 2020-05-09 21:23:07 UTC
Ah forgot to mention that as a workaround you can always do check "Force Rasterization" in PDF Options in the print dialog and that should print the file