Crash on a large image
Using the image provided in #60 (closed), and after cropping it by
convert input.jpg -shave 2000x2000 output.jpg
opening it in Ristretto gives me the following backtrace (relevant part, cairo compiled from sources with debug symbols):
Thread 1 "ristretto" received signal SIGABRT, Aborted.
0x00007ffff6b19d22 in raise () from /usr/lib/libc.so.6
#0 0x00007ffff6b19d22 in raise () at /usr/lib/libc.so.6
#1 0x00007ffff6b03862 in abort () at /usr/lib/libc.so.6
#2 0x00007ffff6b03747 in _nl_load_domain.cold () at /usr/lib/libc.so.6
#3 0x00007ffff6b12616 in () at /usr/lib/libc.so.6
#4 0x00007ffff74cb1cf in _cairo_xlib_shm_pool_create (display=0x555555a67800, size=1083223680, ptr=0x7fffffffce60) at ../src/cairo-xlib-surface-shm.c:622
#5 0x00007ffff74cb2c8 in _cairo_xlib_shm_info_create (display=0x555555a67800, size=1083223680, will_sync=0) at ../src/cairo-xlib-surface-shm.c:650
#6 0x00007ffff74cb8e4 in _cairo_xlib_shm_surface_create (other=0x5555558dd400, format=PIXMAN_x8r8g8b8, width=18964, height=14280, will_sync=0, create_pixmap=4096) at ../src/cairo-xlib-surface-shm.c:836
#7 0x00007ffff74cca26 in _cairo_xlib_surface_create_shm (other=0x5555558dd400, format=PIXMAN_x8r8g8b8, width=18964, height=14280) at ../src/cairo-xlib-surface-shm.c:1162
#8 0x00007ffff74ccab2 in _cairo_xlib_surface_create_similar_shm (other=0x5555558dd400, format=CAIRO_FORMAT_RGB24, width=18964, height=14280) at ../src/cairo-xlib-surface-shm.c:1187
#9 0x00007ffff746f2d5 in INT_cairo_surface_create_similar_image (other=0x5555558dd400, format=CAIRO_FORMAT_RGB24, width=18964, height=14280) at ../src/cairo-surface.c:595
#10 0x00007ffff771d424 in gdk_cairo_set_source_pixbuf () at /usr/lib/libgdk-3.so.0
#11 0x000055555556c7a0 in paint_image (ctx=0x555555a5f000, widget=0x555555605350) at image_viewer.c:1399
#12 rstto_image_viewer_paint (ctx=0x555555a5f000, widget=0x555555605350) at image_viewer.c:1591
#13 rstto_image_viewer_draw (widget=0x555555605350, ctx=0x555555a5f000) at image_viewer.c:608
and this output in the terminal:
ristretto: ../cairo/src/cairo-xlib-surface-shm.c:619: _cairo_xlib_shm_pool_create: Assertion `*ptr != NULL' failed.
The backtrace above is very close to the one in #27 (closed) (it's just one intruction above in image_viewer.c
), but it's not the same, hence the new issue. It is however likely that the two crashes are related.
Edited by Gaël Bonithon