gdk-pixbuf makes Caja (mate-desktop) crash when just clicking a SVG file.
This bug cames from this reported bug in mate-desktop/caja github. I have this SVG file in a folder. That specific file is the same that crashes Inkscape in particular version (*) by doing the same: clicking it and trying to open it. This SVG has 4 masked PNG images inside and it's >10MB size (now, I don't remember if the problem is because of those PNGs or its size).
(*): this is my bug report and the bug report from another person where it is fixed.
This is the SVG file.
Here is a video of Caja crashing.
As I say above, I reported in mate-desktop/caja and some guys helped me to debug it. This is what I've got:
mario@debian:~$ gdb -p $(pgrep caja)
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 6689
[New LWP 6690]
[New LWP 6691]
[New LWP 6693]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fecd0cbe819 in __GI___poll (fds=0x563b35f6d7f0, nfds=5, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: No existe el fichero o el directorio.
(gdb) continue
Continuing.
[New Thread 0x7fecb77fe700 (LWP 6807)]
[New Thread 0x7fecc771b700 (LWP 6808)]
[New Thread 0x7fecb67fc700 (LWP 6809)]
[New Thread 0x7fecb5ffb700 (LWP 6810)]
[Thread 0x7fecb67fc700 (LWP 6809) exited]
[Thread 0x7fecc771b700 (LWP 6808) exited]
[Thread 0x7fecb77fe700 (LWP 6807) exited]
[New Thread 0x7fecb77fe700 (LWP 6811)]
[New Thread 0x7fecb67fc700 (LWP 6812)]
[New Thread 0x7fecc771b700 (LWP 6813)]
[Thread 0x7fecc771b700 (LWP 6813) exited]
[Thread 0x7fecb67fc700 (LWP 6812) exited]
[Thread 0x7fecb77fe700 (LWP 6811) exited]
[New Thread 0x7fecb77fe700 (LWP 6814)]
[Thread 0x7fecb77fe700 (LWP 6814) exited]
Thread 1 "caja" received signal SIGSEGV, Segmentation fault.
0x00007fecc66492c0 in ?? ()
from /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
(gdb) Quit
(gdb) bt
#0 0x00007fecc66492c0 in ()
at /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
#1 0x00007fecd17f7b80 in gdk_pixbuf_loader_write ()
at /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
#2 0x0000563b3432a535 in get_pixbuf_for_content
(file_contents=0x7fecb47fa010 "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<!-- Created with Inkscape (http://www.inkscape.org/) -->\n\n<svg\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:cc=\"http://creativecommon"..., file_len=13484610)
at caja-directory-async.c:4268
#3 0x0000563b3432a535 in thumbnail_read_callback
(source_object=<optimized out>, res=<optimized out>, user_data=0x563b36db20d0)
at caja-directory-async.c:4324
#4 0x00007fecd16c9799 in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#5 0x00007fecd16ca216 in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#6 0x00007fecd1681622 in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#7 0x00007fecd169d9cd in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#8 0x00007fecd16c9799 in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#9 0x00007fecd16c97d9 in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#10 0x00007fecd14fddd8 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007fecd14fe1c8 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007fecd14fe25c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007fecd16f4a2d in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#14 0x0000563b3429f218 in main (argc=1, argv=0x7fff569cdbb8) at caja-main.c:282
(gdb)
A guy from #mate IRC channel told me that the problem was in GDK Pixbuf, when trying to make a thumbnail, so, here I am.
NOTE: there is no problem to make the thumbnail. I can change view mode to icon and caja can make this file thumbnail, you can see in video above. But, when I click on it, Caja crashes.
MATE general version: 1.20.4 Package version: 1.20.4-2~ Linux Distribution: Debian Buster