Bug 388288 - some thumbnail of pdf not shown in dolphin, some are shown
Summary: some thumbnail of pdf not shown in dolphin, some are shown
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.3.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-28 10:23 UTC by kts
Modified: 2018-04-06 11:06 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Fail to show thumbnail in dolphin (1.09 MB, application/pdf)
2018-01-03 07:47 UTC, kts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kts 2017-12-28 10:23:18 UTC
I've been seeing this problem since kde plasma 4. Continue seeing it in plasma 5.
I did not take time to report it until now. Now that it'd been reported.
Comment 1 Albert Astals Cid 2018-01-02 00:02:40 UTC
Okular is not resposible for thubmnailing of pdf files in dolphin.

But anyway attach the file, otherwise your bug report is never ever going to be fixed.
Comment 2 Albert Astals Cid 2018-01-02 00:02:53 UTC
waiting for file
Comment 3 kts 2018-01-03 07:43:28 UTC
ok, I'll email you the file.
Comment 4 kts 2018-01-03 07:47:07 UTC
Created attachment 109642 [details]
Fail to show thumbnail in dolphin

There are many PDFs that fail to show thumbnails. I've selected one of them that's small.
Comment 5 kts 2018-01-09 13:44:41 UTC
I've already provided the file in question. Which additional info do you need?
Comment 6 Albert Astals Cid 2018-01-09 21:11:44 UTC
Nothing, Okular is still the wrong product for it as I mentioned.
Comment 7 kts 2018-01-10 08:07:57 UTC
With the file in attachment, you can test that there's no thumbnail. There should be but there's not. What's at false here? Dolphin?
Comment 8 Albert Astals Cid 2018-01-11 23:57:43 UTC
Fixed with https://phabricator.kde.org/D9834

Now needs someone to agree with it
Comment 9 Albert Astals Cid 2018-01-14 18:52:41 UTC
Git commit cfc2e2c32b5525691b5ba1b6eaf91071e4a0c8be by Albert Astals Cid.
Committed on 14/01/2018 at 18:51.
Pushed by aacid into branch 'Applications/17.12'.

gs thumbnailer: Make it work when gs spits out warning messages

Reviewers: #kde_applications, #dolphin, elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio, ngraham

Differential Revision: https://phabricator.kde.org/D9834

M  +13   -2    ps/gscreator.cpp

https://commits.kde.org/kdegraphics-thumbnailers/cfc2e2c32b5525691b5ba1b6eaf91071e4a0c8be
Comment 10 Albert Astals Cid 2018-01-14 18:52:53 UTC
Git commit 4530c07cb53263d95600e4249074049bbf07e1ac by Albert Astals Cid.
Committed on 14/01/2018 at 18:52.
Pushed by aacid into branch 'master'.

gs thumbnailer: Make it work when gs spits out warning messages

Reviewers: #kde_applications, #dolphin, elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio, ngraham

Differential Revision: https://phabricator.kde.org/D9834

M  +13   -2    ps/gscreator.cpp

https://commits.kde.org/kdegraphics-thumbnailers/4530c07cb53263d95600e4249074049bbf07e1ac
Comment 11 kts 2018-02-08 18:14:02 UTC
The attachment provided showed thumbnail with latest KDE. But some other PDFs did not. I want to email the attachment to someone responsible because it's above 4MB. Who in this list should I sent it to?
Comment 12 Albert Astals Cid 2018-02-09 23:06:46 UTC
I guess you can send it to me, but don't hold your breath on me actually spending much time on something i'm not really maintainer of and neither use.
Comment 13 kts 2018-02-10 09:54:00 UTC
Done sending it.
Comment 14 Albert Astals Cid 2018-02-10 10:16:22 UTC
The problem is that gs doesn't like that file

$ gs yourfile.pdf 
GPL Ghostscript 9.22 (2017-10-04)
Copyright (C) 2017 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
   **** Error reading a content stream. The page may be incomplete.
               Output may be incorrect.
Error: /typecheck in --run--
Operand stack:
   --dict:4/13(L)--   --dict:5/14(L)--   --dict:5/14(L)--   2099   17483090   2099   0   --nostringval--   Parent   --nostringval--   Type   Page   MediaBox   --nostringval--   Resources   --nostringval--   ColorSpace   --nostringval--   CS0   --nostringval--   CS1   --nostringval--   Indexed   201   --nostringval--   DeviceGray
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   2015   1   3   %oparray_pop   2014   1   3   %oparray_pop   1998   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   --nostringval--
Dictionary stack:
   --dict:983/1684(ro)(G)--   --dict:1/20(G)--   --dict:83/200(L)--   --dict:83/200(L)--   --dict:133/256(ro)(G)--   --dict:301/450(ro)(G)--   --dict:26/32(L)--   --dict:4/10(L)--
Current allocation mode is local
GPL Ghostscript 9.22: Unrecoverable error, exit code 1


You probably want to open a bug in https://bugs.ghostscript.com/ and report that gs on that file fails, once that is resolved, the thumbnailer will work.