zathura-pdf-mupdf issueshttps://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues2023-10-22T10:54:52+02:00https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/40zathura crashes when :info is run on a non-PDF document (such as an EPUB)2023-10-22T10:54:52+02:00blankieblankie@nixnetmail.comzathura crashes when :info is run on a non-PDF document (such as an EPUB)https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/37Error during compilation: too many arguments to function ‘fz_search_stext_page’2023-09-11T22:50:47+02:00Rodrigo MoralesError during compilation: too many arguments to function ‘fz_search_stext_page’I'm using Ubuntu 22.04. I've downloaded the repository. I've installed dependencies and now I'm trying to build the project. I'm getting an error when trying to compile the project.
<a id="org8ad430c"></a>
# Compilation error
```sh
$ ...I'm using Ubuntu 22.04. I've downloaded the repository. I've installed dependencies and now I'm trying to build the project. I'm getting an error when trying to compile the project.
<a id="org8ad430c"></a>
# Compilation error
```sh
$ meson build
```
```
The Meson build system
Version: 0.61.2
Source dir: /home/rdrg/e/zathura-pdf-mupdf
Build dir: /home/rdrg/e/zathura-pdf-mupdf/build
Build type: native build
Project name: zathura-pdf-mupdf
Project version: 0.4.0
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency zathura found: YES 0.5.2
Run-time dependency girara-gtk3 found: YES 0.4.0
Run-time dependency glib-2.0 found: YES 2.72.4
Run-time dependency cairo found: YES 1.16.0
Run-time dependency mupdf found: YES 1.19.0
Library mupdf-third found: YES
Run-time dependency libjpeg found: YES 2.1.2
Library jbig2dec found: YES
Run-time dependency libopenjp2 found: YES 2.4.0
Run-time dependency gumbo found: YES 0.10.1
Run-time dependency tesseract found: YES 4.1.1
Run-time dependency lept found: YES 1.82.0
Run-time dependency mujs found: YES 1.1.3
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Build targets in project: 1
Found ninja-1.10.1 at /usr/bin/ninja
```
```sh
$ ninja
```
```
[1/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
FAILED: libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
cc -Ilibpdf-mupdf.so.p -I. -I.. -I/usr/local/include -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/openjpeg-2.4 -I/usr/include/leptonica -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -g -fPIC -pthread -DVERSION_MAJOR=0 -DVERSION_MINOR=4 -DVERSION_REV=0 -D_DEFAULT_SOURCE -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -MF libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o.d -o libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -c ../zathura-pdf-mupdf/search.c
../zathura-pdf-mupdf/search.c: In function ‘pdf_page_search_text’:
../zathura-pdf-mupdf/search.c:44:19: warning: passing argument 5 of ‘fz_search_stext_page’ makes integer from pointer without a cast [-Wint-conversion]
44 | text, NULL, hit_bbox, N_SEARCH_RESULTS);
| ^~~~~~~~
| |
| fz_quad *
In file included from /usr/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/include/mupdf/fitz/structured-text.h:247:104: note: expected ‘int’ but argument is of type ‘fz_quad *’
247 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_quad *quads, int max_quads);
| ~~~~^~~~~~~~~
../zathura-pdf-mupdf/search.c:43:21: error: too many arguments to function ‘fz_search_stext_page’
43 | int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/include/mupdf/fitz/structured-text.h:247:5: note: declared here
247 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_quad *quads, int max_quads);
| ^~~~~~~~~~~~~~~~~~~~
[2/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_links.c.o
[3/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_page.c.o
[4/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_index.c.o
[5/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_render.c.o
[6/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_image.c.o
[7/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_plugin.c.o
[8/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_utils.c.o
[9/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_select.c.o
[10/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_document.c.o
ninja: build stopped: subcommand failed.
```
```sh
$ echo $?
```
1
<a id="orgf835158"></a>
# System information
## Operating system
```sh
$ lsb_release -a
```
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
## mupdf's version
This error seem to be related with `mupdf`. Here's the version of `mupdf` that I've installed.
```sh
$ apt-cache show libmupdf-dev
```
Package: libmupdf-dev
Architecture: amd64
Version: 1.19.0+ds1-2
Priority: optional
Section: universe/libdevel
Source: mupdf
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Kan-Ru Chen (陳侃如) <koster@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 49716
Filename: pool/universe/m/mupdf/libmupdf-dev_1.19.0+ds1-2_amd64.deb
Size: 26856550
MD5sum: 0d89147fa9ceac9547c938ea3b92b61f
SHA1: e02ca34146117dd5805fad8fb3a2f954b5eb3def
SHA256: 61709be1933917c2d59b84e9aed0f936e1c88252ffbe55d362e020856c49c2a8
SHA512: ae60665fa71035d5a8f6a29c05e7f712757dad715c4256335a8c02a826f087d06976e5666540dfa9665282558dc9e7810149e7f09a7aa0167a18fcafe68cb728
Homepage: http://mupdf.com/
Description-en: development files for the MuPDF viewer
MuPDF is a lightweight PDF viewer and toolkit written in portable C.
It also reads XPS, OpenXPS and ePub documents.
.
This package contains the static library and headers.
Description-md5: 1971a9536574a0bc27560d5c80c49a3f
```sh
$ apt-cache showpkg libmupdf-dev
```
Package: libmupdf-dev
Versions:
1.19.0+ds1-2 (/var/lib/apt/lists/pe.archive.ubuntu.com_ubuntu_dists_jammy_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/pe.archive.ubuntu.com_ubuntu_dists_jammy_universe_binary-amd64_Packages
MD5: 1971a9536574a0bc27560d5c80c49a3f
Description Language: en
File: /var/lib/apt/lists/pe.archive.ubuntu.com_ubuntu_dists_jammy_universe_i18n_Translation-en
MD5: 1971a9536574a0bc27560d5c80c49a3f
Reverse Depends:
Dependencies:
1.19.0+ds1-2 -
Provides:
1.19.0+ds1-2 -
Reverse Provides:https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/36build failed in master branch "too many arguments to function ‘fz_search_stex...2023-04-21T12:32:13+02:00Thai Nguyenbuild failed in master branch "too many arguments to function ‘fz_search_stext_page’ 43 | int num_results = fz_search_stext_page"`❯ ninja
[5/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
FAILED: libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
cc -Ilibpdf-mupdf.so.p -I. -I.. -I/usr/local/include -I/usr/include/json-glib-1.0 -I/usr/include/gtk...`❯ ninja
[5/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
FAILED: libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
cc -Ilibpdf-mupdf.so.p -I. -I.. -I/usr/local/include -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/openjpeg-2.4 -I/usr/include/leptonica -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -g -fPIC -pthread -DVERSION_MAJOR=0 -DVERSION_MINOR=4 -DVERSION_REV=0 -D_DEFAULT_SOURCE -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -MF libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o.d -o libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -c ../zathura-pdf-mupdf/search.c
../zathura-pdf-mupdf/search.c: In function ‘pdf_page_search_text’:
../zathura-pdf-mupdf/search.c:44:19: warning: passing argument 5 of ‘fz_search_stext_page’ makes integer from pointer without a cast [-Wint-conversion]
44 | text, NULL, hit_bbox, N_SEARCH_RESULTS);
| ^~~~~~~~
| |
| fz_quad *
In file included from /usr/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/include/mupdf/fitz/structured-text.h:247:104: note: expected ‘int’ but argument is of type ‘fz_quad *’
247 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_quad *quads, int max_quads);
| ~~~~^~~~~~~~~
../zathura-pdf-mupdf/search.c:43:21: error: too many arguments to function ‘fz_search_stext_page’
43 | int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/include/mupdf/fitz/structured-text.h:247:5: note: declared here
247 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_quad *quads, int max_quads);
| ^~~~~~~~~~~~~~~~~~~~
[10/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_image.c.o
ninja: build stopped: subcommand failed.
`https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/35mupdf not found2023-04-06T17:31:11+02:00Jaap Goldhoornmupdf not foundI have mupdf 1.22 compiled and installed from source. Note that this does not install an executable called `mupdf`. Only `mupdf-gl` and `mupdf-x11`.
When I run `meson build` in the zathura-pdf-mupdf directory I get the result below.
``...I have mupdf 1.22 compiled and installed from source. Note that this does not install an executable called `mupdf`. Only `mupdf-gl` and `mupdf-x11`.
When I run `meson build` in the zathura-pdf-mupdf directory I get the result below.
```
The Meson build system
Version: 0.61.2
Source dir: /home/japie/git/zathura-pdf-mupdf
Build dir: /home/japie/git/zathura-pdf-mupdf/build
Build type: native build
Project name: zathura-pdf-mupdf
Project version: 0.4.0
C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency zathura found: YES 0.5.2
Run-time dependency girara-gtk3 found: YES 0.3.7
Run-time dependency glib-2.0 found: YES 2.72.4
Run-time dependency cairo found: YES 1.16.0
Found CMake: /home/japie/.local/bin/cmake (3.26.1)
Run-time dependency mupdf found: NO (tried pkgconfig and cmake)
Library mupdf-third found: YES
Library mupdf found: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Build targets in project: 1
Found ninja-1.10.1 at /usr/bin/ninja
Generating targets: 0%| | Writing build.ninja: 0%| |
```
My first guess was that it has to do with the `mupdf-gl` and `mupdf-x11`names, so I tried to symlink each one to mupdf individually, but the error remains.https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/34error, can't open files "cannot create context"2023-09-11T22:52:05+02:00Dean Gaoerror, can't open files "cannot create context"Whenever I open a pdf document, it comes up with the following error:
```
cannot create context: incompatible header (1.20.0) and library (1.21.1) versions
error: could not open document
```
zathura version:
```
zathura 0.5.2
girara 0....Whenever I open a pdf document, it comes up with the following error:
```
cannot create context: incompatible header (1.20.0) and library (1.21.1) versions
error: could not open document
```
zathura version:
```
zathura 0.5.2
girara 0.3.9 (runtime: 0.3.9)
(plugin) pdf-mupdf (0.3.9) (/usr/local/Cellar/zathura/HEAD-81e541e/lib/zathura/libpdf-mupdf.dylib)
```https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/33Bookmark support broken in zathura-pdf-mupdf built with mupdf 1.21.12023-04-22T17:06:34+02:00CR CulverBookmark support broken in zathura-pdf-mupdf built with mupdf 1.21.1When zathura-pdf-mupdf is built with version 1.21.1, bookmarks are broken. In some PDF files, selecting a bookmark works as expected: Zathura will jump to the relevant page. However, in other PDF files, selecting any bookmark simply send...When zathura-pdf-mupdf is built with version 1.21.1, bookmarks are broken. In some PDF files, selecting a bookmark works as expected: Zathura will jump to the relevant page. However, in other PDF files, selecting any bookmark simply sends Zathura to the very last page of the PDF.
My example PDFs consist of copyright material, so I have emailed the devs privately with a link to those PDFs. Meanwhile, I will try to create some example working and non-working PDFs that could be uploaded here to the Issue.https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/29zathura-pdf-mupdf does not build with version 1.20.0 of mupdf2022-09-26T18:32:50+02:00CR Culverzathura-pdf-mupdf does not build with version 1.20.0 of mupdfzathura-pdf-mupdf builds normally with mupdf 1.19.1. However, when attempting to build it with version 1.20.0 of mupdf, the build fails with the following output:
```
build $ ninja
[1/2] Compiling C object libpdf-mupdf.so.p/zathura-pdf...zathura-pdf-mupdf builds normally with mupdf 1.19.1. However, when attempting to build it with version 1.20.0 of mupdf, the build fails with the following output:
```
build $ ninja
[1/2] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
FAILED: libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
cc -Ilibpdf-mupdf.so.p -I. -I.. -I/usr/local/include -I/usr/include/json-c -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -g -march=skylake -O2 -pipe -fomit-frame-pointer -fPIC -pthread -DVERSION_MAJOR=0 -DVERSION_MINOR=3 -DVERSION_REV=8 -D_DEFAULT_SOURCE -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -MF libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o.d -o libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -c ../zathura-pdf-mupdf/search.c
../zathura-pdf-mupdf/search.c: In function ‘pdf_page_search_text’:
../zathura-pdf-mupdf/search.c:44:13: warning: passing argument 4 of ‘fz_search_stext_page’ from incompatible pointer type [-Wincompatible-pointer-types]
44 | text, hit_bbox, N_SEARCH_RESULTS);
| ^~~~~~~~
| |
| fz_quad *
In file included from /usr/local/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/local/include/mupdf/fitz/structured-text.h:248:89: note: expected ‘int *’ but argument is of type ‘fz_quad *’
248 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, int *hit_mark, fz_quad *hit_bbox, int hit_max);
| ~~~~~^~~~~~~~
../zathura-pdf-mupdf/search.c:3:26: warning: passing argument 5 of ‘fz_search_stext_page’ makes pointer from integer without a cast [-Wint-conversion]
3 | #define N_SEARCH_RESULTS 512
| ^~~
| |
| int
../zathura-pdf-mupdf/search.c:44:23: note: in expansion of macro ‘N_SEARCH_RESULTS’
44 | text, hit_bbox, N_SEARCH_RESULTS);
| ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/local/include/mupdf/fitz/structured-text.h:248:108: note: expected ‘fz_quad *’ but argument is of type ‘int’
248 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, int *hit_mark, fz_quad *hit_bbox, int hit_max);
| ~~~~~~~~~^~~~~~~~
../zathura-pdf-mupdf/search.c:43:21: error: too few arguments to function ‘fz_search_stext_page’
43 | int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/local/include/mupdf/fitz/structured-text.h:248:5: note: declared here
248 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, int *hit_mark, fz_quad *hit_bbox, int hit_max);
| ^~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
```https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/28failing to find mupdf2023-09-11T22:52:42+02:00shakhamfailing to find mupdf```
> meson --prefix=/usr/local -Db_lto=true --buildtype=release -Dstrip=true -Dc_link_args=-L/usr/local/lib,-L/usr/local/lib64 build/
The Meson build system
Version: 0.62.2
Source dir: /home/g/git-pkges/zathura-build/zathura-pdf-mupdf
B...```
> meson --prefix=/usr/local -Db_lto=true --buildtype=release -Dstrip=true -Dc_link_args=-L/usr/local/lib,-L/usr/local/lib64 build/
The Meson build system
Version: 0.62.2
Source dir: /home/g/git-pkges/zathura-build/zathura-pdf-mupdf
Build dir: /home/g/git-pkges/zathura-build/zathura-pdf-mupdf/build
Build type: native build
Project name: zathura-pdf-mupdf
Project version: 0.3.8
C compiler for the host machine: gcc (gcc 12.1.1 "gcc (Clear Linux OS for Intel Architecture) 12.1.1 20220706 releases/gcc-12.1.0-213-g65941a9109")
C linker for the host machine: gcc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency zathura found: YES 0.4.9
Run-time dependency girara-gtk3 found: YES 0.3.7
Run-time dependency glib-2.0 found: YES 2.72.3
Run-time dependency cairo found: YES 1.16.0
Found CMake: /usr/bin/cmake (3.23.2)
Run-time dependency mupdf found: NO (tried pkgconfig and cmake)
meson.build:23:0: ERROR: C shared or static library 'mupdf-third' not found
A full log can be found at /home/g/git-pkges/zathura-build/zathura-pdf-mupdf/build/meson-logs/meson-log.txt
```
[meson-log.txt](/uploads/33c0b34c8b45cb0c43a5baf8c3b056b0/meson-log.txt)
```
> fd -H mupdf /usr/
/usr/local/lib/libmupdf-third.a
/usr/local/lib/libmupdf.a
/usr/local/lib/libmupdf.so
/usr/local/include/mupdf/
/usr/local/bin/mupdf-gl
/usr/local/share/doc/mupdf/
/usr/local/share/doc/mupdf/manual-mupdf-gl.html
/usr/local/share/man/man1/mupdf.1
```
```
> bat /etc/ld.so.conf
───────┬───────────────────────────────────────────────────────────────────────────────────────
│ File: /etc/ld.so.conf
───────┼───────────────────────────────────────────────────────────────────────────────────────
1 │ /usr/local/lib/
2 │ /usr/local/lib64/
3 │ /usr/lib/
4 │ /usr/lib64/
───────┴───────────────────────────────────────────────────────────────────────────────────────
> echo $LD_LIBRARY_PATH
/usr/local/lib /usr/local/lib64
```https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/26tesseract undefined symbol2023-12-13T10:37:02+01:00John Juttytesseract undefined symbolgirara, zathura and zathura-pdf-mupdf all compiledfrom develop branch:
```
$ LD_LIBRARY_PATH=/usr/local/lib64 zathura
error: Could not load plugin '/usr/local/lib64/zathura/libpdf-mupdf.so' (/usr/local/lib64/zathura/libpdf-mupdf.so: und...girara, zathura and zathura-pdf-mupdf all compiledfrom develop branch:
```
$ LD_LIBRARY_PATH=/usr/local/lib64 zathura
error: Could not load plugin '/usr/local/lib64/zathura/libpdf-mupdf.so' (/usr/local/lib64/zathura/libpdf-mupdf.so: undefined symbol: _ZTVN9tesseract14ResultIteratorE).
```https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/25Download page entry for 0.3.8 is broken2022-02-13T20:46:46+01:00Michael J GruberDownload page entry for 0.3.8 is brokenThe [download page](https://pwmt.org/projects/zathura-pdf-mupdf/download/) lists version 0.3.8, but the SHA-2 colums is empty and the download link gives a 404 HTML page (named zathura-pdf-mupdf-0.3.8.tar.xz).The [download page](https://pwmt.org/projects/zathura-pdf-mupdf/download/) lists version 0.3.8, but the SHA-2 colums is empty and the download link gives a 404 HTML page (named zathura-pdf-mupdf-0.3.8.tar.xz).https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/22Feature Request: mupdf plugin in Debian repository2021-05-05T12:09:47+02:00arcadioFeature Request: mupdf plugin in Debian repositoryThis actually is a feature request for viewing epub files on debian based systems without having to set up the plugin by the user.
According to [this,](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731447) mupdf isn't stable enoug...This actually is a feature request for viewing epub files on debian based systems without having to set up the plugin by the user.
According to [this,](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731447) mupdf isn't stable enough(?) But it's from 2017, hasn't things changed?https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/21Error could not load plugin and could not determine file type2022-08-21T23:54:37+02:00Amine DendaneError could not load plugin and could not determine file typeOpening a pdf or an epub results in the following error
`error: Could not load plugin '/usr/lib/zathura/libpdf-mupdf.so' (/usr/lib/zathura/libpdf-mupdf.so: undefined symbol: opj_setup_decoder).
error: Could not determine file type.` ...Opening a pdf or an epub results in the following error
`error: Could not load plugin '/usr/lib/zathura/libpdf-mupdf.so' (/usr/lib/zathura/libpdf-mupdf.so: undefined symbol: opj_setup_decoder).
error: Could not determine file type.`
Artix linux (openrc)
zathura v0.4.7
giara 0.3.5
mupdf 1.18.0-1https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/19[Archlinux] error : could not load plugin & error could not determine file type2020-12-21T10:07:00+01:00Pixead[Archlinux] error : could not load plugin & error could not determine file typeusing the package zathura-pdf-mupdf-0.3.6-3
When opening a document, I get the two following errors :
error: Could not load plugin '/usr/lib/zathura/libpdf-mupdf.so' (/usr/lib/zathura/libpdf-mupdf.so: undefined symbol: gumbo_destroy_o...using the package zathura-pdf-mupdf-0.3.6-3
When opening a document, I get the two following errors :
error: Could not load plugin '/usr/lib/zathura/libpdf-mupdf.so' (/usr/lib/zathura/libpdf-mupdf.so: undefined symbol: gumbo_destroy_output).
error: Could not determine file type.
downgrading to the package zathura-pdf-mupdf-0.3.6-2 fixes the issuehttps://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/18EPUB: following any link leads to page 02021-06-12T09:19:57+02:00PRESFILEPUB: following any link leads to page 0Maybe these are related problems zathura#187. I didn't think to check, but the links inside the EPUB don't work either. With the index running.
Debug mode (`zathura -l debug`) says that any link leads to page **0**, while zathura shows ...Maybe these are related problems zathura#187. I didn't think to check, but the links inside the EPUB don't work either. With the index running.
Debug mode (`zathura -l debug`) says that any link leads to page **0**, while zathura shows the page with the number 1, the first page in the document:
```
debug: ../zathura/zathura/links.c:253: zathura_link_evaluate(): Going to link destination: page: 0
```
`mupdf` handles this links correctly.
---
`zathura-git` version: `0.3.6.5.g7bc9112-1`
`zathura-pdf-mupdf-git` version: `0.4.7.7.g02a8877-1`
distribution: Manjarohttps://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/17problem loading file when `set adjust-open "width"` is on2020-11-23T07:32:15+01:00Sayantan Santraproblem loading file when `set adjust-open "width"` is onMy `~/.config/zathura/zathurarc` looks like this:
```
set adjust-open "width"
set window-height 800
set window-width 1200
```
Whenever I open a new pdf, I get a rendering error. When I open it again, it works but the `set adjust-open "wi...My `~/.config/zathura/zathurarc` looks like this:
```
set adjust-open "width"
set window-height 800
set window-width 1200
```
Whenever I open a new pdf, I get a rendering error. When I open it again, it works but the `set adjust-open "width"` is not obeyed. I can set it to `fit-width` by pressign `s` though. The rendering error goes away if I comment out the line.
My system info is:
```
System:
Kernel: 4.19.144-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.0 wm: kwin_x11 dm: GDM, SDDM
Distro: Manjaro Linux
Machine:
Type: Laptop System: HP product: HP Pavilion Laptop 14-bf1xx
v: Type1ProductConfigId serial: <filter> Chassis: type: 10
serial: <filter>
Mobo: HP model: 83CE v: 59.38 serial: <filter> UEFI: Insyde v: F.31
date: 10/30/2017
Battery:
ID-1: BAT1 charge: 19.0 Wh condition: 21.3/42.1 Wh (51%) volts: 13.2/11.6
model: Hewlett-Packard PABAS0241231 serial: <filter> status: Charging
CPU:
Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP
arch: Kaby Lake rev: A L2 cache: 8192 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 31872
Speed: 800 MHz min/max: 400/1800 MHz Core speeds (MHz): 1: 800 2: 800
3: 800 4: 800 5: 800 6: 800 7: 800 8: 800
Graphics:
Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915
v: kernel bus ID: 00:02.0 chip ID: 8086:5917
Device-2: NVIDIA GM108M [GeForce 940MX] vendor: Hewlett-Packard
driver: nvidia v: 430.64 bus ID: 01:00.0 chip ID: 10de:134d
Device-3: Chicony HP Wide Vision HD Camera type: USB driver: uvcvideo
bus ID: 1-5:3 chip ID: 04f2:b5d6
Display: x11 server: X.Org 1.20.8 compositor: kwin_x11
driver: modesetting,nvidia resolution: 1920x1080~60Hz s-dpi: 115
OpenGL: renderer: GeForce 940MX/PCIe/SSE2 v: 4.6.0 NVIDIA 430.64
direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:9d71
Sound Server: ALSA v: k4.19.144-1-MANJARO
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8168 v: 8.048.03-NAPI port: 3000
bus ID: 02:00.0 chip ID: 10ec:8168
IF: eno1 state: down mac: <filter>
Device-2: Intel Wireless 7265 driver: iwlwifi v: kernel port: 3000
bus ID: 03:00.0 chip ID: 8086:095a
IF: wlo1 state: up mac: <filter>
Drives:
Local Storage: total: 1.03 TiB used: 524.57 GiB (49.9%)
ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB
speed: 6.0 Gb/s serial: <filter>
ID-2: /dev/sdb vendor: SanDisk model: SD8SN8U-128G-1006 size: 119.24 GiB
speed: 6.0 Gb/s serial: <filter>
Partition:
ID-1: / size: 48.72 GiB used: 35.22 GiB (72.3%) fs: ext4 dev: /dev/sdb5
ID-2: /home size: 59.67 GiB used: 34.87 GiB (58.4%) fs: ext4
dev: /dev/sdb2
Swap:
ID-1: swap-1 type: partition size: 8.10 GiB used: 2.02 GiB (25.0%)
priority: -2 dev: /dev/sdb3
Sensors:
System Temperatures: cpu: 55.0 C mobo: 29.8 C gpu: nvidia temp: 56 C
Fan Speeds (RPM): N/A
Info:
Processes: 335 Uptime: 2d 2m Memory: 7.71 GiB used: 4.15 GiB (53.9%)
Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: 1866 pacman: 1865
flatpak: 1 Shell: fish v: 3.1.2 running in: server inxi: 3.1.05
```https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/14[zathura-pdf-mupdf] Build fails compiling search.c2021-07-14T18:52:35+02:00Leo[zathura-pdf-mupdf] Build fails compiling search.cI'm on ubuntu 18.04 trying to build last zathura-pdf-mupdf using mupdf version 1.14.
it fails compiling search.c
```
[10/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o'
FAILED: pdf-mupdf@sha/zathura-pdf-mupdf_search...I'm on ubuntu 18.04 trying to build last zathura-pdf-mupdf using mupdf version 1.14.
it fails compiling search.c
```
[10/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o'
FAILED: pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o
cc -Ipdf-mupdf@sha -I. -I.. -I/usr/include/json-c -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/local/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -g -fPIC -pthread -DVERSION_MAJOR=0 -DVERSION_MINOR=3 -DVERSION_REV=5 -D_DEFAULT_SOURCE -Wall -Wextra -pedantic -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o' -MF 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o.d' -o 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o' -c ../zathura-pdf-mupdf/search.c
../zathura-pdf-mupdf/search.c: In function ‘pdf_page_search_text’:
../zathura-pdf-mupdf/search.c:42:74: error: expected expression before ‘fz_quad’
42 | fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, fz_quad);
| ^~~~~~~
ninja: build stopped: subcommand failed.
```
heres `meson build` output
```
The Meson build system
Version: 0.54.3
Source dir: /home/zerinol/fixo/source/zathura-pdf-mupdf
Build dir: /home/zerinol/fixo/source/zathura-pdf-mupdf/build
Build type: native build
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Project name: zathura-pdf-mupdf
Project version: 0.3.5
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-11ubuntu0~18.04.1) 9.3.0")
C linker for the host machine: cc ld.bfd 2.30
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Run-time dependency zathura found: YES 0.4.5
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Run-time dependency girara-gtk3 found: YES 0.3.4
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Run-time dependency glib-2.0 found: YES 2.56.4
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Run-time dependency cairo found: YES 1.15.10
Library mupdf found: YES
Library mupdf-third found: YES
Compiler for C supports arguments -Wall: YES
Compiler for C supports arguments -Wextra: YES
Compiler for C supports arguments -pedantic: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Build targets in project: 1
```https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/13Adobe has new features - some files won't open, even to read.2020-07-10T09:16:41+02:00Edward Ahlsen-GirardAdobe has new features - some files won't open, even to read.Certain PDFs (e.g., BSA Eagle Scout Service Project Workbook (attchd)[512-927_fillable.pdf](/uploads/ee0fee2f6a3ab66c9947854aaefc1d13/512-927_fillable.pdf)) won't open.
Message returned is:
```
Please wait...
If this message is not eve...Certain PDFs (e.g., BSA Eagle Scout Service Project Workbook (attchd)[512-927_fillable.pdf](/uploads/ee0fee2f6a3ab66c9947854aaefc1d13/512-927_fillable.pdf)) won't open.
Message returned is:
```
Please wait...
If this message is not eventually replaced by the proper contents of the document, your PDF
viewer may not be able to display this type of document.
You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
visiting http://www.adobe.com/go/reader_download.
For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other
countries.
```https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/11build failed on ubuntu 20.o42020-05-07T20:42:25+02:00muralibuild failed on ubuntu 20.o4build failed with error :
log file attached:
[build.log](/uploads/60045aefea44c0f9fd60992b3607f855/build.log)build failed with error :
log file attached:
[build.log](/uploads/60045aefea44c0f9fd60992b3607f855/build.log)https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/8build fails against mupdf-git2019-08-11T18:49:05+02:00Julianbuild fails against mupdf-gitBuilding zathura-pdf-mupdf against a recent git checkout from mupdf (post 1.15.0 release) fails due to some code restructuring in mupdf.
http://git.ghostscript.com/?p=mupdf.git;a=commit;h=96a0000431be422c7ea4a6f8b1f207693e850ecf
http:/...Building zathura-pdf-mupdf against a recent git checkout from mupdf (post 1.15.0 release) fails due to some code restructuring in mupdf.
http://git.ghostscript.com/?p=mupdf.git;a=commit;h=96a0000431be422c7ea4a6f8b1f207693e850ecf
http://git.ghostscript.com/?p=mupdf.git;a=commit;h=821a0b2589e750318d2b2cd2a3232bc60d4bbe07
```
In file included from /usr/include/mupdf/fitz.h:11,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
../zathura-pdf-mupdf/search.c: In function ‘pdf_page_search_text’:
../zathura-pdf-mupdf/search.c:42:23: error: expected expression before ‘)’ token
42 | fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, sizeof(fz_quad));
| ^~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
```https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/6zathua assertion fail opening PDF document2019-07-27T21:18:58+02:00Mihai Lazarescuzathua assertion fail opening PDF documentI have downloaded the PDF document from the top of this web page https://ieeexplore.ieee.org/abstract/document/7894201 (too big to attach).
When I attempt to open the PDF document with zathura, it crashes with the following log:
zathur...I have downloaded the PDF document from the top of this web page https://ieeexplore.ieee.org/abstract/document/7894201 (too big to attach).
When I attempt to open the PDF document with zathura, it crashes with the following log:
zathura 7894201.pdf
zathura: source/fitz/colorspace.c:1399: fast_rgb_to_cmyk: Assertion `"This should never happen" == NULL' failed.
Aborted (core dumped)
The document opens OK using evince.
Additional data
zathura --version
zathura 0.4.0
girara 0.3.0 (runtime: 0.3.0)
(plugin) cb (0.1.8) (/usr/lib64/zathura/libcb.so)
(plugin) djvu (0.2.8) (/usr/lib64/zathura/libdjvu.so)
(plugin) ps (0.2.6) (/usr/lib64/zathura/libps.so)
(plugin) pdf-mupdf (0.3.3) (/usr/lib64/zathura/libpdf-mupdf.so)
evince --version
GNOME Document Viewer 3.28.5