Description of problem: GIMP crashes when opening https://upload.wikimedia.org/wikipedia/commons/0/05/Dodecahedron_light_blue.svg Version-Release number of selected component (if applicable): gimp-2.10.10-1.module_f30+3878+d4400ad3.x86_64 How reproducible: Always Steps to Reproduce: 1. Download and open the file: https://upload.wikimedia.org/wikipedia/commons/0/05/Dodecahedron_light_blue.svg with GIMP. Actual results: Plug-in crashed: "file-svg" (/usr/lib64/gimp/2.0/plug-ins/file-svg/file-svg) The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side. Opening '.../Dodecahedron_light_blue.svg' failed: Procedure 'file-svg-load' returned no return values Expected results: Additional info:
I haven't tried other SVG files, nor this file on another system. But this clearly looks like a bug.
I have tried that with different SVG file and GIMP crashed as well, so it looks like general SVG file reading issue.
From further investigation, this issue is caused by librsvg2 package. When is used librsvg2-2.45.6-1.fc30, gimp plugin crashes with following backtrace: ---- START ---- loading menu '/usr/share/gimp/2.0/menus/image-menu.xml' for /image-menubar (file-svg:20920): librsvg-WARNING **: 09:51:17.437: Handle is still loading; call rsvg_handle_close() first thread '<unnamed>' panicked at 'Handle is not loaded', rsvg_internals/src/c_api.rs:656:13 stack backtrace: 0: <unknown> 1: <unknown> 2: <unknown> 3: <unknown> 4: <unknown> 5: <unknown> 6: <unknown> 7: <unknown> 8: <unknown> 9: gimp_main 10: __libc_start_main 11: <unknown> fatal runtime error: failed to initiate panic, error 5 /usr/lib64/gimp/2.0/plug-ins/file-svg/file-svg: fatal error: Aborted Terminating plug-in: '/usr/lib64/gimp/2.0/plug-ins/file-svg/file-svg' ---- END ---- When is used librsvg2-2.45.5-3.fc30, all works as expected. Moving this issue to librsvg2 package.
I think this is gimp doing something wrong with RsvgHandle (not closing?). Older librsvg seemed to just warn about it, but newer version also crashes. I filed an upstream issue about that at https://gitlab.gnome.org/GNOME/librsvg/issues/486
As per librsvg https://gitlab.gnome.org/GNOME/librsvg/issues/486, librsvg upstream considers this a gimp bug: https://gitlab.gnome.org/GNOME/gimp/issues/2561 Moving the ticket back to gimp.
Created attachment 1594380 [details] Fix for SVG size computation issue in how gimp was calling librsvg Taken from https://gitlab.gnome.org/GNOME/gimp/commit/38e87c2d16d0e519b35be9b2cdc9e5e28dbfab54 Confirmed that it resolves the issue for me.
FEDORA-2019-1939456421 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-1939456421
FEDORA-2019-a9479d664d has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-a9479d664d
gimp-2.10.12-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-1939456421
gimp-2.10.12-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-a9479d664d
gimp-2.10.12-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
FEDORA-MODULAR-2019-371c062595 has been submitted as an update to Fedora 29 Modular. https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2019-371c062595
FEDORA-MODULAR-2019-f5cc9ea786 has been submitted as an update to Fedora 30 Modular. https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2019-f5cc9ea786
gimp-2.10-3020190806121754.a5b0195c has been pushed to the Fedora 30 Modular testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2019-f5cc9ea786
gimp-2.10-2920190806121754.6c81f848 has been pushed to the Fedora 29 Modular testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2019-371c062595
gimp-2.10.12-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.
gimp-2.10-2920190806121754.6c81f848 has been pushed to the Fedora 29 Modular stable repository. If problems still persist, please make note of it in this bug report.
gimp-2.10-3020190806121754.a5b0195c has been pushed to the Fedora 30 Modular stable repository. If problems still persist, please make note of it in this bug report.