Bug 148167 - Writer does not display SVG file correctly when inserted as image
Summary: Writer does not display SVG file correctly when inserted as image
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
6.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, filter:svg, regression
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2022-03-24 21:37 UTC by Gerry
Modified: 2023-12-23 10:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
SVG-incorreclty-displayed-in-Writer.svg (60.65 KB, image/svg+xml)
2022-03-24 21:41 UTC, Gerry
Details
Firefox (top) vs LibreOffice 7.4 (bottom) (234.29 KB, image/png)
2022-03-25 09:05 UTC, Xisco Faulí
Details
SVG-in-Firefox-top_and_LibreOffice73_bottom.png (197.01 KB, image/png)
2022-03-25 19:38 UTC, Gerry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry 2022-03-24 21:37:26 UTC
Description:
Writer does not display correctly the attached .svg file when inserted as image.
The image shows four grey boxes with text in it. The text in the right grey box is not displayed correctly.

Firefox, Chromium and Inkscape correctly display the file. There is no problem.
The file was produced in Inkscape (saved as standard .svg)

Steps to Reproduce:
1. Open empty writer document
2. Insert -> Image -> choose .svg file attached to this bug report
3. You see the incorrectly rendered text in the right box

Actual Results:
The text in they right gray box is wrongly displayed

Expected Results:
Writer should display the image exactly as in Firefox, Chromium or Inkscape.


Reproducible: Always


User Profile Reset: No



Additional Info:
System: tested on Windows 10 and Ubuntu 21.10
LibreOffice: Version: 7.3.1.3 / LibreOffice Community
Build ID: 30(Build:3)
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 1:7.3.1~rc3-0ubuntu0.21.10.1~lo2
Calc: threaded
Comment 1 Gerry 2022-03-24 21:41:21 UTC
Created attachment 179090 [details]
SVG-incorreclty-displayed-in-Writer.svg
Comment 2 Xisco Faulí 2022-03-25 09:05:22 UTC
Created attachment 179100 [details]
Firefox (top) vs LibreOffice 7.4 (bottom)
Comment 3 Xisco Faulí 2022-03-25 09:07:16 UTC
Reproduced in

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 4a46a74a3de0ac7df5d3ce949dda5e809c1729ab
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded

and

Version: 6.0.0.0.alpha1+
Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3; 
Locale: es-ES (es_ES.UTF-8); Calc: group threaded
Comment 4 Xisco Faulí 2022-03-25 09:08:24 UTC
Not reproduced in

Version 4.0.0.3 (Build ID: 7545bee9c2a0782548772a21bc84a9dcc583b89)
Comment 5 Gerry 2022-03-25 19:38:52 UTC
Created attachment 179112 [details]
SVG-in-Firefox-top_and_LibreOffice73_bottom.png

Thanks Xisco for the Screenshots of the SVG in Firefox and Libreoffice. I assume that Xisco does not have the font Calibri installed, thus here is another screenshot from a system that has Calibri installed: 
The SVG in Firefox (top) & in LibreOffice 7.3.1.3 (bottom).

Both screenshots, Xisco's and mine, shows the bug in the right grey box in the svg drawing.
Comment 6 raal 2022-03-26 16:22:09 UTC
This seems to have begun at the below commit.
Adding Cc: to Michael Stahl ; Could you possibly take a look at this one?
Thanks
bibisect-42max$
first bad commit: [8a8b50772859fd6198e8e139ca853a4b7aca9133] source-hash-b8002169336b6b7597d32755e41fa3dc2688539e

https://git.libreoffice.org/core/+/b8002169336b6b7597d32755e41fa3dc2688539e

git bisect log
# bad: [8775b1622f226e863b864de7e208226cbfb914e3] source-hash-22ea573b7417db0392c006dff06cde50ddbcd469
# good: [b3c6cf289ff72449408fa01958092d9e482e82bd] source-hash-a2c9d4f8bbde97f175bae4df771273a61251f402
git bisect start 'master' 'oldest'
# good: [6074d63e3a0090a00b33b5af3c8ee06e83903698] source-hash-8559cc4d2526d04e8b9074685d2e62003dc02c29
git bisect good 6074d63e3a0090a00b33b5af3c8ee06e83903698
# good: [5a8ccb0e51b39fe1f67addfcfaf54e5ff3341790] source-hash-e6ab992c6fee2e84da7a7a25b1a0a0df9b4c629b
git bisect good 5a8ccb0e51b39fe1f67addfcfaf54e5ff3341790
# good: [1e8e1611cc2630f4c9ccef7dfcafbb3ec73e2649] source-hash-9e5132290b81e2907d4098d9a997f74cda2723f6
git bisect good 1e8e1611cc2630f4c9ccef7dfcafbb3ec73e2649
# bad: [c575011f0c0b80e1a855d647f2664f6a345538c7] source-hash-f7450d02665f8f6940d2f115ef16fb98d166403e
git bisect bad c575011f0c0b80e1a855d647f2664f6a345538c7
# bad: [d6655696c699ed1270fc198f4e542118b19e1f52] source-hash-f12f51316a2cb230138ec6dcdc7295e18b6fce28
git bisect bad d6655696c699ed1270fc198f4e542118b19e1f52
# good: [806f79f134b7c0f7e8b022b205447ca64ce660f2] source-hash-105c0a1626c5c15c9e3e08dc24aba6ef1977e3de
git bisect good 806f79f134b7c0f7e8b022b205447ca64ce660f2
# skip: [0e4939c6433e7524f3e2e6a37e2b6cd2505e78d2] source-hash-bf967a4f15c9f7c3461bf5717bb9938ddf476d17
git bisect skip 0e4939c6433e7524f3e2e6a37e2b6cd2505e78d2
# skip: [8405d21ff0ed146a813bc0cc9d1cef824750c314] source-hash-aa92403a2b8336c5317f0fc95fac23fb7e540c89
git bisect skip 8405d21ff0ed146a813bc0cc9d1cef824750c314
# bad: [c27e8f1f2a838b520f6d020f6db1b3ee78641565] source-hash-5079640fd7265c6b87e174c549c59203ad8bd93f
git bisect bad c27e8f1f2a838b520f6d020f6db1b3ee78641565
# skip: [56f91a6c605495d496d77cf0c5545cc085f343fc] source-hash-e9fdc84698a19e0ff2be9d676c84cc214cbc4f3d
git bisect skip 56f91a6c605495d496d77cf0c5545cc085f343fc
# bad: [7802043ae8f60f586faf7a598c55cda1604b9e7e] source-hash-4d13f9129d4e56fc9ae0501b88e19556d50c23d2
git bisect bad 7802043ae8f60f586faf7a598c55cda1604b9e7e
# skip: [df3e892c349649feb913d63de9e871aeb674c77d] source-hash-dfe1a6fbd83beaddf21e885ae20098e40ffcace2
git bisect skip df3e892c349649feb913d63de9e871aeb674c77d
# skip: [3e3cfb4254c533f78ee019a3af3c715e1ebd8ff2] source-hash-7af7023a42aee17c4be0966117b389d1b4319ceb
git bisect skip 3e3cfb4254c533f78ee019a3af3c715e1ebd8ff2
# skip: [cc81e47d144f5d34c01b269c07a6910e6809a47e] source-hash-4c64b8851b851cd88c762fd782d19bbbecdcbb50
git bisect skip cc81e47d144f5d34c01b269c07a6910e6809a47e
# skip: [e36a688b4370834e52540852b0753c339985caae] source-hash-ea1a7ba72e1bd50a12faff1f8180a5a44745715d
git bisect skip e36a688b4370834e52540852b0753c339985caae
# skip: [af4bfd9e551271657df600acf5a5c7805adb7518] source-hash-a071a29d4f7e8065a36a313027a007edac102e20
git bisect skip af4bfd9e551271657df600acf5a5c7805adb7518
# skip: [a980162d813cb1cc146b030c7df40c87a156c4b8] source-hash-81eba5c49dae5ba9efcdc8632044dc853afbf7b6
git bisect skip a980162d813cb1cc146b030c7df40c87a156c4b8
# skip: [beb4f1b44fb34bd893743790cf598e96ab93156d] source-hash-d00c4476da0cf5e2dd52c7609d8c595b3c10bce2
git bisect skip beb4f1b44fb34bd893743790cf598e96ab93156d
# bad: [af3e532156b4c84687cc00750584dcd4a2dc4a2d] source-hash-940a2944b0791cdf5894b4b2e4e30d8a71d5f304
git bisect bad af3e532156b4c84687cc00750584dcd4a2dc4a2d
# bad: [8cb8a55f8d6972136e0b339a2e7b34d3a37c605c] source-hash-4855946a5e40747a4ccecf17ba80c8bdbdd8c969
git bisect bad 8cb8a55f8d6972136e0b339a2e7b34d3a37c605c
# skip: [5d6792157906a308ca5fe330d877e5020d472e33] source-hash-fe5acac6976850d67f70347a2d2657f9105bfebd
git bisect skip 5d6792157906a308ca5fe330d877e5020d472e33
# skip: [f34a085054b4341252c3df63efbd46f3b53c2800] source-hash-02f80eef3c60385582f1bc2d8f2fbccb8d55b7ff
git bisect skip f34a085054b4341252c3df63efbd46f3b53c2800
# good: [974e1ce283aed31e4ea26ffed55fc97cea42226a] source-hash-761959e7af3ea0b7b80f33f511feec212b9dc7d0
git bisect good 974e1ce283aed31e4ea26ffed55fc97cea42226a
# skip: [33051b044c8ef84cee4d2487404fe521444efd89] source-hash-4536eefa32f634658a939f747e4791a678032bcb
git bisect skip 33051b044c8ef84cee4d2487404fe521444efd89
# bad: [a4bc2b9b2c40355fbff7222b5fa87128bd530091] source-hash-3cc85b071fdcf75adf8bcb3d59984940395c81e1
git bisect bad a4bc2b9b2c40355fbff7222b5fa87128bd530091
# bad: [8a8b50772859fd6198e8e139ca853a4b7aca9133] source-hash-b8002169336b6b7597d32755e41fa3dc2688539e
git bisect bad 8a8b50772859fd6198e8e139ca853a4b7aca9133
# good: [7c210f3e6dcb8e1395c92bc948ddfa926933c7d2] source-hash-a29c9eff781fd6bceee5078669a53c52086b5664
git bisect good 7c210f3e6dcb8e1395c92bc948ddfa926933c7d2
# good: [4067c418d26a8a94dc457fab7f67374baebab6f0] source-hash-63752c99899126ad57460dcc6c64ff223bfdce2c
git bisect good 4067c418d26a8a94dc457fab7f67374baebab6f0
# good: [31653dbb3567a9e70b8e48a9e844b3419712fc6a] source-hash-7fb73e6c30e66f028fe759376e3789456bf3ad33
git bisect good 31653dbb3567a9e70b8e48a9e844b3419712fc6a
# first bad commit: [8a8b50772859fd6198e8e139ca853a4b7aca9133] source-hash-b8002169336b6b7597d32755e41fa3dc2688539e
Comment 7 Michael Stahl (allotropia) 2022-03-28 11:31:49 UTC
yet another misleading bibisect result due to incremental builds
Comment 8 Aron Budea 2022-05-01 04:57:50 UTC
(In reply to Xisco Faulí from comment #4)
> Not reproduced in
> 
> Version 4.0.0.3 (Build ID: 7545bee9c2a0782548772a21bc84a9dcc583b89)
I can reproduce this with 4.0.0.3 (Linux) as well.
Comment 9 Stéphane Guillou (stragu) 2022-11-23 08:57:19 UTC
Reproduced in:

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a41c82407bbb73a4d87070326485ec4b4e954a65
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 10 Sophie Sipasseuth 2023-11-16 08:36:38 UTC
I don't see the bug with:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5fe2bf914c251009ec4709fa8fdc45c3b53f676b
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: de-DE (fr_FR); UI: fr-FR
Calc: threaded
Comment 11 raal 2023-12-23 10:58:59 UTC
repro with Version: 24.2.0.1.0+ (X86_64) / LibreOffice Community
Build ID: 2d02bb6c792350b7bc07b029f835bd0223402079
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded