Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zathura crashing on segmentation fault #47

Open
jason-li-z opened this issue Mar 4, 2020 · 13 comments
Open

Zathura crashing on segmentation fault #47

jason-li-z opened this issue Mar 4, 2020 · 13 comments

Comments

@jason-li-z
Copy link

jason-li-z commented Mar 4, 2020

I'm not sure if this is on my end or not, but after opening up a .pdf file from a directory in my terminal (iTerm 2 w/ zsh) about 20 seconds or so I crash with the error saying

"[1] 76878 segmentation fault zathura pdfFileName.pdf"

Any ideas what's this from, such as anything from my end?

On Mac OS with the newest update.

@zegervdv
Copy link
Owner

zegervdv commented Mar 4, 2020

Did you do an update or a clean install? If not the latter, can you try removing girara and zathura and install again?
Also try using a full file path.

@jason-li-z
Copy link
Author

jason-li-z commented Mar 4, 2020

It was a clean install as it was my first time stumbling upon the github repo.

I've tried brew uninstall zathura-pdf-poppler, zathura, and girara and then did a brew update and brew cleanup, then reinstalled zathura & zathura pdf-poppler following the mkdir process all over again, and reopened the file using full path but still the segmentation error still occurs

Edit: It doesn't always crash, but sometimes it doesn't crash for the first few minutes and then randomly gets a segmentation fault error.

@zegervdv
Copy link
Owner

zegervdv commented Mar 5, 2020

Is it always with the same pdf? Maybe it's a certain page that triggers it?

@jason-li-z
Copy link
Author

Any pdf at any path can crash, I'm not sure if it's a certain page as I just shift+j / shift+k through the pages after I resize it a bit, sometimes it crashes immediately after opening and sometimes it just takes a while to crash

@zegervdv
Copy link
Owner

zegervdv commented Mar 5, 2020

Would you mind running with GDB?
Not sure if it will tell us much, but it might at least point at where the segfault is coming from.

@jason-li-z
Copy link
Author

I've never used GDB, but I've just installed gdb through homebrew. How might I go about running zathura with gdb?

@zegervdv
Copy link
Owner

zegervdv commented Mar 5, 2020

gdb --args $(which zathura) <path/to/pdf>

You will need to type r to make it start.

@jason-li-z
Copy link
Author

Gotcha. This was what I got back from gdb.

`Starting program: /usr/local/bin/zathura userPath/tree_questions.pdf
[New Thread 0xf03 of process 6703]
[New Thread 0x1603 of process 6703]
[New Thread 0x2803 of process 6703]
warning: unhandled dyld version (16)
[New Thread 0xf0f of process 6703]
[New Thread 0x1703 of process 6703]
[New Thread 0x2303 of process 6703]
[New Thread 0x2403 of process 6703]
[New Thread 0x2503 of process 6703]
[New Thread 0x2603 of process 6703]
[New Thread 0x2703 of process 6703]

Thread 3 received signal SIGSEGV, Segmentation fault.
0x0000000101f6e968 in ?? ()`

Hopefully this provides some insight!

@zegervdv
Copy link
Owner

zegervdv commented Mar 5, 2020

Not that much sadly.
Can you try installing an older version (not sure how to do that) and see if it also happens there?

I will try later to see if I can somehow reproduce it locally.

@zegervdv
Copy link
Owner

zegervdv commented Jan 9, 2021

@jason-li-z I just realised I never got back to this. Do you still have the issue with the latest version?

@jason-li-z
Copy link
Author

jason-li-z commented Jan 19, 2021

@zegervdv no worries! I'm currently running MacOS Big Sur 11.2 Beta 2, and the same problem still persists even after reinstalling/updating to the latest.

Update: I think I may have found the issue. No crashes if I choose a pdf with no direct links (a clickable area from the pdf that directs me to page xyz). But I do get segmentation fault with pdf's that does have clickable content.

For recreation purposes if you'd like, here was the book with clickable content that I was using: https://cses.fi/book/book.pdf

@Bekon241
Copy link

Bekon241 commented Nov 2, 2021

I have same problem with djvu files and i use puppy bionic 8 x64... i cant resole this pdf work normal only this never. On puppy fossa 9 all work normal but not in that distro :(

@zegervdv
Copy link
Owner

zegervdv commented Nov 3, 2021

Seems like this is an issue with zathura itself then, better report it to the developers at pwmt.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants