Evince crashes randomly when scrolling, opening or closing a document
On Archlinux, with xmonad, I get random crashes. The fork Atril crashes too.
It happens randomly when I'm reading a pdf and I scroll. It is rare, maybe once every two days, but I have a bad memory for this sort of things. In order to make the bug more reproducible, I made a script which opens 9 evince windows on the same workspace and sends random scroll events to them. Usually, one of these windows will crash in 2 minutes. Sometimes, no window crashes, but it can happen at the start of the next execution of the script. If the windows are sent to other workspaces back and forth, the crash happens quicker. Here is the file I used for my tests (with 9 copies). I don't know if it is reproducible with every pdf file and I think not with djvu files.
I tested this script on some other applications (zathura, xreader, crazycat, mupdf and gedit), but Evince and Atril are the only ones which crash. Evince also crashes with gnome without wayland, and I could make it crash only once with gnome+wayland before loosing patience. I also tested this on two other computers, though still with Archlinux and xmonad (with default settings).
I don't know if the stack traces I could get will be very helpful. I installed the glib2 and gtk3 debug packages (from the eschwartz repository), and compiled evince from source with
meson --debug, but there are still a lot of undefined symbols and other
<optimized_out>, so I don't think this had the intended effect. If someone has the patience to explain to me how I can get more complete stack traces, I can follow the instructions. Here is an example of stack trace I got. They are quite disparate.