zathura icon indicating copy to clipboard operation
zathura copied to clipboard

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

Open sebastinas opened this issue 1 year ago • 7 comments
trafficstars

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


Screencast_from_2024-04-23_05-47-52

sebastinas avatar Apr 23 '24 01:04 sebastinas

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


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

sebastinas avatar Apr 23 '24 01:04 sebastinas

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

Skillmon avatar May 01 '24 13:05 Skillmon

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?

alerque avatar May 01 '24 15:05 alerque

Hi! In my case the app crashes and shuts down altogether.

On Wed, May 1, 2024 at 7:20 PM Caleb Maclennan @.***> wrote:

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?

— Reply to this email directly, view it on GitHub https://github.com/pwmt/zathura/issues/462#issuecomment-2088621897, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBLRQFTMA3LMG3XZSZHU4U3ZAEB2FAVCNFSM6AAAAABHA4PHBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGYZDCOBZG4 . You are receiving this because you were mentioned.Message ID: @.***>

MustafaAamir avatar May 01 '24 16:05 MustafaAamir

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)

Skillmon avatar May 01 '24 17:05 Skillmon

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.

alerque avatar May 02 '24 05:05 alerque

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.

jwangac avatar May 08 '24 11:05 jwangac