segfault on .svg import(as geometry).

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!
Ank
Posts: 17
Joined: Thu Sep 19, 2019 5:22 pm

segfault on .svg import(as geometry).

Postby Ank » Wed Oct 16, 2019 9:12 pm

Code: Select all

$ ./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage 
/tmp/.mount_FreeCA9BWlyk
FreeCAD 0.18, Libs: 0.18R16131 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Interlocking laser cut workbench loaded
Gtk-Message: 22:59:24.501: Failed to load module "canberra-gtk-module"

(FreeCAD:26818): Gtk-WARNING **: 22:59:24.586: GModule (/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)

(FreeCAD:26818): Gtk-WARNING **: 22:59:24.586: Loading IM context type 'ibus' failed

(FreeCAD:26818): Gtk-WARNING **: 22:59:24.589: GModule (/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)

(FreeCAD:26818): Gtk-WARNING **: 22:59:24.589: Loading IM context type 'ibus' failed

(FreeCAD:26818): Gtk-WARNING **: 22:59:24.603: GModule (/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)

(FreeCAD:26818): Gtk-WARNING **: 22:59:24.603: Loading IM context type 'ibus' failed

** (FreeCAD:26818): WARNING **: 22:59:42.624: invalid source position for vertical gradient

** (FreeCAD:26818): WARNING **: 22:59:42.624: invalid source position for vertical gradient
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x43f60) [0x7f1aa72a0f60]
#1  /tmp/.mount_FreeCA9BWlyk/usr/lib/python3.6/lib-dynload/pyexpat.cpython-36m-x86_64-linux-gnu.so(XML_SetHashSalt+0x1b) [0x7f19fde74bab]
#2  /tmp/.mount_FreeCA9BWlyk/usr/lib/python3.6/lib-dynload/pyexpat.cpython-36m-x86_64-linux-gnu.so(+0x7015) [0x7f19fde5e015]
#3  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(_PyCFunction_FastCallDict+0x89) [0x7f1aab8cfb19]
#4  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(_PyCFunction_FastCallKeywords+0x46) [0x7f1aab8cff16]
#5  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(+0x1650da) [0x7f1aab9690da]
#6  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x1246) [0x7f1aab96ab46]
#7  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(+0x164370) [0x7f1aab968370]
#8  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(+0x165294) [0x7f1aab969294]
#9  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x3002) [0x7f1aab96c902]
#10  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(+0x164370) [0x7f1aab968370]
#11  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(+0x165294) [0x7f1aab969294]
#12  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x3002) [0x7f1aab96c902]
#13  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(+0x164370) [0x7f1aab968370]
#14  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(+0x165294) [0x7f1aab969294]
#15  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x3002) [0x7f1aab96c902]
#16  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(+0x164cde) [0x7f1aab968cde]
#17  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(PyEval_EvalCodeEx+0x6d) [0x7f1aab96930d]
#18  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(PyEval_EvalCode+0x3b) [0x7f1aab96935b]
#19  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libpython3.6m.so.1.0(PyRun_StringFlags+0x92) [0x7f1aab9a4772]
#20  0x7f1aabe02274 in Base::InterpreterSingleton::runString(char const*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libFreeCADBase.so+0x54
#21  0x7f1aaca44f4a in Gui::Command::doCommand(Gui::Command::DoCmd_Type, char const*, ...) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libFreeCADGui.so+0x12a
#22  0x7f1aac9b499b in Gui::Application::importFrom(char const*, char const*, char const*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libFreeCADGui.so+0xeb
#23  0x7f1aaca4e5f6 in StdCmdImport::activated(int) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libFreeCADGui.so+0x5c6
#24  0x7f1aaca4914c in Gui::Command::invoke(int) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libFreeCADGui.so+0x4c
#25  0x7f1aa80228d1 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Core.so.5+0x2c1
#26  0x7f1aa899d372 in QAction::triggered(bool) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x32
#27  0x7f1aa89a009d in QAction::activate(QAction::ActionEvent) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x5d
#28  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5(+0x2d8112) [0x7f1aa8b21112]
#29  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5(+0x2dd280) [0x7f1aa8b26280]
#30  0x7f1aa8b29dcb in QMenu::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x24b
#31  0x7f1aa89e973a in QWidget::event(QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x96a
#32  0x7f1aa8b2a69b in QMenu::event(QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x8b
#33  0x7f1aa89a6c6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x9c
#34  0x7f1aa89abb5d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0xc6d
#35  0x7f1aaca20371 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libFreeCADGui.so+0x41
#36  0x7f1aa7ff8425 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Core.so.5+0x75
#37  0x7f1aa89aa860 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x1a0
#38  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5(+0x1ba274) [0x7f1aa8a03274]
#39  /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5(+0x1bc2c3) [0x7f1aa8a052c3]
#40  0x7f1aa89a6c6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x9c
#41  0x7f1aa89ab2ea in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Widgets.so.5+0x3fa
#42  0x7f1aaca20371 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libFreeCADGui.so+0x41
#43  0x7f1aa7ff8425 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Core.so.5+0x75
#44  0x7f1aa839c7db in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Gui.so.5+0x40b
#45  0x7f1aa839df75 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Gui.so.5+0x115
#46  0x7f1aa837f74b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Gui.so.5+0x7b
#47  /tmp/.mount_FreeCA9BWlyk/usr/lib/libQt5XcbQpa.so.5(+0xa05d0) [0x7f1aa17955d0]
#48  /tmp/.mount_FreeCA9BWlyk/usr/lib/libglib-2.0.so.0(+0x569be) [0x7f1aa458f9be]
#49  /tmp/.mount_FreeCA9BWlyk/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x33) [0x7f1aa4590826]
#50  /tmp/.mount_FreeCA9BWlyk/usr/lib/libglib-2.0.so.0(+0x57a0b) [0x7f1aa4590a0b]
#51  /tmp/.mount_FreeCA9BWlyk/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x4a) [0x7f1aa4590acf]
#52  0x7f1aa804998c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Core.so.5+0x5c
#53  0x7f1aa7ff653b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Core.so.5+0xfb
#54  0x7f1aa7ffe466 in QCoreApplication::exec() from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libQt5Core.so.5+0x86
#55  0x7f1aac9bd25c in Gui::Application::runApplication() from /tmp/.mount_FreeCA9BWlyk/usr/bin/../lib/libFreeCADGui.so+0x16bc
#56  /tmp/.mount_FreeCA9BWlyk/usr/bin/FreeCAD(main+0x6c9) [0x403829]
#57  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f1aa7283b6b]
#58  /tmp/.mount_FreeCA9BWlyk/usr/bin/FreeCAD() [0x404699]
I am attaching one of many .svg files that can cause crash.
Antenna_RC.svg
(3.13 KiB) Downloaded 10 times
chrisb
Posts: 22526
Joined: Tue Mar 17, 2015 9:14 am

Re: segfault on .svg import(as geometry).

Postby chrisb » Wed Oct 16, 2019 9:24 pm

Moved to Help forum.
chrisb
Posts: 22526
Joined: Tue Mar 17, 2015 9:14 am

Re: segfault on .svg import(as geometry).

Postby chrisb » Wed Oct 16, 2019 9:26 pm

Have you checked the pinned "Known issues" topic in this Help forum? Did you try with the newest 0.19 version?
vocx
Posts: 3342
Joined: Thu Oct 18, 2018 9:18 pm

Re: segfault on .svg import(as geometry).

Postby vocx » Wed Oct 16, 2019 11:02 pm

Ank wrote:
Wed Oct 16, 2019 9:12 pm

Code: Select all

$ ./FreeCAD_0.18-16131-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage 
/tmp/.mount_FreeCA9BWlyk

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x43f60) [0x7f1aa72a0f60]
#1  /tmp/.mount_FreeCA9BWlyk/usr/lib/python3.6/lib-dynload/pyexpat.cpython-36m-x86_64-linux-gnu.so(XML_SetHashSalt+0x1b) [0x7f19fde74bab]
I remember there have been some problems with the libexpat library before. But I cannot remember a particular thread now.
Always add the important information to your posts if you need help.
To support the documentation effort, and code development, your donation is appreciated: paypal.
chrisb
Posts: 22526
Joined: Tue Mar 17, 2015 9:14 am

Re: segfault on .svg import(as geometry).

Postby chrisb » Thu Oct 17, 2019 5:08 am

vocx wrote:
Wed Oct 16, 2019 11:02 pm
I remember there have been some problems with the libexpat library before. But I cannot remember a particular thread now.
It is still in the Known issues topic mentioned above.
Ank
Posts: 17
Joined: Thu Sep 19, 2019 5:22 pm

Re: segfault on .svg import(as geometry).

Postby Ank » Fri Oct 18, 2019 1:23 pm

thanks for pointing out known issues to me.
User avatar
pl7i92LCNC
Posts: 209
Joined: Tue Mar 12, 2019 3:03 pm
Location: RLP DE

Re: segfault on .svg import(as geometry).

Postby pl7i92LCNC » Fri Oct 18, 2019 4:45 pm

the import workes fine on Appimage 0,19
the svg is tristed and has a nonclosed path on the R letter so 0,18 fails on closing

i added the FC file
antenna.jpg
antenna.jpg (25.21 KiB) Viewed 258 times
antenna_FC.FCStd
(22.04 KiB) Downloaded 14 times