View Issue Details

IDProjectCategoryView StatusLast Update
0003355File formatsBugpublic2021-01-04 21:06
Reporterunfa Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Summary0003355: SVG importer: regression from 0.16 to 0.17
DescriptionAs reported in the forums:
https://forum.freecadweb.org/viewtopic.php?f=3&t=27135&p=217420#p217420
Steps To Reproduce1. Create a new project
2. Import attached SVG as geometry
Tagsimport, SVG
FreeCAD Information

Relationships

related to 0002488 closedyorik Draft Standard paths issues from import SVG to FreeCAD 
related to 0003307 closedKunda1 File formats Freecad segfault on SVG import 
related to 0004528 closed File formats Crash in SVG import 

Activities

unfa

2018-02-27 12:26

reporter  

Gorzów prod 07.svg (86,868 bytes)   
Gorzów prod 07.svg (86,868 bytes)   

unfa

2018-02-27 12:26

reporter   ~0010985

I attach an example file (I pressed something and posted the issue prematurely - sorry).

It imports fine in FreeCAD 0.16 (stable) but break in FreeCAD daily 0.17.

Kunda1

2018-03-03 10:11

administrator   ~0010986

@wmayer attend to this pre or post 0.17 ?

wmayer

2018-03-04 10:00

administrator   ~0011000

When loading with v0.17 which may use occ7.0 then the following error occurs:


Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Projects\FreeCAD-git\ReleaseOCC\Mod\Draft\importSVG.py", line 1200, in insert
    parser.parse(pythonopen(filename))
  File "C:\Projects\FreeCADLibs_11.4_x64_VC12\bin\python27.zip\xml\sax\expatreader.py", line 107, in parse
  File "E:\FClibs_vc12_x64\bin\lib\xml\sax\xmlreader.py", line 123, in parse
  File "C:\Projects\FreeCADLibs_11.4_x64_VC12\bin\python27.zip\xml\sax\expatreader.py", line 210, in feed
  File "C:\Projects\FreeCADLibs_11.4_x64_VC12\bin\python27.zip\xml\sax\expatreader.py", line 304, in start_element
  File "C:\Projects\FreeCAD-git\ReleaseOCC\Mod\Draft\importSVG.py", line 794, in startElement
    sh = self.applyTrans(sh)
  File "C:\Projects\FreeCAD-git\ReleaseOCC\Mod\Draft\importSVG.py", line 1077, in applyTrans
    sh = sh.transformGeometry(transform)
<class 'Part.OCCError'>: Geom_RectangularTrimmedSurface::V1==V2

FreeCAD

When loading with v0.16 which here uses occ6.8 no error occurs.

micksulley

2018-07-24 09:31

reporter   ~0011543

Last edited: 2018-07-24 09:34

I also experienced crash when importing .svg file. It was after an upgrade from Mint 18.3 to Mint 19 and I believe it is due to libexpat1 versions. From research I needed to downgrade the version, here what I did to fix it -

downloaded from https://pkgs.org/download/libexpat1
Ubuntu 17.10 versions
libexpat1_2.2.3-1_amd64.deb
libexpat1_2.2.3-1_i386.deb
then go to Download directory and install
sudo dpkg -i libexpat1_2.2.3-1_i386.deb
sudo dpkg -i libexpat1_2.2.3-1_amd64.deb

Note had to install 386 version first

Reboot & test - still crashes
Try agin with Ubuntu 16.04 versions
libexpat1_2.1.0-7ubuntu0.16.04.3_i386.deb
libexpat1_2.1.0-7ubuntu0.16.04.3_amd64.deb
This time I had to install amd64 version first

Tested - it works!!!

Kunda1

2018-08-23 17:13

administrator   ~0011645

Last edited: 2018-08-23 17:15

Looks like this is related or a duplicate of 0003307
In that ticket thread it's reported that:

Dependency problem, Coin3d and Python use different versions of the libexpat library, cannot be fixed by freecad devel.

wmayer

Kunda1

2018-08-31 08:00

administrator   ~0011676

I'm going to resolve this ticket since it's an upstream packaging issue.

Issue History

Date Modified Username Field Change
2018-02-27 12:24 unfa New Issue
2018-02-27 12:24 unfa Tag Attached: SVG
2018-02-27 12:26 unfa File Added: Gorzów prod 07.svg
2018-02-27 12:26 unfa Note Added: 0010985
2018-03-03 10:11 Kunda1 Status new => confirmed
2018-03-03 10:11 Kunda1 Note Added: 0010986
2018-03-03 10:11 Kunda1 Tag Attached: import
2018-03-03 10:35 Kunda1 Relationship added related to 0002488
2018-03-04 10:00 wmayer Note Added: 0011000
2018-07-24 09:31 micksulley Note Added: 0011543
2018-07-24 09:34 micksulley Note Edited: 0011543
2018-08-23 17:12 Kunda1 Relationship added related to 0003307
2018-08-23 17:13 Kunda1 Note Added: 0011645
2018-08-23 17:15 Kunda1 Note Edited: 0011645
2018-08-23 17:15 Kunda1 Note Edited: 0011645
2018-08-31 08:00 Kunda1 Status confirmed => resolved
2018-08-31 08:00 Kunda1 Resolution open => no change required
2018-08-31 08:00 Kunda1 Note Added: 0011676
2018-09-22 15:57 wmayer Status resolved => closed
2021-01-04 21:06 StefanBruens Relationship added related to 0004528