Control: retitle -1 zathura: crash when quitting before PDF rendering is 
complete
Control: forwarded -1 https://github.com/pwmt/zathura/issues/656

I've submitted an issue upstream.

On 2024-08-05 10:03:45 +0200, Vincent Lefevre wrote:
> I can still reproduce the segmentation fault on the same machine
> before the upgrade to the latest version, and after the upgrade.

And even on a newer machine, but this is more difficult, probably
because it is much faster. So I had the idea to try on larger
PDF files, with large images, and I can reproduce the crash all
the time. I just need to quit fast enough (with 'q'), apparently
before rendering is complete.

This is not always a segmentation fault, but this can be

zathura: ../../../src/cairo-pattern.c:1155: cairo_pattern_destroy: Assertion 
`CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&pattern->ref_count)' failed.
zsh: IOT instruction (core dumped)  zathura wd/doc/lyon/tcl/lignes-fortes.pdf

zathura: ../../../src/cairo-pattern.c:1093: cairo_pattern_reference: Assertion 
`CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&pattern->ref_count)' failed.
zsh: IOT instruction (core dumped)  zathura 
visorando-circuit-des-chapelles-a-sainte-catherine.pdf

According to the zathura source, zathura uses threading. So the
cause might be that when zathura receives 'q', it starts to free
some data structures while rendering is still done in another
thread.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to