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#79914 - Zathura does not work on jbig2 encoded pdfs

Attached to Project: Arch Linux
Opened by qwe ewq (gssfaw) - Wednesday, 11 October 2023, 14:28 GMT
Last edited by Robin Candau (Antiz) - Wednesday, 11 October 2023, 16:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Christian Hesse (eworm)
Robin Candau (Antiz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Recently zathura-pdf-mupdf was updated and it no longer works on some pdf files encoded with jbig2. Here is the error message:
warning: jbig2dec error: incompatible jbig2dec header (0.20) and library (0.19) versions (segment 4294967295)

Downgrading both libmupdf (libmupdf-1.23.3-4) and zathura-pdf-mupdf (0.4.1-4) to the previous version temporary fixes the problem

Additional info:
* zathura-pdf-mupdf 0.4.1-6
* Happens without any config

Steps to reproduce:
Find a jbig2 encoded pdf, try to open it with zathura and mupdf plugin.
This task depends upon

Closed by  Robin Candau (Antiz)
Wednesday, 11 October 2023, 16:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with (lib)mupdf v1.23.4-2: https://gitlab.archlinux.org/archlinux/p ackaging/packages/mupdf/-/commit/c563cc2 d295a3152057c45f0f2b55df3b1a04fc3
Comment by Robin Candau (Antiz) - Wednesday, 11 October 2023, 14:42 GMT
I assume you're using the testing repositories?

It looks like both libmupdf and zathura-pdf-mupdf have to be rebuilt against jbig2dec v0.20 (which is currently in [extra-testing]).
Comment by qwe ewq (gssfaw) - Wednesday, 11 October 2023, 15:04 GMT
I see, no, I am using a non-testing repo. As far as I understand, when jbig2dec will land into the extra repository, it will fix the problem. (Since now it complains because mine version is lower than the needed one). Sorry for not making a good research before opening the issue.
Comment by Christian Hesse (eworm) - Wednesday, 11 October 2023, 15:11 GMT
What the...!? Looks like (lib)mupdf is a hopeless mess...

/usr/lib/libjbig2dec.so comes with the soname set, so it is API and ABI compatible. Why does mupdf think it should cause this trouble?
Comment by Robin Candau (Antiz) - Wednesday, 11 October 2023, 15:22 GMT
@gssfaw Don't worry, all good! Actually such situations should (hopefully) not happen so there's an issue somewhere.

Do you have a link to a PDF encoded with jbig2 to provide by any chance? That would help for testing/reproducing the issue and fix it :)
Comment by qwe ewq (gssfaw) - Wednesday, 11 October 2023, 15:46 GMT
@Antiz sure, here is the link to the file https://0x0.st/H4uy.pdf . It is from an old article legally accessed from my institution, I've extracted only one page so I hope sharing it won't be considered as something bad. I've confirmed that it cannot be viewed by the latest version of zathura-mupdf and libmupdf
Comment by Robin Candau (Antiz) - Wednesday, 11 October 2023, 15:49 GMT
@gssfaw Thank you! I'll make some test and come back here shortly ;)
Comment by Robin Candau (Antiz) - Wednesday, 11 October 2023, 16:11 GMT
@gssfaw I just pushed a new (lib)mupdf release (v1.23.4-2) [1] to [extra] that solves this issue.
I let you confirm before closing the ticket ;)

[1] https://gitlab.archlinux.org/archlinux/packaging/packages/mupdf/-/commit/c563cc2d295a3152057c45f0f2b55df3b1a04fc3
Comment by qwe ewq (gssfaw) - Wednesday, 11 October 2023, 16:21 GMT
@Antiz That's great. Now everything works perfect. Thank you very much. I am really grateful
Comment by Robin Candau (Antiz) - Wednesday, 11 October 2023, 16:22 GMT
@gssfaw Thanks for the confirmation and for reporting this issue!

I'm closing the ticket ;)

Loading...