Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688334 - =app-text/poppler-0.77.0 fails to render certain PDF files correctly
Summary: =app-text/poppler-0.77.0 fails to render certain PDF files correctly
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-18 23:12 UTC by i.hamsa
Modified: 2020-02-14 19:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info (emerge-info.txt,7.10 KB, text/plain)
2020-02-13 19:55 UTC, cyberbat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i.hamsa 2019-06-18 23:12:30 UTC
Certain PDF files do not render at all with poppler-0.77 (blank pages are shown).

Reproducible: Always

Steps to Reproduce:
1. Download PDF file https://archive.org/download/AComprehensiveEtymologicalDictionaryOfTheHebrewLanguageErnestKlein1987OCR/a%20comprehensive%20etymological%20dictionary%20of%20the%20hebrew%20language%20ernest%20klein%201987%20OCR.pdf
2. Open with a poppler based reader (okular, evince) build against poppler-0.77 (libpoppler.so.88.0.0)
Actual Results:  
Blank pages are displayed

Expected Results:  
Text is displayed

Replacing libpoppler.so with the previous version makes the problem go away.

I don't know if it is preferred to report such bugs here or to the upstream.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-06-19 07:33:47 UTC
I have just opened this PDF with okular-19.04.2 + poppler-0.77.0 successfully. Have you tried to re-emerge poppler-0.77.0 instead of downgrading?
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-06-19 07:34:09 UTC
successfully = I did not have blank pages
Comment 3 i.hamsa 2019-06-19 09:07:22 UTC
Yes I did re-emerge, also tried poppler-9999 and a couple of ude flags changes (+cjk IIRC). I will check and report my exact configuration later today.
Comment 4 i.hamsa 2019-06-19 11:57:06 UTC
I have checked again, re-emerging poppler 0.77 doesn't help. Also re-downloaded the file in question. More info:

    emerge -pv poppler

    These are the packages that would be merged, in order:

    [ebuild   R    ] app-text/poppler-0.77.0:0/88::gentoo  USE="cairo cjk curl cxx introspection jpeg lcms nss png qt5 tiff utils -debug -doc -jpeg2k" 0 KiB
Comment 5 Andreas Sturmlechner gentoo-dev 2019-06-20 13:53:03 UTC
Works fine for me.
Comment 6 i.hamsa 2019-06-20 14:40:12 UTC
I can reproduce this 100% of the time, is there anything that can be done? Maybe there are unexpected interactions with other libraries/use flags?
Comment 7 Andreas Sturmlechner gentoo-dev 2019-06-29 20:56:08 UTC
Can you test with 0.78.0?
Comment 8 CaptainBlood 2019-06-30 11:04:37 UTC
Fails with app-text/evince-3.30.2 & app-text/poppler-0.77.0.
Viewed fine in firefox.
'emerge -p --nodeps app-text/poppler-0.78 ; emerge -p evince' didn't help.
Comment 9 CaptainBlood 2019-06-30 11:07:07 UTC
Forgot to mention:
app-text/poppler
Installed versions:  0.77.0(0/88)^t(03:42:08 24/06/2019)(cairo cxx lcms qt5 utils -cjk -curl -debug -doc -introspection -jpeg -jpeg2k -nss -png -tiff)

app-text/evince
Installed versions:  3.30.2(0/evd3.4-evv3.3)(13:57:17 30/06/2019)(-djvu -dvi -gnome -gnome-keyring -gstreamer -introspection -nautilus -nsplugin -postscript -spell -t1lib -tiff -xps)
Comment 10 Andreas Sturmlechner gentoo-dev 2019-06-30 12:19:43 UTC
Firefox is using its own pdfjs unless you have configured something else.

(In reply to Andreas Sturmlechner from comment #7)
> Can you test with 0.78.0?
Comment 11 CaptainBlood 2019-06-30 14:23:08 UTC
Typo, I should have writtee:
Fails with app-text/evince-3.30.2 & app-text/poppler-0.78.0.
'emerge -p --nodeps app-text/poppler-0.78.0 ; emerge -p evince' didn't help.

My apologizes.
Comment 12 i.hamsa 2019-07-03 19:17:12 UTC
0.78 doesn't work for me either. Sorry about the belated answer.
Comment 13 Andreas Sturmlechner gentoo-dev 2019-07-18 20:29:35 UTC
Please test with 0.79.0.
Comment 14 Andreas Sturmlechner gentoo-dev 2019-09-13 20:24:50 UTC
Please test with 0.80.0.
Comment 15 i.hamsa 2020-02-09 20:44:17 UTC
Tested with 0.82, the bug is back.
Comment 16 Andreas Sturmlechner gentoo-dev 2020-02-09 22:14:10 UTC
Please test with 0.85.

Do you actually try with okular or evince?
Comment 17 i.hamsa 2020-02-10 05:18:39 UTC
Yes, I tried both okular and evince. 

I will test with 0.85 soon.
Comment 18 i.hamsa 2020-02-10 20:32:49 UTC
Tested with 0.85, same problem.
Comment 19 cyberbat 2020-02-13 19:54:59 UTC
I confirm this on poppler
0.82.0(0/92)^t(03:19:02 03.02.2020)(cairo cxx introspection jpeg lcms png qt5 tiff utils -cjk -curl -debug -doc -jpeg2k -nss)
Comment 20 cyberbat 2020-02-13 19:55:30 UTC
Created attachment 613734 [details]
emerge-info
Comment 21 cyberbat 2020-02-13 20:03:00 UTC
And if I do
pdftotext pdf_with_problem.pdf
(pdftotext is a tool from poppler) I get this error:
Syntax Error (172): Unknown filter 'JPXDecode'

I think this is a reason of the problem.
Comment 22 cyberbat 2020-02-13 20:17:17 UTC
And after googling I'm pretty sure that all of us who has the problem should try to reemerge the poppler with +jpeg2k
Comment 23 Andreas Sturmlechner gentoo-dev 2020-02-13 20:19:52 UTC
I welcome you digging into this, but could you share the base of this statement or do you want to keep the suspense?
Comment 24 Andreas Sturmlechner gentoo-dev 2020-02-13 20:30:08 UTC
Right, we could have just checked the document itself earlier. Which is full of jpx images, nothing else. You can see for yourself using `pdfimages -list <filename>`.

(In reply to CaptainBlood from comment #9)
> Forgot to mention:
> app-text/poppler
> Installed versions:  0.77.0(0/88)^t(03:42:08 24/06/2019)(cairo cxx lcms qt5
> utils -cjk -curl -debug -doc -introspection -jpeg -jpeg2k -nss -png -tiff)

Although I must say one should not be surprised for lack of image support when disabling *all* image support.
Comment 25 i.hamsa 2020-02-14 19:24:08 UTC
My use flags are "cairo cjk curl cxx introspection jpeg lcms nss png qt5 tiff utils -debug -doc -jpeg2k" and it's still not working...
Comment 26 i.hamsa 2020-02-14 19:28:34 UTC
Oh, just saw the message about jpeg2k. It did the trick!