0.20 crashing when event filter installed

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
KAKM
Posts: 109
Joined: Tue May 04, 2021 12:17 am

0.20 crashing when event filter installed

Post by KAKM »

I've been trying to get an event filter installed on the FreeCAD application to send a signal with information about the event, and it works sometimes, but it is highly prone to crashing when I run the function that installs the event filter (make_recorder() ). It happens somewhere between 50% and 75% of the times I run that function, and I have had it run successfully once, deleted the filter, and when I tried running it a second time, it crashed.

I also discovered in the process of this debugging that I can open FreeCAD from the shortcut in the applications menu, but if I try to open it from the command line, I immediately get a segmentation fault. So I can't make a log file.

Code: Select all

MacBook-Air:~ Katy$ /applications/freecad.app/contents/macos/freecad
FreeCAD 0.20, Libs: 0.20R28901 +1 (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.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Segmentation fault: 11
I've attached a representative system crash report and the python file that has the problem code in case that's useful. Is this a known issue, and if so, is there a work around?

Code: Select all

OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.20.28901 +1 (Git)
Build type: Release
Branch: ipatch.builds.git.master.head.may10
Hash: 778a95f27e26e040ff29599847a224d44b7a5fa7
Python 3.10.4, Qt 5.15.3, Coin 4.0.1, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * Tutorial-dev
  * CfdOF 1.16.3
Attachments
Apple Crash Report.txt
(153.03 KiB) Downloaded 11 times
TutorialUi.py
(6.88 KiB) Downloaded 11 times
Post Reply