Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29299 - [okular] Cannot open PDF documents

Attached to Project: Arch Linux
Opened by Andrej Podzimek (andrej) - Thursday, 05 April 2012, 20:03 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 26 June 2012, 17:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Okular cannot open PDF files. Howere, it still opens DVI just fine. Opening a PDF leads to an error message (Cannot open <file name>) and produces one line of output (see below). Guessing by the output, this might be somehow related to poppler.

Additional info:
* package version(s)
kdegraphics-okular 4.8.2-1

* config and/or log files etc.
okular(1436)/okular (app) Okular::DocumentPrivate::loadGeneratorLibrary: Invalid plugin factory for "okularGenerator_poppler"!

Steps to reproduce:
Try to open a PDF file in Okular.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 26 June 2012, 17:10 GMT
Reason for closing:  No response
Additional comments about closing:  works for me
Comment by Andrej Podzimek (andrej) - Thursday, 05 April 2012, 20:04 GMT
s/Howere/However/
Grrr.
Comment by Andrej Podzimek (andrej) - Tuesday, 10 April 2012, 18:31 GMT
It started to work again for some reason. It might be due to this ugly hack I had to use to make Amarok work again:

cd /usr/lib ; ln -s libpng15.so.15.10.0 libpng14.so.14

Of course this may be just a coincidence with other updates... But if libpng is in poppler's dependency tree, it is possible that this ugly hack made poppler work again (well, to an extent...), which in turns restored Okular's capability to open PDFs.

The output from Amarok complained about libpng directly. Okular did not report anything of that kind; the only error message it produced is mentioned in the bug report above.
Comment by Kevin (anonymous_user) - Tuesday, 10 April 2012, 18:34 GMT
If you undo that hack, does the problem with okular reappear?

Also if there is a problem with Amarok, you should report that too instead of using some hack.
Comment by Andrej Podzimek (andrej) - Tuesday, 10 April 2012, 19:24 GMT
Yes, it reappears when I undo the hack.

Problems with outdated libraries occur so often in ArchLinux that reporting every single one might do more harm than good. Normally I would just recompile Amarok using srcpac instead of using ugly hacks, but that's a different story: https://bugs.archlinux.org/task/26573
Comment by Andrej Podzimek (andrej) - Wednesday, 11 April 2012, 06:29 GMT
  • Field changed: Percent Complete (100% → 0%)
My system is up-to-date and I *do* use the official repo (only). When a PDF file is opened in Okular, *both* the new and the old libpng libraries are accessed, which can be easily shown by strace:

$ grep libpng strace.out
open("/usr/lib/libpng15.so.15", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/libpng14.so.14", O_RDONLY|O_CLOEXEC) = 11

I have just removed most (if not all) the packages listed in pacman -Qm (so that there is nothing non-standard on my system) and the problem persists.
Comment by Andrea Scarpino (BaSh) - Wednesday, 11 April 2012, 06:29 GMT
Please paste the output of $ pacman -Qm
Comment by Andrej Podzimek (andrej) - Wednesday, 11 April 2012, 08:00 GMT
acroread 9.4.2-1
af9015-firmware 5.1.0.0-1
arch-artwork 0.2.1-6
archlinux-themes-kde 1.5-2
bin32-google-earth 6.0.3.2197-1
jitsi 1.0.3967-1
ld-lsb 3-2
libflashsupport-pulse 20120401-1
min12xxw 0.0.9-1
nusmv 2.5.4-1
nvidia-ap 295.33-99
srcpac-git 20111104-1
ttf-ms-fonts 2.0-3
xcalib 0.8-3
Comment by Andrea Scarpino (BaSh) - Wednesday, 11 April 2012, 09:02 GMT
please run
$ LD_DEBUG=files okular > log 2>&1

and upload the log file here.
Comment by Andrej Podzimek (andrej) - Monday, 16 April 2012, 14:33 GMT
Here it is. This log was produced by running Okular with a PDF file as a command line argument, which exposes the problem. (Opening DVIs does not seem to cause this issue at all.) The "needed by libopenjpeg..." message might be useful. That's where the the old libpng gets loaded.
   log (68.7 KiB)
Comment by Andrea Scarpino (BaSh) - Wednesday, 13 June 2012, 20:35 GMT
Status?

Loading...