I'm recently having trouble running debug build of FreeCAD, because it crashes on start-up with this printed to terminal (in Qt creator):
Code: Select all
Starting T:\_vt\dev\PC\Qt\FreeCAD\build-debug\bin\FreeCAD_d.exe...
Fatal Python error: PyThreadState_Get: no current thread
Fatal Python error: PyThreadState_Get: no current thread
The program has unexpectedly finished.
T:\_vt\dev\PC\Qt\FreeCAD\build-debug\bin\FreeCAD_d.exe crashed
Code: Select all
0 DebugBreak KERNELBASE 0x7fff7e946142
1 Py_FatalError pythonrun.c 1701 0x1e27688d
2 PyThreadState_Get pystate.c 332 0x1e254fca
3 PyObject_RichCompare object.c 949 0x1e180568
4 PyObject_RichCompareBool object.c 1004 0x1e1807c4
5 lookdict dictobject.c 342 0x1e14125c
6 PyDict_GetItem dictobject.c 743 0x1e13dc86
7 PyDict_GetItemString dictobject.c 2425 0x1e13dceb
8 Gui::Application::activateWorkbench Application.cpp 936 0x7fff454671d5
9 Gui::Application::runApplication Application.cpp 1724 0x7fff4546be45
10 main MainGui.cpp 239 0x7ff6b1a435c5
11 WinMain FreeCAD_d 0x7ff6b1a532d1
12 __tmainCRTStartup crtexe.c 618 0x7ff6b1a51391
13 WinMainCRTStartup crtexe.c 466 0x7ff6b1a5110e
14 BaseThreadInitThunk KERNEL32 0x7fff81d48364
15 RtlUserThreadStart ntdll 0x7fff81e570d1
I tried adding a Base::PyGILStateLocker lock; to the if-block where old workbench is being queried, and it fixes the crash. But then instead of the crash, I get broken UI in main window with about the same hit frequency as the crash used to happen with. I have a small frame which obscures File menu, and with all toolbars hidden (I can unhide them through View->Toolbars). This has been happening for quite a while already. Also, it seems to be otherwise sensitive
Any ideas?
---
forgot this initially
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10642 (Git)
Build type: Debug
Branch: PyInterface1
Hash: 1cd7463b0c077b1fdd30347c8f3e556b3eaba82f
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0