View Issue Details

IDProjectCategoryView StatusLast Update
0003930FreeCADBugpublic2021-02-06 06:49
ReporterMat2ch Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
OSDebian GNU/LinuxOS Versionbuster/sid 
Product Version0.18 
Target Version0.20 
Summary0003930: Hard Crash when discarding the formula editor on a scaled object
DescriptionUppon discarding the formula editor of the scale in the attached project file Freecad crashes.

This was first reported to me by a 0.17 user and I could recreate it in 0.18.

This video shows the steps to reproduce if anything is unclear:
https://photos.google.com/share/AF1QipOF4BAOPQ--MXJ-tqXWRG9JAUcgzQzo1bK4LuZ0PmddeXrEdeAmbJZkP0qs-AtDvg?key=RHhyOFlSYk5SNjB5WGxDeUdYZms2aGlKNGhwMDJn

Moderator edit:
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=39115
Steps To Reproduce1. Open FreeCad
2. Load the Stamp.FCStd
3. Find the "Scale" object in the tree
4. Go to the "Model" view in the combo dialog
5. Select the value of Scale -> x and click on the formula editor button
6. Discard the formula editor and Freecad crashes.
Additional InformationOS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
TagsNo tags attached.
FreeCAD Information

Activities

Mat2ch

2019-04-09 09:09

reporter  

freecad-python3-20190409-105809.kcrash.txt (Attachment missing)
Stamp.FCStd (Attachment missing)

Kunda1

2019-04-09 20:57

administrator   ~0013022

@Mat2ch did you happen to post this issue in the FreeCAD forums ?

dskd

2019-04-13 23:17

reporter   ~0013026

Last edited: 2019-04-13 23:20

I am affected by this bug as well. On my system also inputting any formula (e.g. "1") and confirming crashes freecad as well.

Kubuntu 18.10
FreeCAD daily 16093

Kunda1

2019-04-24 11:15

administrator   ~0013039

@chrisb can you confirm this issue?

Kunda1

2019-06-13 04:43

administrator   ~0013194

Last edited: 2019-06-13 04:45

I can recreate this bug on
OS: Manjaro Linux (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16966 (Git) AppImage
Build type: Release
Branch: master
Hash: fbafd698aefeae2dbb5a711647346b9cac7794e9
Python version: 3.7.1
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: C/Default (C)

Program received signal SIGSEGV, Segmentation fault.
#0 /usr/lib/libc.so.6(+0x378b0) [0x7ffff52768b0]
#1 0x7ffff6e4552f in App::PropertyExpressionEngine::setValue(App::ObjectIdentifier const&, boost::shared_ptr<App::Expression>, char const*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libFreeCADApp.so+0x4f
0000002 0x7ffff75f7829 in Gui::ExpressionBinding::setExpression(boost::shared_ptr<App::Expression>) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libFreeCADGui.so+0x129
0000003 0x7ffff792122a in Gui::DoubleSpinBox::setExpression(boost::shared_ptr<App::Expression>) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libFreeCADGui.so+0x4a
0000004 0x7ffff791ed87 in Gui::DoubleSpinBox::finishFormulaDialog() from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libFreeCADGui.so+0x1e7
0000005 0x7ffff58b6c38 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Core.so.5+0xa78
0000006 0x7ffff5e60e9e in QDialog::finished(int) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x2e
0000007 0x7ffff5e615b8 in QDialog::done(int) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x38
0000008 0x7ffff58b6c38 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Core.so.5+0xa78
0000009 0x7ffff5d68112 in QAbstractButton::clicked(bool) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x32
0000010 /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5(+0x2372ea) [0x7ffff5d682ea]
0000011 /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5(+0x2383ef) [0x7ffff5d693ef]
0000012 0x7ffff5d695c4 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0xd4
0000013 0x7ffff5cd5978 in QWidget::event(QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x1e8
0000014 0x7ffff5c935ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x9c
0000015 0x7ffff5c98be7 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x7c7
0000016 0x7ffff7602bf9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libFreeCADGui.so+0x89
0000017 0x7ffff5888c78 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Core.so.5+0x118
0000018 0x7ffff5c97bdf in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x1bf
0000019 /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5(+0x1bfbcd) [0x7ffff5cf0bcd]
0000020 /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5(+0x1c2141) [0x7ffff5cf3141]
0000021 0x7ffff5c935ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x9c
0000022 0x7ffff5c98694 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Widgets.so.5+0x274
0000023 0x7ffff7602bf9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libFreeCADGui.so+0x89
0000024 0x7ffff5888c78 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Core.so.5+0x118
0000025 0x7ffff423bff4 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/./libQt5Gui.so.5+0x6d4
0000026 0x7ffff423d565 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/./libQt5Gui.so.5+0x105
0000027 0x7ffff421a8ab in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/./libQt5Gui.so.5+0xab
0000028 /tmp/.mount_FreeCAJPNpgr/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x9be40) [0x7ffff0ed3e40]
0000029 /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x2e8) [0x7ffff218aaf8]
0000030 /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/./libglib-2.0.so.0(+0x50d41) [0x7ffff218ad41]
0000031 /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x2e) [0x7ffff218adce]
0000032 0x7ffff58df7af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Core.so.5+0x5f
0000033 0x7ffff5886d1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Core.so.5+0x12a
0000034 0x7ffff588ef6d in QCoreApplication::exec() from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libQt5Core.so.5+0x8d
0000035 0x7ffff7599504 in Gui::Application::runApplication() from /tmp/.mount_FreeCAJPNpgr/usr/bin/../lib/libFreeCADGui.so+0x1514
0000036 /tmp/.mount_FreeCAJPNpgr/usr/bin/FreeCAD(main+0x6e5) [0x555555557765]
0000037 /usr/lib/libc.so.6(__libc_start_main+0xf3) [0x7ffff5262ce3]
0000038 /tmp/.mount_FreeCAJPNpgr/usr/bin/FreeCAD(+0x448c) [0x55555555848c]
[Inferior 1 (process 10069) exited with code 01]

CC @wmayer
FYI, I tried to debug but i couldn't get a backtrace. "no stack"

Kunda1

2019-09-05 20:12

administrator   ~0013537

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=39115
Also the bug doesn't crash FC for me anymore but still flashes an error
OS: Manjaro Linux (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18009 (Git) AppImage
Build type: Release
Branch: master
Hash: 0641ca0d1e020d18f23d2adb49959195266f04f7
Python version: 3.7.3
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)

Kunda1

2020-12-04 04:27

administrator   ~0015076

@Mat2ch can you re-upload the example file. It's become corrupted in the ticket somehow.

Mat2ch

2020-12-19 20:36

reporter   ~0015160

Hi,
sorry for the late answer.

I don't have that file anymore. I tried recreating what was done there in 0.18.1, but I failed to reproduce the bug. It is possible that this got fixed in a point release.

Issue History

Date Modified Username Field Change
2019-04-09 09:09 Mat2ch New Issue
2019-04-09 09:09 Mat2ch File Added: freecad-python3-20190409-105809.kcrash.txt
2019-04-09 09:09 Mat2ch File Added: Stamp.FCStd
2019-04-09 20:57 Kunda1 Note Added: 0013022
2019-04-09 20:57 Kunda1 Status new => feedback
2019-04-13 23:17 dskd Note Added: 0013026
2019-04-13 23:20 dskd Note Edited: 0013026
2019-04-24 11:15 Kunda1 Note Added: 0013039
2019-06-13 04:43 Kunda1 Note Added: 0013194
2019-06-13 04:43 Kunda1 Target Version => 0.19
2019-06-13 04:43 Kunda1 Summary Crash when discarding the formula editor on a scaled object => Hard Crash when discarding the formula editor on a scaled object
2019-06-13 04:45 Kunda1 Note Edited: 0013194
2019-06-13 04:45 Kunda1 Status feedback => confirmed
2019-09-05 20:12 Kunda1 Note Added: 0013537
2019-09-05 20:13 Kunda1 Description Updated
2020-12-04 04:27 Kunda1 Note Added: 0015076
2020-12-04 04:28 Kunda1 Status confirmed => feedback
2020-12-19 20:36 Mat2ch Note Added: 0015160
2020-12-19 20:36 Mat2ch Status feedback => new
2021-02-06 06:49 abdullah Target Version => 0.20