[solved] osx: Sketcher: reference dimension: reproducible crash

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!
JimKueneman
Posts: 2
Joined: Mon Feb 15, 2021 12:33 pm

Re: osx: Sketcher: reference dimension: reproducible crash

Post by JimKueneman »

TSC wrote: Tue Feb 14, 2023 7:27 pm I have the same issue on a 16“ MacBook Pro with M2 Pro cpu running macOS 13.2 Ventura

I searched the issue tracker at GitHub for this with the keywords "sketcher reference crash", but with no result.

https://github.com/FreeCAD/FreeCAD/issu ... ence+crash

Do we already have a ticket for this or will this be somehow otherwise been taken care of?

I have found this issue in FreeCad 0.20.2 and in FreeCad 0.21.0 on ARM only.
FreeCad 0.20.2 on my Intel MacBook Pro from 2014 does not have this issue.
I have found FreeCad unusable on my new M1 ARM Mac. Sketcher will crash constantly when trying to using constraints. It is not repeatable but too often you click an item after selecting a constraint and FreeCad will just vanish from existence and you have to start open the program again. Use the same constraint again after starting the application again and odds are it will not crash at the same point.

Jim
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: osx: Sketcher: reference dimension: reproducible crash

Post by chrisb »

JimKueneman wrote: Tue Mar 14, 2023 1:05 pm I have found FreeCad unusable on my new M1 ARM Mac.
FreeCAD-Infos?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: osx: Sketcher: reference dimension: reproducible crash

Post by openBrain »

looo wrote: Sat Jan 21, 2023 7:20 pm Using:
May you be able to compile https://github.com/FreeCAD/FreeCAD/pull/9126 and test on a crashing OS version ?
TSC
Posts: 17
Joined: Thu Jul 14, 2022 9:52 am

Re: osx: Sketcher: reference dimension: reproducible crash

Post by TSC »

The issue still exists on the current weekly build on my 16“ MacBook Pro with M2 Pro cpu running macOS 13.4 Ventura

FreeCAD_weekly-builds-33357-2023-06-04-conda-macOS-x86_64-py311.dmg

Code: Select all

OS: macOS 13.4
Word size of FreeCAD: 64-bit
Version: 0.21.0.33357 (Git)
Build type: Release
Branch: master
Hash: f0560ac2078ad71b4c97b74281990bb916431da9
Python 3.11.3, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.2, OCC 7.7.1
Locale: C/Default (C)
Installed mods: 
  * fasteners 0.4.55
Sometimes it crashes, sometimes you get a red (driving) dim where a blue (reference) dim should be created.

Message Windows appears with the following:
Unhandled exception in ViewProvider::eventCallback: ('invalid syntax', ('<string>', 1, 59,
"App.getDocument('Unnamed').getObject('Sketch').setDriving(,False)|n", 1, 60))
(Event type: SoMouseButtonEvent, object type: SketcherGui::ViewProviderSketch)
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: osx: Sketcher: reference dimension: reproducible crash

Post by looo »

just updated osx and the error is resolved using this versions:

Code: Select all

```
OS: macOS 14.1.1
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.34959 (Git)
Build type: Release
Branch: main
Hash: 640018bfa7878a79e1b3c220ddd488d66464dc70
Python 3.10.13, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.6.3
Locale: German/Austria (de_AT)
Installed mods: 
  * Plot 2022.4.17
  * AirPlaneDesign 0.4.0
  * CurvedShapes 1.0.4
  * Assembly3 0.12.0
```

chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: [solved] osx: Sketcher: reference dimension: reproducible crash

Post by chrisb »

Thanks! I will test the next weekly.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [solved] osx: Sketcher: reference dimension: reproducible crash

Post by looo »

chrisb wrote: Sat Nov 18, 2023 5:27 pm Thanks! I will test the next weekly.
actually I think this was resolved by the osx update, not by changes of the freecad-source.

with this version it works for me with different freecad-versions: OS: macOS 14.1.1
Post Reply