Frequent FreeCAD crashes.

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
kdtop3
Posts: 5
Joined: Wed Jun 10, 2020 10:35 am

Frequent FreeCAD crashes.

Post by kdtop3 »

Hey all,

I am relatively new to FreeCAD. My thanks to all those who have worked to develop this application.

My question is about frequent crashes. I am running FreeCAD-0.19-16854 on MacOS Catilina (though I had similar experience on prior versions of MacOS). I am currently working on a relatively simple part with 1 pad and 1 pocket. I have also had crashes with prior parts. I really want to use FreeCAD, but it is discouraging when crashes occur and I lose substantial work. The recovery process often seems to take me back a prior version of the part that perhaps was from an hour prior (I work slowly). Regarding the frequency of such crashes, it has happened on most projects that I have tried working on. Meaning that if I start working on a part, I will more-often-than-not have a crash before I complete the part. I was able to develop my current part to the point of export and 3D print, which was a small victory for me. But when I came back to tweak the design, then the crashes began.

I am not trying to be critical. I am a hobby software developer and I understand the difficulty of working with large projects, and I can only imagine the complexity of supporting multiple OS's.

Questions:
  • Is this just to be expected given the early stage of development of this opensource project?
    Is this a MacOS thing? I.e. more stable on other platforms?
    After a crash, MacOS generates a crass report, showing the stack leading to the crash that can be sent to Apple. (see addendum below) Do developers have access to these reports? Does anyone view them?
    Any suggestions for a Newbie like me to avoid this heartache?
Thanks in advance,

Kevin T

---ADDENDUM ---


Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000004d5554e0
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [8575]

VM Regions Near 0x4d5554e0:
-->
__TEXT 0000000108051000-0000000108059000 [ 32K] r-x/rwx SM=COW /Applications/FreeCAD.app/Contents/Resources/bin/FreeCAD

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libqcocoa.dylib 0x000000011030f471 0x1102e5000 + 173169
1 libQt5Widgets.5.6.2.dylib 0x0000000109806885 QMenu::actionEvent(QActionEvent*) + 1093
2 libQt5Widgets.5.6.2.dylib 0x00000001096c0544 QWidget::event(QEvent*) + 228
3 libQt5Widgets.5.6.2.dylib 0x0000000109804444 QMenu::event(QEvent*) + 1156
4 libQt5Widgets.5.6.2.dylib 0x0000000109679bd8 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 232
5 libQt5Widgets.5.6.2.dylib 0x000000010967b1be QApplication::notify(QObject*, QEvent*) + 478
6 libFreeCADGui.dylib 0x00000001080fffa9 Gui::GUIApplication::notify(QObject*, QEvent*) + 89
7 libQt5Core.5.6.2.dylib 0x0000000109e43478 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 168
8 libQt5Widgets.5.6.2.dylib 0x000000010966cea9 QActionPrivate::sendDataChanged() + 105
9 libFreeCADGui.dylib 0x0000000108133ba9 Gui::CommandManager::testActive() + 41
10 libQt5Core.5.6.2.dylib 0x0000000109e777a5 QMetaObject::activate(QObject*, int, int, void**) + 2981
11 libQt5Core.5.6.2.dylib 0x0000000109e6f6d8 QObject::event(QEvent*) + 136
12 libQt5Widgets.5.6.2.dylib 0x0000000109679bd8 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 232
13 libQt5Widgets.5.6.2.dylib 0x000000010967b1be QApplication::notify(QObject*, QEvent*) + 478
14 libFreeCADGui.dylib 0x00000001080fffa9 Gui::GUIApplication::notify(QObject*, QEvent*) + 89
15 libQt5Core.5.6.2.dylib 0x0000000109e43478 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 168
16 libQt5Core.5.6.2.dylib 0x0000000109e9bb99 QTimerInfoList::activateTimers() + 1033
17 libqcocoa.dylib 0x0000000110308cb2 0x1102e5000 + 146610
18 com.apple.CoreFoundation 0x00007fff386dab21 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19 com.apple.CoreFoundation 0x00007fff386daac0 __CFRunLoopDoSource0 + 103
20 com.apple.CoreFoundation 0x00007fff386da930 __CFRunLoopDoSources0 + 301
21 com.apple.CoreFoundation 0x00007fff386d9740 __CFRunLoopRun + 1272
22 com.apple.CoreFoundation 0x00007fff386d8bd3 CFRunLoopRunSpecific + 499
23 com.apple.HIToolbox 0x00007fff3722e65d RunCurrentEventLoopInMode + 292
24 com.apple.HIToolbox 0x00007fff3722e39d ReceiveNextEventCommon + 600
25 com.apple.HIToolbox 0x00007fff3722e127 _BlockUntilNextEventMatchingListInModeWithFilter + 64
26 com.apple.AppKit 0x00007fff3589eba4 _DPSNextEvent + 990
27 com.apple.AppKit 0x00007fff3589d380 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
28 com.apple.AppKit 0x00007fff3588f09e -[NSApplication run] + 658
29 libqcocoa.dylib 0x0000000110309991 0x1102e5000 + 149905
30 libQt5Core.5.6.2.dylib 0x0000000109e3f38e QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 414
31 libQt5Core.5.6.2.dylib 0x0000000109e43c19 QCoreApplication::exec() + 377
32 libFreeCADGui.dylib 0x00000001080773b6 Gui::Application::runApplication() + 10694
33 FreeCAD 0x0000000108055f50 main + 5904
34 libdyld.dylib 0x00007fff6fd7e7fd start + 1

User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Frequent FreeCAD crashes.

Post by Kunda1 »

kdtop3 wrote: Wed Jun 10, 2020 11:13 am I am running FreeCAD-0.19-16854 on MacOS Catilina
You're not up-to-date. Try recreating on the most recent 0.19.x and report back.
Also please post you full About info next time. Crashes may also occur because of 3rd party dependencies.

MacOS support sometimes lags behind Linux and Win. Please have perseverence, backup often and report crashes. This will help us keep MacOS more stable.

Edit: Checkout Known Issues thread as well.
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
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Frequent FreeCAD crashes.

Post by triplus »

Hi Kevin

As suggested, the very first thing you should do, is to upgrade to the latest version of FreeCAD 0.19 available:

https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre

P.S. You are using a rather old macOS binary, that still includes Qt 5.6.2. Indeed it was confirmed, on multiple occasions in the past, that using such version of Qt in combination with macOS does lead to frequent crashes. Therefore in short, what you are experiencing is normal and expected behavior. Once you will upgrade to the latest available macOS binary, that includes newer version of the Qt 5, situation should improve after. In addition FreeCAD is not in its early state of development anymore, it is mature software.
kdtop3
Posts: 5
Joined: Wed Jun 10, 2020 10:35 am

Re: Frequent FreeCAD crashes.

Post by kdtop3 »

Thank you all for the replies so far.

Regarding my software being out of date, here is my initial About information.
OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16854 (Git)
Build type: Release
Branch: master
Hash: fe0fd5512ba9a8a9c729cdc47af35bbe965050ac
Python version: 3.7.3
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
I went to the download page (https://www.freecadweb.org/downloads.php) and downloaded the MacOS option. It is only 0.18.16146, older than the version I was using. So it must be that I was using a development build. So I got the latest development build.

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21514 (Git)
Build type: Release
Branch: master
Hash: 89ddab33f692a9bd739171689f9ab0eb58d64b35
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

I was able to complete the task with my part without crash. I will report back if I have further problems.

I did get this message show up in a console as I was trying to delete a contraint. Not sure if this is a problem or not.

/Applications/FreeCAD.app/Contents/Resources/lib/python3.8/site-packages/mpmath/ctx_mp_python.py:892: SyntaxWarning: "is" with a literal. Did you mean "=="?
if other is 0:
/Applications/FreeCAD.app/Contents/Resources/lib/python3.8/site-packages/mpmath/ctx_mp_python.py:986: SyntaxWarning: "is" with a literal. Did you mean "=="?
if other is 0:
Delete: Selection not restricted to one sketch and its subelements


Thanks again everyone.

Kevin T.

P.s. if FreeCAD is now considered to be at a stable point, why is the version number so low? 0.19x seems like an alpha-version type number. Why not 1.0? It is what it is, and not likely to change. I'm just curious.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Frequent FreeCAD crashes.

Post by GeneFC »

kdtop3 wrote: Wed Jun 10, 2020 2:54 pm P.s. if FreeCAD is now considered to be at a stable point, why is the version number so low? 0.19x seems like an alpha-version type number. Why not 1.0? It is what it is, and not likely to change. I'm just curious.
If you search the forum, or just look at the index, you will find more than you really want to know. :lol:

Gene
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Frequent FreeCAD crashes.

Post by Kunda1 »

GeneFC wrote: Wed Jun 10, 2020 3:42 pm
kdtop3 wrote: Wed Jun 10, 2020 2:54 pm P.s. if FreeCAD is now considered to be at a stable point, why is the version number so low? 0.19x seems like an alpha-version type number. Why not 1.0? It is what it is, and not likely to change. I'm just curious.
If you search the forum, or just look at the index, you will find more than you really want to know. :lol:
TL;DR
It's a long story but there is definitely reasons for 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
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Frequent FreeCAD crashes.

Post by triplus »

kdtop3 wrote: Wed Jun 10, 2020 2:54 pm I was able to complete the task with my part without crash. I will report back if I have further problems.
Good to hear that.
P.s. if FreeCAD is now considered to be at a stable point, why is the version number so low? 0.19x seems like an alpha-version type number. Why not 1.0? It is what it is, and not likely to change. I'm just curious.
We are working on it and this should change, starting with the next development cycle.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Frequent FreeCAD crashes.

Post by vocx »

kdtop3 wrote: Wed Jun 10, 2020 2:54 pm P.s. if FreeCAD is now considered to be at a stable point, why is the version number so low? 0.19x seems like an alpha-version type number. Why not 1.0? It is what it is, and not likely to change. I'm just curious.
Despite what triplus says, he doesn't make the decision on when to release a stable version or not. FreeCAD isn't 1.0 because it is still under heavy development, with major changes to the source code incoming, it isn't mature enough, with a stable process of development, organization, programming documentation, etc. You can read more about this here, Discussion: FreeCAD is not ready for 1.0.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
martin51
Posts: 70
Joined: Sun May 03, 2020 8:45 pm
Location: Irvine, California

Re: Frequent FreeCAD crashes.

Post by martin51 »

kdtop3 wrote: Wed Jun 10, 2020 11:13 am
My question is about frequent crashes. I am running FreeCAD-0.19-16854 on MacOS Catilina (though I had similar experience on prior versions of MacOS).

[/mono][/size]
I'm new to 3D modeling and FreeCAD too and for what it's worth my initial experience on MacOS sounds similar to yours (https://forum.freecadweb.org/viewtopic.php?f=8&t=46836) with almost every session ending in a crash. Six weeks in and things are much improved partly, I'm guessing, due to the version of FreeCAD I'm using (0.19-21125) being more stable and partly because I know a little bit more about how the tools work. Early on I'd make a lot of wrong turns with frequent undos when some operation or other would come up with errors and trying to back out using the undo would often cause a crash. Glad to say this happens far less frequently so sticking with it has its rewards :D

I'm also running Catalina (10.15.5) and the one peristant problem I've had is that I can't have multiple files open at the same time as clicking tools or objects in the model tree will take me out of the window I'm working on bring a formerly inactive window to the front. Just trying to work out if this is unique to my system or a general issue with the MacOS.

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21125 (Git)
Build type: Release
Branch: master
Hash: 40600a55c2fe71ff589be677f6e427ccc937d003
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Frequent FreeCAD crashes.

Post by chrisb »

I'm still on MacOS 10.13, but I remember having this problem with some older version. It completely vanished with 0.19. With identical FreeCAD versions I had seen it on a retina display mac, while mine was ok.

What we have seen as well and what I have too is some extra events when zooming. So the issue may come from the mouse model. I use Gesture, what do you use?

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21329 (Git)
Build type: Release
Branch: master
Hash: 2330eef823b32ac412d839031cc174353a76b013
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply