Open mil-ad opened 1 month ago
Yes, this is fixed in the development branch. There is a patch by another user here: https://github.com/ahrm/sioyek/issues/897.
I switched to development branch. I can now build fine but when I try to open a PDF I get:
render glyph failed err=62 face=0x5ada6587b770, glyph=51
zsh: segmentation fault (core dumped) sioyek
It also happens when I try sioyek-git
package in Arch's AUR.
(I'd stick with the .appimage but the latest release is 18 months old)
Can you backup your shared.db
and local.db
to another location and see if the crash happens these files are deleted?
I deleted both files and still get the same error 🤔
Does this happen with all pdf files? You may also want to remove last_document_path.txt
file.
Another thing is that we use qt 6.7 on the development branch (as opposed to 5.* in the main branch).
Does this happen with all pdf files?
Yes it happens with all PDFs.
You may also want to remove last_document_path.txt file.
Made no difference
Another thing is that we use qt 6.7 on the development branch (as opposed to 5.* in the main branch). Yes I'm using
qmake6
and qt versions below. Although I noticed the README instructions on development branch still says qt5 for linux, we need to update that at some point.
qt6-3d 6.7.0-1
qt6-5compat 6.7.0-1
qt6-base 6.7.0-6
qt6-declarative 6.7.0-1
qt6-imageformats 6.7.0-1
qt6-multimedia 6.7.0-1
qt6-multimedia-ffmpeg 6.7.0-1
qt6-positioning 6.7.0-2
qt6-shadertools 6.7.0-1
qt6-speech 6.7.0-1
qt6-svg 6.7.0-1
qt6-tools 6.7.0-2
qt6-translations 6.7.0-1
qt6-wayland 6.7.0-1
qt6-webchannel 6.7.0-1
qt6-webengine 6.7.0-1
qt6ct 0.9-7
Hmmm did you build sioyek yourself or are you using some prebuilt package? If you built it yourself you may want to build it in debug mode and see what the stack trace is?
I'm building it myself. Do I just add CONFIG+=debug
to the build command?
(thanks for all the help btw 🫡)
Yes, I think that should do it. yw :) .
I'm not 100% sure I did the debug build correctly but I'm now getting this:
cannot create context: incompatible header (1.22.0) and library (1.24.2) versions
could not create mupdf context
Ahh, I think you are building against your system's mupdf but using the mupdf headers included in sioyek repo. You can either use your system's headers files (probably removing this line should do it: https://github.com/ahrm/sioyek/blob/b312fe0b7ae4b8125febef4467480367e0030665/pdf_viewer_build_config.pro#L6). Or use the mupdf included with sioyek (the linux_app_image
config option does that, see here: https://github.com/ahrm/sioyek/blob/b312fe0b7ae4b8125febef4467480367e0030665/pdf_viewer_build_config.pro#L160).
(You may also want to define LINUX_STANDARD_PATHS
with linux_app_image
config which uses more standard linux path and is the default for non-appimage sioyek packages).
ah that's strange. I thought I was using the mupdf in the repo.
this is my build step:
build() {
cd "sioyek/mupdf"
make USE_SYSTEM_HARFBUZZ=yes
cd ..
qmake6 CONFIG+=linux_app_image pdf_viewer_build_config.pro
make
}
and I have also borrowed a patch file sioyek-git
in the AUR that does this:
diff --git a/pdf_viewer_build_config.pro b/pdf_viewer_build_config.pro
index a09b861..0154e5d 100644
--- a/pdf_viewer_build_config.pro
+++ b/pdf_viewer_build_config.pro
@@ -88,7 +88,8 @@ unix:!mac {
QMAKE_CXXFLAGS += -std=c++17
CONFIG(linux_app_image){
- LIBS += -ldl -Lmupdf/build/release -lmupdf -lmupdf-third -lmupdf-threads -lharfbuzz -lz
+ DEFINES += LINUX_STANDARD_PATHS
+ LIBS += -ldl -lmupdf -lz
} else {
DEFINES += NON_PORTABLE
DEFINES += LINUX_STANDARD_PATHS
Yeah the patch uses the system's mupdf (by removing -Lmupdf/build/release).
aaah! Let me try again! Thanks!
that worked and turns out you were right; it's my database after all 😵💫
If your database doesn't contain private information, you can mail it to me and I can see what is wrong, otherwise maybe the stack trace gives a clue?
I'm getting the error below when building
main
branch on linux:does this ring any bells?