FreeCad Repeatable Crash - Mac - Monterey
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
FreeCad Repeatable Crash - Mac - Monterey
Weekly build downloaded yesterday. (and also stable 0.20 build)
I am new to FreeCAD. I like it. Still struggling with it. Running iMac, Monterey 12.4, 8 core i9, 40GB ram
I created a box and 3d printed it. Trying to put a square hole in side wall. Putting a marker on the inside floor of box to orient self after print.
Opened Box. Clicked on sketch03 to get to floor of box, right click to get menu, select edit sketch. Clicked on rectangle tool. Drew rectangle on floor of sketch.
FreeCad 0.21 Vanishes. Quits. Bails. Exits. Sionara. FreeCad 0.20 also vanishes.
Even if this is the wrong thing to do, FreeCad should error but not vanish.
Box File attached.
How Do I go about 1) Adding a small rectangular pad inside the box for orientation, and 2) putting a rectangular hole on the side of the box? I have read some other forum posts, but they don't seem to match what I am interested in.
Comment:
I like FreeCAD.
I also understand the user interface is different from Sketchup. Interestingly enough, I had a rectangular hole in a box wall in under 10 seconds on that platform. Sketchup automatically constrains as you go. It also makes editing the constraints extraordinarily intuitive and simple. (But sometimes it gets lost and the part needs repair. ) Interesting concepts in that code base, but it is not free.
I am new to FreeCAD. I like it. Still struggling with it. Running iMac, Monterey 12.4, 8 core i9, 40GB ram
I created a box and 3d printed it. Trying to put a square hole in side wall. Putting a marker on the inside floor of box to orient self after print.
Opened Box. Clicked on sketch03 to get to floor of box, right click to get menu, select edit sketch. Clicked on rectangle tool. Drew rectangle on floor of sketch.
FreeCad 0.21 Vanishes. Quits. Bails. Exits. Sionara. FreeCad 0.20 also vanishes.
Even if this is the wrong thing to do, FreeCad should error but not vanish.
Box File attached.
How Do I go about 1) Adding a small rectangular pad inside the box for orientation, and 2) putting a rectangular hole on the side of the box? I have read some other forum posts, but they don't seem to match what I am interested in.
Comment:
I like FreeCAD.
I also understand the user interface is different from Sketchup. Interestingly enough, I had a rectangular hole in a box wall in under 10 seconds on that platform. Sketchup automatically constrains as you go. It also makes editing the constraints extraordinarily intuitive and simple. (But sometimes it gets lost and the part needs repair. ) Interesting concepts in that code base, but it is not free.
- Attachments
-
- SimulatorBox4.FCStd
- a box
- (94.79 KiB) Downloaded 10 times
Re: FreeCad Repeatable Crash - Mac - Monterey
I do not know why FreeCAD vanishes. Probably a MAC thing. Did you read the "Known OS Specific Issues"?
https://forum.freecadweb.org/viewtopic.php?f=3&t=30573
I had no problem placing a hole in the sidewalls.
In general you should use "Pocket" instead of "Hole", unless you need threads, countersinks, etc. Pocket is much easier to use.
Gene
https://forum.freecadweb.org/viewtopic.php?f=3&t=30573
I had no problem placing a hole in the sidewalls.
In general you should use "Pocket" instead of "Hole", unless you need threads, countersinks, etc. Pocket is much easier to use.
Gene
- Shalmeneser
- Veteran
- Posts: 9475
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: FreeCad Repeatable Crash - Mac - Monterey
* You should not sketch upon a face : Topological_naming_problem
* You can select 4 faces for the last hole (but using a sketch is better )
* Basic_Attachment_Tutorial
* You can select 4 faces for the last hole (but using a sketch is better )
* Basic_Attachment_Tutorial
- adrianinsaval
- Veteran
- Posts: 5541
- Joined: Thu Apr 05, 2018 5:15 pm
Re: FreeCad Repeatable Crash - Mac - Monterey
This looks wrong... @uwestoehr is the hole feature supposed to have previous features as children? IMO this is very wrong because the sequence is unclear, PD features should be consecutively placed in the tree, never one inside another. At most they should be showed in both places, directly under the body and under the feature that uses it.
No idea about the mac crash, anybody knows how to check the logs on mac? @chrisb can you reproduce?
- Shalmeneser
- Veteran
- Posts: 9475
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: FreeCad Repeatable Crash - Mac - Monterey
When a Hole use a Face and not a Sketch, the function giving the face goes under/inside the Hole function.
Here is an extreme example.
Here is an extreme example.
Re: FreeCad Repeatable Crash - Mac - Monterey
I can confirm the crash:
- Edit Sketch003
- Draw a rectangle: - Close Sketcher
-> crash
I'm short of time now, @wsmax, can you please start FreeCAD with --write-log and attach the log file here?
- Edit Sketch003
- Draw a rectangle: - Close Sketcher
-> crash
I'm short of time now, @wsmax, can you please start FreeCAD with --write-log and attach the log file here?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: FreeCad Repeatable Crash - Mac - Monterey
This is not a Mac specific crash but it could be Conda packaging related as I can repeat the issue with an AppImage as far back as December 2021.
No crash using (19th Dec 2021):
Crash using (21st December 2021):
If I manually add the commends to the Python Console:
there is no crash until I close the Sketch. There must have been a reason why two AppImages were released so close together back in late December 2021 and maybe that's the root cause, I don't see any Sketcher related obvious (to me) commits at that time which just out as the culprit https://github.com/FreeCAD/FreeCAD/comm ... s%2Fmaster
No crash using (19th Dec 2021):
Code: Select all
OS: Linux Mint 19.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.26651 (Git) AppImage
Build type: Release
Branch: (HEAD detached at d357d52)
Hash: d357d524d97db884b9bb562415e6b6d782ec02b4
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United Kingdom (en_GB)
Code: Select all
OS: Linux Mint 19.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.26683 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0388fbc)
Hash: 0388fbc98d49d874fb341b9037a743bc691d501f
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United Kingdom (en_GB)
If I manually add the commends to the Python Console:
Code: Select all
Gui.runCommand('Sketcher_CompCreateRectangles',0)
geoList = []
geoList.append(Part.LineSegment(App.Vector(-31.725159,17.828581,0),App.Vector(28.543715,17.828581,0)))
geoList.append(Part.LineSegment(App.Vector(28.543715,17.828581,0),App.Vector(28.543715,-16.236433,0)))
geoList.append(Part.LineSegment(App.Vector(28.543715,-16.236433,0),App.Vector(-31.725159,-16.236433,0)))
geoList.append(Part.LineSegment(App.Vector(-31.725159,-16.236433,0),App.Vector(-31.725159,17.828581,0)))
App.getDocument('SimulatorBox4').getObject('Sketch003').addGeometry(geoList,False)
conList = []
conList.append(Sketcher.Constraint('Coincident',4,2,5,1))
conList.append(Sketcher.Constraint('Coincident',5,2,6,1))
conList.append(Sketcher.Constraint('Coincident',6,2,7,1))
conList.append(Sketcher.Constraint('Coincident',7,2,4,1))
conList.append(Sketcher.Constraint('Horizontal',4))
conList.append(Sketcher.Constraint('Horizontal',6))
conList.append(Sketcher.Constraint('Vertical',5))
conList.append(Sketcher.Constraint('Vertical',7))
App.getDocument('SimulatorBox4').getObject('Sketch003').addConstraint(conList)
del geoList, conList
- Shalmeneser
- Veteran
- Posts: 9475
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: FreeCad Repeatable Crash - Mac - Monterey
* NO sketch upon face
* NO Zero dimension
- Attachments
-
- SimulatorBox4_SHALM.FCStd
- (81.65 KiB) Downloaded 4 times
-
- Capture d’écran 2022-07-08 105859.jpg (66.31 KiB) Viewed 560 times
Re: FreeCad Repeatable Crash - Mac - Monterey
I'm sorry but this provides absolutely no assistance in determining why there's no crash using self compiled FC up-to-date and why back in December 2021 a no crash build suddenly starts crashing two days later, this is a legitimate bug report no matter how good or bad the modelling may be.
Re: FreeCad Repeatable Crash - Mac - Monterey
Everyone,
iMac, Monterey 12.4. FreeCad 0.21
I am now puzzled.
I used a terminal, executed open ./FreeCad.app --args --write-log on the Weekly download as of July 7.
Edited the file, NO CRASH! Tried it again. No crash. Tried it without --write-log. No crash. Went back to 0.20-29177. No crash.
Because it now works repeatedly with the application being quit and re-launched, it is probably a bad pointer. I suspect an uninitialized pointer that is picking up a residual address from the stack or is a leftover address in a cpu register, depending upon the processor design. It could also be an index past a buffer. (I have written firmware since 1977 on 14 different processors.)
I could not locate the log file. (Where is it placed on the macintosh?)
----
Re: don't use holes on faces comment:
I used a hole in a face of a circle for a threaded screw. 4 of them. One for each circle pad. (Those are risers for circuit board holder.) The methodology worked. I do not know how to get a bounding rectangle on a circle to do a sketch, so I tried a hole and it miraculously worked.
If this is incorrect use of a drawing program the drawing program should tell the user it is an illegal operation.
I am not an M.E., so my methodologies will be wrong from a classic point of view.
----
Re: The Square Hole:
Someone mentioned a pocket. Hmm. Created another bounding rectangle and a sketch. Pocket created. That worked. (As homer simpson says, DUH!)
Thanks!
iMac, Monterey 12.4. FreeCad 0.21
I am now puzzled.
I used a terminal, executed open ./FreeCad.app --args --write-log on the Weekly download as of July 7.
Edited the file, NO CRASH! Tried it again. No crash. Tried it without --write-log. No crash. Went back to 0.20-29177. No crash.
Because it now works repeatedly with the application being quit and re-launched, it is probably a bad pointer. I suspect an uninitialized pointer that is picking up a residual address from the stack or is a leftover address in a cpu register, depending upon the processor design. It could also be an index past a buffer. (I have written firmware since 1977 on 14 different processors.)
I could not locate the log file. (Where is it placed on the macintosh?)
----
Re: don't use holes on faces comment:
I used a hole in a face of a circle for a threaded screw. 4 of them. One for each circle pad. (Those are risers for circuit board holder.) The methodology worked. I do not know how to get a bounding rectangle on a circle to do a sketch, so I tried a hole and it miraculously worked.
If this is incorrect use of a drawing program the drawing program should tell the user it is an illegal operation.
I am not an M.E., so my methodologies will be wrong from a classic point of view.
----
Re: The Square Hole:
Someone mentioned a pocket. Hmm. Created another bounding rectangle and a sketch. Pocket created. That worked. (As homer simpson says, DUH!)
Thanks!