bugGNU Octave - Bugs: bug #64362, Exporting to SVG creates huge...

 
 

bug #64362: Exporting to SVG creates huge files and never ends with some graphics drivers

Submitter:  Georg Wiora <gwiora>
Submitted:  Wed 28 Jun 2023 12:44:57 PM UTC
   
 
Category:  Performance Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Wont Fix Assigned to:  None
Originator Name:  georgw Open/Closed:  * Closed
Release:  * 8.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 28 Jun 2023 04:56:15 PM UTC, comment #3: 

This looks like an issue with a particular graphics drivers. Octave itself can probably not do much about it.
Octave for Windows already bundles an (optional) software renderer as a workaround.

Closing as won't fix (because this probably would need to be solved outside of Octave).

Please, leave a comment if you think there is something that Octave would need to do different.

Markus Mützel <mmuetzel>
Group administrator
Wed 28 Jun 2023 01:28:26 PM UTC, comment #2: 

Thanks for this hint! Yes this was the problem. Switching to software openGL with "openGL switcher" application solved the problem.

For me this problem is solved.

Georg Wiora <gwiora>
Wed 28 Jun 2023 12:53:08 PM UTC, comment #1: 

Most likely this is a problem with your hardware OpenGL driver.
Switch to the  software driver (there is a utility included with windows installation to do that). In 7.x version software was the default.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 28 Jun 2023 12:44:57 PM UTC, original submission:  

When I try to export a simple plot

figure();
plot([0,1],[0,1],'x');
print 'test.svg' -svgconvert


Octave runs forever and creates a huge temporary file that quickly becomes > 100 GByte if I don't kill the process. The GPU runs on 50% load and two out of 8 physical cores are on 100% load.

When I copy the temp file before stopping octave, I can see that it is svg-code.


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     width="418pt" height="314pt" viewBox="0 0 418 314">
<title>Figure 1</title>
<desc>
Creator: GL2PS 1.4.2, (C) 1999-2020 C. Geuzaine
For: Octave
CreationDate: Wed Jun 28 14:30:02 2023
</desc>
<defs>
</defs>
<polygon fill="#ffffff" points="0,0 418,0 418,314 0,314"/>
<g>
<polygon fill="#ffffff" points="0,314 418,314 418,0 0,0" shape-rendering="crispEdges"/>
<clipPath id="cp00418314">
  <polygon points="0,314 418,314 418,0 0,0"/>
</clipPath>
<g clip-path="url(#cp00418314)">
<polygon fill="#ffffff" shape-rendering="crispEdges" points="54.4343,23.5533 54.4335,23.5569 54.4608,23.5577"/>
<polygon fill="#ffffff" shape-rendering="crispEdges" points="54.4335,23.5569 54.4327,23.5605 54.46,23.5613"/>
<polygon fill="#ffffff" shape-rendering="crispEdges" points="54.4608,23.5577 54.4873,23.5621 54.46,23.5613"/>
<polygon fill="#ffffff" shape-rendering="crispEdges" points="54.4335,23.5569 54.46,23.5613 54.4608,23.5577"/>
<polygon fill="#ffffff" shape-rendering="crispEdges" points="54.4327,23.5605 54.4319,23.5641 54.4592,23.5649"/>
<polygon fill="#ffffff" shape-rendering="crispEdges" points="54.4319,23.5641 54.4312,23.5677 54.4585,23.5685"/>
<polygon fill="#ffffff" shape-rendering="crispEdges" points="54.4592,23.5649 54.4858,23.5693 54.4585,23.5685"/>
<polygon fill="#ffffff" shape-rendering="crispEdges" points="54.4319,23.5641 54.4585,23.5685 54.4592,23.5649"/>
... sequence never ends


After a normal svg header I get a sequence of infinite polygon fills with "crispEdges".

After adding the -nosvgconvert option to print command the problem persists.

Georg Wiora <gwiora>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by gwiora (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-26 nrjank Dependencies- bugs #63700 is dependent
    2023-06-28 mmuetzel StatusNone Wont Fix
        Open/ClosedOpen Closed
        SummaryExporting to SVG creates huge files and never ends Exporting to SVG creates huge files and never ends with some graphics drivers

    Back to the top

    Powered by Savane 3.13-54b4.
    Corresponding source code