It is important to copy paste all lines at once to reproduce.
Crash "works" regardless whether a document is loaded or not.
I have also tried several lines of code where lines like those below are printed in the end. That also triggers the problem. (But in that case mixed together with other lines of code - so not two print statements like one right after the other).
The "if True:" is simply to force some indentation - you can use a for loop as well.
It seems indentation plays a small role as simply printing those lines without indentation does not trigger the problem.
Code: Select all
if True:
print('ß')
print('ß')
Code: Select all
if True:
print('Bøf')
print('Bøf')
Code: Select all
if True:
print('Böf')
print('Böf')
Code: Select all
if True:
print('Æv')
print('Æv')
Code: Select all
if True:
print('ß')
print('TEST')
print('ß')
Code: Select all
if True:
print('ß')
Gui.Selection.getSelection()
print('ß')
Code: Select all
if True:
print('Boef')
print('Boef')
Code: Select all
if True:
print('Av')
print('Av')
Code: Select all
OS: Ubuntu Core 20 (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) Snap 161
Build type: Release
Branch: tag: 0.20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.2
Locale: Danish/Denmark (da_DK)
Installed mods:
* Assembly4 0.12.3
Code: Select all
$ /snap/bin/freecad
FreeCAD 0.20, Libs: 0.20R29177 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Adding snap-specific PYTHONPATH to sys.path: /home/anders/snap/freecad/common/.local/lib/python3.8/site-packages:/snap/freecad/161/lib/python3.8/site-packages:/snap/freecad/161/usr/lib/python3/dist-packages
Assembly4 workbench (v0.12.3) loaded
Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x43090) [0x7f26dd76d090]
#1 0x7f26e041fb54 in Gui::InteractiveInterpreter::compile(char const*) const from /snap/freecad/161/usr/lib/libFreeCADGui.so+0x54
#2 0x7f26e0421e16 in Gui::InteractiveInterpreter::runSource(char const*) const from /snap/freecad/161/usr/lib/libFreeCADGui.so+0x36
#3 0x7f26e0421f6b in Gui::InteractiveInterpreter::push(char const*) from /snap/freecad/161/usr/lib/libFreeCADGui.so+0xbb
#4 0x7f26e0422184 in Gui::PythonConsole::runSource(QString const&) from /snap/freecad/161/usr/lib/libFreeCADGui.so+0xf4
#5 0x7f26e0423c54 in Gui::PythonConsole::keyPressEvent(QKeyEvent*) from /snap/freecad/161/usr/lib/libFreeCADGui.so+0x4c4
#6 0x7f26de9c21b5 in QWidget::event(QEvent*) from /snap/freecad/161/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x745
#7 0x7f26dea723e2 in QFrame::event(QEvent*) from /snap/freecad/161/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x22
#8 0x7f26dea75129 in QAbstractScrollArea::event(QEvent*) from /snap/freecad/161/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x259