View Issue Details

IDProjectCategoryView StatusLast Update
0004528File formatsBugpublic2021-01-31 12:13
ReporterStefanBruens Assigned To 
Status closedResolutionduplicate 
Product Version0.18 
Summary0004528: Crash in SVG import
DescriptionNote: This has been reported several times, but as the other reports are all closed, it is not possible to add new comments to it.

The crash is caused by two different expat library versions imported at the same time. One is from python (typically using the the system expat) and one from Coin3D (defaulting to a bundled expat).

The crash happens when the two expat versions have different ABIs. Coin3D before 4.0.0 bundled expat 2.0.1, while 4.0.0 was updated to 2.2.6, which is ABI compatible with the current 2.2.10. This issue will likely reappear when expat changes the ABI again.

How to fix:
Use ABI compatible versions. Best is to use the system libexpat for both Coin3D and python. Coid3D defaults to the bundled libexpat, system libexpat has to be explicitly configured:

CMake (since 4.0.0): `-DUSE_EXTERNAL_EXPAT`
autoconf (legacy): `--enable-system-expat`, but CAVEAT:
Steps To ReproduceTry to import an SVG file.
TagsNo tags attached.
FreeCAD InformationOS: openSUSE Tumbleweed
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Release
Python version: 3.8.6
Qt version: 5.15.2
Coin version: 3.1.3
OCC version: 7.3.0
Locale: English/United States (en_US)


related to 0003307 closedKunda1 File formats Freecad segfault on SVG import 
related to 0003355 closed File formats SVG importer: regression from 0.16 to 0.17 
related to 0003557 closednormandc FreeCAD Every time that I try to import a svg plane file, freecad crashes 



2021-01-31 12:13

administrator   ~0015245

Thanks. Closing.

Issue History

Date Modified Username Field Change
2021-01-04 21:04 StefanBruens New Issue
2021-01-04 21:05 StefanBruens Relationship added related to 0003307
2021-01-04 21:06 StefanBruens Relationship added related to 0003355
2021-01-04 21:06 StefanBruens Relationship added related to 0003557
2021-01-31 12:13 Kunda1 Status new => closed
2021-01-31 12:13 Kunda1 Resolution open => duplicate
2021-01-31 12:13 Kunda1 Note Added: 0015245