SVG import segfault

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
radl
Posts: 4
Joined: Wed Sep 12, 2018 9:18 pm

Re: SVG import segfault

Post by radl »

Hi!

I have problem with libexpat but on Fedora 28. Does anyone know how to do the process described by Chris_G ??




OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: Polish/Poland (pl_PL)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: SVG import segfault

Post by Kunda1 »

radl wrote: Sat Oct 06, 2018 3:12 pm OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: Polish/Poland (pl_PL)
An aside, your OCC version is also very inferior
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
radl
Posts: 4
Joined: Wed Sep 12, 2018 9:18 pm

Re: SVG import segfault

Post by radl »

is there any version that will have no problem with importing svg?
Kunda1 wrote: Sat Oct 06, 2018 3:35 pm
radl wrote: Sat Oct 06, 2018 3:12 pm OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: Polish/Poland (pl_PL)
An aside, your OCC version is also very inferior
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: SVG import segfault

Post by NormandC »

OCE/OCC has no relation to the libexpat issue. Kunda1 was just mentioning that your OCC version is extremely old. Many features in FreeCAD won't be available, or have bugs.

Chris_G's fix on Ubuntu installs libexpat version 2.1.0 (as is clearly shown in his post). So you need to downgrade your expat package to this version. I do not know if you can find it packaged on Fedora, nor what is the recommended procedure. For that you should ask advice on a forum dedicated to Fedora.
radl
Posts: 4
Joined: Wed Sep 12, 2018 9:18 pm

Re: SVG import segfault

Post by radl »

NormandC wrote: Sat Oct 06, 2018 3:51 pm OCE/OCC has no relation to the libexpat issue. Kunda1 was just mentioning that your OCC version is extremely old. Many features in FreeCAD won't be available, or have bugs.

Chris_G's fix on Ubuntu installs libexpat version 2.1.0 (as is clearly shown in his post). So you need to downgrade your expat package to this version. I do not know if you can find it packaged on Fedora, nor what is the recommended procedure. For that you should ask advice on a forum dedicated to Fedora.
thanks for explanation
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: SVG import segfault

Post by sgrogan »

radl wrote: Sat Oct 06, 2018 4:26 pm thanks for explanation
FreeCADer @PrzemoF provides Fedora packages via copr: https://forum.freecadweb.org/viewtopic. ... 90#p251319
I think he takes care of this.
"fight the good fight"
mrvanes
Posts: 7
Joined: Mon Dec 17, 2018 6:34 pm

Re: SVG import segfault

Post by mrvanes »

Ubuntu 18.10 (Cosmic) just received a wayland update that depends on a more recent version of libexpat1:

Code: Select all

dpkg: dependency problems prevent configuration of libwayland-bin:
 libwayland-bin depends on libexpat1 (>= 2.0.1); however:
  Package libexpat1:amd64 is not configured yet.
So it officially became a bit harder to keep libexpat1 downgraded :(
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: SVG import segfault

Post by Kunda1 »

Has the bug been reported upstream (https://github.com/libexpat/libexpat)?
I can't seem to find it
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: SVG import segfault

Post by NormandC »

IIRC the problem is not with the libexpat library itself, but with libcoin, which embeds its own obsolete version of libexpat that clashes with the system one. kkremitzki announced an upcoming new package of libcoin, I wonder if this version will fix the issue.

Edit: this answer was already given by wmayer in this very same topic in page 2! ;)

https://forum.freecadweb.org/viewtopic. ... 10#p208769
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: SVG import segfault

Post by NormandC »

Coin3D Transition in Debian; Pivy 0.6.4 finally uploaded
Changes:
coin3 (4.0.0~CMake~6f54f1602475+ds1-1~exp1) experimental; urgency=medium
.
(...)
* Use of system expat library. Added as build dependency. (Closes: #884947)
Will be fixed in Debian soon, we'll be able to backport it to the Ubuntu PPA.

As for other distros:
wmayer wrote: Sat Sep 09, 2017 10:50 am
mlampert wrote: Sat Sep 09, 2017 9:06 am Part of the problem was already reported to coin3d by an expat developer - and it doesn't look like anybody there is listening:
https://bitbucket.org/Coin3D/coin/issue ... pat-please
Unfortunately the Coin project is more or less dead so that nobody will fix it upstream. Besides this it's not a long-term solution anyway because as soon as the system version of expat increases you have the same problem again. So, the best is to fix by the maintainers of each distribution.
Post Reply