Description: Hi, When you import the attached SVG files, they can be read normaly, but when you close and start again Write, they can't. Steps to Reproduce: 1. Import SVG file as image 2. Image look like correct 3. Save and close the file 4. Open again 5. SVG image are marked as 'read error' Actual Results: SVG files are marked as 'read error'. No display. Expected Results: Display as like when they imported the first time. Reproducible: Always User Profile Reset: Yes Additional Info: This bug does not concern all the SVG files. Only the two attached files (taken from Wikipedia): https://fr.wikipedia.org/wiki/Fichier:Clavier-Azerty.svg https://fr.wikipedia.org/wiki/Fichier:KB_France_Linux.svg
Created attachment 180717 [details] original SVG file
Repro with: Version: 7.3.3.2 / LibreOffice Community Build ID: 30(Build:2) CPU threads: 12; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Ubuntu package version: 1:7.3.3~rc2-0ubuntu0.21.10.1~lo1 Calc: threaded And also in Version: 7.4.0.0.alpha1+ / LibreOffice Community Build ID: b2467d6c7af988f8ed4e090ebf9472be6c84fb06 CPU threads: 12; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Calc: CL I downloaded the SVG file, dragged the file into Writer and it was shown as expected. After saving the ODT file and reopening it, I get a "Read Error" message inside the image frame. I'm setting this to NEW.
The image fails to load because the comment at the beginning is too large
(In reply to Xisco Faulí from comment #3) > The image fails to load because the comment at the beginning is too large it seems it fails in const ErrCode nGraphicFilterErrorCode( aGraphicFilter.ImportGraphic(aGraphic, u"", *aStream)); if(ERRCODE_NONE != nGraphicFilterErrorCode) { // SVG import error, cannot continue break; } in filter/source/svg/svgfilter.cxx
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/fb07dcf993bd3ff7880b26414e4095560c296d8b tdf#149545: increase svg check size It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-7-6": https://git.libreoffice.org/core/commit/235ebd321bb89f0c1c103c4c7ae88f9ddf291a7f tdf#149545: increase svg check size It will be available in 7.6.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-7-5": https://git.libreoffice.org/core/commit/f13faf35bc62c9804ecacf2059ad724bc3cb2f24 tdf#149545: increase svg check size It will be available in 7.5.7. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.