Bug 1404387 - Export to SVG fails with error message
Summary: Export to SVG fails with error message
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: freecad
Version: 26
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-13 17:28 UTC by Andrig Miller
Modified: 2019-01-09 12:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-29 11:50:39 UTC
Type: Bug


Attachments (Terms of Use)
A Screen shot of the error message at the bottom of the UI. (203.82 KB, image/png)
2016-12-13 17:28 UTC, Andrig Miller
no flags Details

Description Andrig Miller 2016-12-13 17:28:28 UTC
Created attachment 1231289 [details]
A Screen shot of the error message at the bottom of the UI.

Description of problem:

When exporting a 3D CAD model to SVG, it fails to write the file, and gives an error at the bottom of the screen.

Version-Release number of selected component (if applicable):

OS: "Fedora release 25 (Twenty Five)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.Unknown
Build type: Unknown
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17


How reproducible:

Everytime.

Steps to Reproduce:
1. Open 3D CAD Model.
2. Select the model components for export.
3. Select File->Export
4. Select the SVG format, and enter the name and save.

Actual results:

Error displayed at the bottom of the screen.


Expected results:

SVG file with the selected components as a 2D image.

Additional info:

I have attached a screenshot of the error, as it disappears after a bit, or if you do anything in the UI.

Comment 1 Andrig Miller 2016-12-13 17:32:46 UTC
One thing I forgot to mention.  If you select "Flattened SVG" as the format, you get the above error and a blank SVG file.

If you select drawing, which SVG is one of the extensions, you get a different error, that says """" in File.  The result of that error is an SVG file that gives an error message in the image viewer, which looks like this:

Error domain 1 code 5 on line 4 column 76 of file:///home/andrigtmiller/Documents/Andrig's%20Aircooled%20Technology/CAD/FanShroudFrontVersion2.svg: Extra content at the end of the document


There seems to be content in the SVG file, and its not blank, but still is bad.

Comment 2 Fedora End Of Life 2017-11-16 19:50:19 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-12-12 10:40:51 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Andrig Miller 2017-12-12 16:06:33 UTC
I open these bugs, and they never get worked on, then they get closed when that version of Fedora becomes EOL.

The issue still remains, and no one ever looked at this, and the issue was opened almost exactly a year ago.

It's to the point that I will have to probably start building this package from source myself, and not depend on the Fedora package for it.

If FreeCAD is going to be in Fedora, then someone needs to start looking at the bugs reported against it.

Comment 5 Richard Shaw 2017-12-13 22:19:57 UTC
Can you run FreeCAD from a terminal and get the full error message? It's truncated in the screenshot.

Comment 6 Andrig Miller 2017-12-13 23:16:05 UTC
Here is what is in the terminal when exporting to a Drawing:

** (FreeCAD:16768): WARNING **: invalid source position for horizontal gradient

** (FreeCAD:16768): WARNING **: invalid source position for horizontal gradient
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No space left on device
Traceback (most recent call last):
  File "<string>", line 4, in <module>
<type 'exceptions.TypeError'>: Export of this object type is not supported by Drawing module
Stack Trace: Traceback (most recent call last):
  File "<string>", line 4, in <module>

Here is what is in the terminal when export to a Flattened SVG:

Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/usr/lib64/freecad/Mod/Draft/importSVG.py", line 1272, in export
    svg.write(Draft.getSVG(ob))
  File "/usr/lib64/freecad/Mod/Draft/Draft.py", line 2202, in getSVG
    (obj.Name,i))
  File "/usr/lib64/freecad/Mod/Draft/Draft.py", line 1790, in getPath
    raise ValueError('edges not ordered')
<type 'exceptions.ValueError'>: edges not ordered
Stack Trace: Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/usr/lib64/freecad/Mod/Draft/importSVG.py", line 1272, in export
    svg.write(Draft.getSVG(ob))
  File "/usr/lib64/freecad/Mod/Draft/Draft.py", line 2202, in getSVG
    (obj.Name,i))
  File "/usr/lib64/freecad/Mod/Draft/Draft.py", line 1790, in getPath
    raise ValueError('edges not ordered')

Comment 7 Richard Shaw 2018-01-03 14:41:18 UTC
Are you by chance running 3rd party video drivers like nvidia?

Comment 8 Andrig Miller 2018-01-03 17:20:41 UTC
I have the binary nvidia driver installed, but because it doesn't work with Wayland, its not being loaded.

Comment 9 Richard Shaw 2018-01-03 17:56:36 UTC
I still don't completely understand it but in looking through the forums, it looks like this problem (and the PDF issue because it renders an SVG first) is that it's rendered in the graphics subsystem. There is a workaround posted I think but I'm not sure how easy it is to implement.

Comment 10 Andrig Miller 2018-01-03 18:02:01 UTC
I have tried some things, and I did get PDF's to come out correctly, but it still doesn't do the SVG correctly.

Comment 11 Fedora End Of Life 2018-05-03 08:07:59 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2018-05-29 11:50:39 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.