Created attachment 8858 SVG file making Thunar to crash I don't have issues with other SVG files, but the one[1] attached to this bug report makes Thunar to crash when I select it (not when viewing the folder containing the file). Steps: 1) Unzip the SVG file attached. 2) With Thunar, open the folder containing the extracted SVG file. 3) Click on the file. Result: Thunar crashes with the error "Segmentation fault (core dumped)". [1] Source: https://forum.kde.org/viewtopic.php?f=312&t=160623#p416780
Thanks for reporting! I cannot reproduce here, for me there is no crash, but as well no thumbnail. I cannot open the .svg with gimp. It looks like it is broken for some reason ? If I download this one https://www.riusma.com/web/doc/plasma/riusma-kde-plasma-5-16-wallpaper-2019-starry-night-on-matterhorn-def-001.svg there is no problem. Though I dont know where to get the original svg of the "dusk" version from the webpage. Could you please drop a link ?
Thanks a lot for the answer. Actually, I don't understand your question. The SVG file I attached in the ZIP archive is the same as https://www.riusma.com/web/doc/plasma/riusma-kde-plasma-5-16-wallpaper-2019-starry-night-on-matterhorn-def-001.svg and Thunar crashes with both on my system (Xubuntu 19.04 64-bit).
By the way, I can open the SVG file with Inkscape without any crash.
There is definately a difference between the zipped file and the one on the website. The file from the website has 285,7kiB where the zipped one has 294,6kiB. Possibly the creator fixed it meanwhile ? True, inkscape can open the broken file, but it as well reports some error in the console: >Starry dusk on Matterhorn.svg:1140: parser error : expected '>' ></svg:svg> > ^ >Starry dusk on Matterhorn.svg:1140: parser error : Extra content at the end of the document ></svg:svg> > ^ >WARNING: unknown type: xhtml:script >WARNING: unknown type: style Here the error-message from gimp: >»/home/schwinn/software/thunar_test/svg-crash/Starry dusk on Matterhorn.svg« konnte nicht geöffnet werden: Datei > »/home/schwinn/software/thunar_test/svg-crash/Starry dusk on Matterhorn.svg« konnte nicht zum Lesen geöffnet werden: Error domain > 1 code 76 on line 1140 column 14 of file:///home/schwinn/software/thunar_test/svg-crash: Opening and ending tag mismatch: > svg line 0 and svg:svg Anyway, as well a corrupt .svg file should not crash thunar. Since I cannot reproduce the crash, you will need to get a backtrace with debug symbols for further debugging. Here a manual on how to do that for different distributions: https://docs.xfce.org/contribute/bugs/start
I found something interesting: when I download the SVG file from https://www.riusma.com/web/doc/plasma/riusma-kde-plasma-5-16-wallpaper-2019-starry-night-on-matterhorn-def-001.svg by visiting the link (so Firefox displays the SVG file), then doing "Ctrl+s", the saved SVG file (size: 321 KiB) makes Thunar to crash. However, if I download it by right-clicking the link and choose to save the file, the resulting file (size: 295 KiB) doesn't make Thunar to crash, neither if I get the file using curl: $ curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0" https://www.riusma.com/web/doc/plasma/riusma-kde-plasma-5-16-wallpaper-2019-starry-night-on-matterhorn-def-001.svg > "Starry dusk on Matterhorn2.svg"
Still no crash for me :F ... for me it does not matter if I download via "Ctrl+s", right-click or curl. However via curl the file realy has a different size (321KiB). Possibly Firefox cahces the file somehow. Looks like you have to get a backtrace to further investigate.
Is the backtrace attached OK?
Created attachment 8859 Backtrace
Yes, thanks you, the backtrace is nice! Looks like "gdk_pixbuf__svg_image_load_increment" is the one which crashed. Possibly I dont get the crash, since I run a different gtk version (debian stable here) So best open a bug on https://gitlab.gnome.org/GNOME/gtk Feel free to link this one ! I will close the bug, since it cannot be fixed within Thunar.
Ah, one last thing: You as well can reproduce the crash in nautilus ?
Yes, Nautilus crashes too. See the backtrace.
Created attachment 8860 Nautilus backtrace
Reported on the GTK bug tracker: https://gitlab.gnome.org/GNOME/gtk/issues/2090
Good job, thanks for the link !