Ristretto crashes randomly on opening images
for i in {1..30}; do ristretto 'img.jpg'; done
Most times ristretto will open the image, but quite often it crashes with:
[xcb] Unknown sequence number while processing reply
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
ristretto: xcb_io.c:721: _XReply: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)
Also I can see sometimes image quickly showing, disappearing and showing again on load.
This happens on random images. Example image where it happens attached.
I managed to generate strace for the crash, but don't see anything helpful in this output. strace
It's not easy to generate strace as it slows down ristretto start. Starting it slower seems to increase stability.
Version: 0.12.1 packaged by Archlinux.
CPU: AMD Ryzen 3 PRO 4350G with Radeon Graphics
Kernel: 5.15.12-arch1-1 #1 (closed) SMP PREEMPT
Glibc: 2.33-5
I could not reproduce this with 0.12.0.
I bet it was introduced by:
(0.12.1 changelog):
- Performance Improvement:
- Load images asynchronously (#16 (closed), #29 (closed), #32 (closed), !34 (merged))
- Increase image loading buffer size (!34 (merged))