Bug 149802 - SVG: Overlapping rectangles with one striped and the other transparent cannot be converted to eps via Inkscape when they are svg-exported with 'Selection' option.
Summary: SVG: Overlapping rectangles with one striped and the other transparent cannot...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-01 08:32 UTC by Dolon
Modified: 2023-02-06 15:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
odg file with example and problem description (21.31 KB, application/vnd.oasis.opendocument.graphics)
2022-07-01 08:33 UTC, Dolon
Details
svg file witch cannot be converted to eps (38.02 KB, image/svg+xml)
2022-07-01 08:33 UTC, Dolon
Details
svg file, whole page exported, this is ok (38.96 KB, image/svg+xml)
2022-07-01 08:34 UTC, Dolon
Details
This file can be converted to eps with inkscape (7.68 KB, image/svg+xml)
2023-02-06 15:45 UTC, Dolon
Details
This file crashes inkscape when converting to eps (6.81 KB, image/svg+xml)
2023-02-06 15:46 UTC, Dolon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dolon 2022-07-01 08:32:19 UTC
Description:
When two rectangles (one striped, the other with transparency) are placed on top of each other (or just overlapping), and when these are svg-exported with the 'Selection' option, then Inkscape cannot convert the svg file to eps. It allocates more and more memory and crashes. Exporting without 'Selection' option, that means the whole page, works fine.

Steps to Reproduce:
1. Create a rectangular with striped surface.
2. Create another rectangular with any color filled and transparency.
3. Place the transparent rectangular on the striped rectangular.
4. Mark all elements and export the page to svg with ‚Selection‘ selected. When the svg file is opened in a viewer, it seems ok, but ...
5. … try to convert this svg file to eps via
   inkscape.com --export-type="eps" transparent-over-striped-bug.svg
   this allocates more and more memory and crashes after some time.


Actual Results:
Inkscape crashes with this svg file.

Expected Results:
eps file.


Reproducible: Always


User Profile Reset: No



Additional Info:
When
-  the rectangulars do not overlap
or
-  if the whole page is exported without ‚Selection‘ option,
there is no problem.

I reported another SVG problem (#149801). Probably there is the same cause.
Comment 1 Dolon 2022-07-01 08:33:07 UTC
Created attachment 181054 [details]
odg file with example and problem description
Comment 2 Dolon 2022-07-01 08:33:55 UTC
Created attachment 181055 [details]
svg file witch cannot be converted to eps
Comment 3 Dolon 2022-07-01 08:34:45 UTC
Created attachment 181056 [details]
svg file, whole page exported, this is ok
Comment 4 Buovjaga 2023-01-24 08:48:29 UTC
I confirm the issue with the attached SVG, but I can't reproduce if I export from the ODG.

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists with 7.4. Change to RESOLVED WORKSFORME, if the problem went away.

Inkscape 1.2.2 (b0a8486541, 2022-12-01)

Arch Linux 64-bit, X11
Version: 7.4.4.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.4.4-1
Calc: threaded

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 713493c107e6a210ef9b87d033efd0614271483a
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 24 January 2023
Comment 5 Dolon 2023-02-06 13:43:22 UTC Comment hidden (off-topic)
Comment 6 Dolon 2023-02-06 13:46:35 UTC Comment hidden (off-topic)
Comment 7 Dolon 2023-02-06 15:42:13 UTC
Problem still remains with LibreOffice 7.5.0.3 (X86_64), checked with Windows 10 Pro.

When there are only the two rectangles in the page, it works well exporting the whole page and fails exporting the selected rectangles only.

I opened both svg files with an text editor. The svg file which can be converted from inkscape to eps has a class definition ClipPathGroup. The svg file witch crashes inkscape does not have this definition.

There are more differences, of course. I try to upload both svg files in a few minutes.
Comment 8 Dolon 2023-02-06 15:45:26 UTC
Created attachment 185154 [details]
This file can be converted to eps with inkscape
Comment 9 Dolon 2023-02-06 15:46:02 UTC
Created attachment 185155 [details]
This file crashes inkscape when converting to eps