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

Holding ctrl + R to reload document results in a segmentation fault. #462

Open
sebastinas opened this issue Apr 23, 2024 · 7 comments
Open
Labels
bug Something isn't working has attachment Attachment was not transfered from GitLab

Comments

@sebastinas
Copy link
Member

On GitLab by @MustafaAamir on Apr 23, 2024, 03:48


Screencast_from_2024-04-23_05-47-52

@sebastinas
Copy link
Member Author

On GitLab by @MustafaAamir on Apr 23, 2024, 03:50


I'm not using any plugins other than zathura-pdf-poppler for fedora 41.

@Skillmon
Copy link

Skillmon commented May 1, 2024

Same happens with the MuPDF backend if one reloads the document too often too fast.

@alerque
Copy link

alerque commented May 1, 2024

This might explain some crashes I've been having too that I haven't been able to track down. When you say segfault does the UI go away or just freeze on you? My symptom is a segfault and the app stops responding but the UI is still there it just stops updating or responding to input. Does that match your symptoms or is my problem different?

@MustafaAamir
Copy link

MustafaAamir commented May 1, 2024 via email

@Skillmon
Copy link

Skillmon commented May 1, 2024

Same as @MustafaAamir, the window dies as well. This is what shows in the terminal (on Arch Linux, kpsewhich example-image-duck.pdf is a PDF shipped with TeX Live, but the same happens with any PDF)):

% zathura $(kpsewhich example-image-duck.pdf)
info: Opening plain database via sqlite backend.
warning: sqlite database already exists. Set your database backend to sqlite
invalid error type error: 
warning: Ignoring error during interpretation
[1]    258097 segmentation fault  zathura $(kpsewhich example-image-duck.pdf)

@alerque
Copy link

alerque commented May 2, 2024

Okay thanks, it sounds like I have a different issue then. I'll keep an eye out for what the actual trigger is and whether it's been reported.

@jwangac
Copy link

jwangac commented May 8, 2024

I have also encountered this issue and have written a patch (for zathura version 0.5.2). While it does not address the root cause of the segmentation fault, it limits the rate at which one can reload, which may serve as a temporary solution.

The patch was created as a quick fix and may not meet the quality standards for upstream integration. But it has been functioning satisfactorily for me over the past few months.

@sebastinas sebastinas added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has attachment Attachment was not transfered from GitLab
Projects
None yet
Development

No branches or pull requests

5 participants