Crash when trying to create a sweep

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
Post Reply
zepom
Posts: 2
Joined: Wed Aug 03, 2022 5:14 pm

Crash when trying to create a sweep

Post by zepom »

Hi there,

This is my first post in this forum as I am new to FreeCad. I am experiencing a crash on my Mac running MacOS 12.5 with FreeCad 0.20.29177 when I try to create a sweep. I was able to create an easy one on a straight line but in this case I need to model a rope passing through two pulleys. So I used to polyline tool to prepare the path, then I added a simple 1 mm circle at one end and tried to use the sweep utility to create the rope. I am able to choose the profile and the path, but right after clicking then "OK" button the application crashes. I tried to select/unselect "Create solid" and "Frenet" but that does not change a thing.

I have attached a file with only the path (Sketch002) and the profile (Sketch003) so that you could try to reproduce the issue. Am I doing something wrong?

Thank you for your help!

Cedric
Attachments
Sweep crash.FCStd
(6.06 KiB) Downloaded 16 times
freedman
Veteran
Posts: 3466
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Crash when trying to create a sweep

Post by freedman »

If your trying to do it in PartDesign you need to create a Body and put the sketches in it.
heda
Veteran
Posts: 1348
Joined: Sat Dec 12, 2015 5:49 pm

Re: Crash when trying to create a sweep

Post by heda »

dunno why it crashes, will let someone else figure that one out...
not hard to make it work though...
not a good idea to attach sketches to a vertex, so ditched that...
moved the circle so that it was perpendicular, easiest way to get that done was to take the other endpoint...
not sure if it matters in this case but put a radius in the one corner that was lacking it.
oh, and fixed missing coincides and made all the connected sketch elements tangent as well
Attachments
Sweep crash mod.FCStd
(10.09 KiB) Downloaded 11 times
User avatar
papyblaise
Veteran
Posts: 8000
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Crash when trying to create a sweep

Post by papyblaise »

your path sketch is all broken puzzle way
Attachments
Sweep crash.FCStd
(11.25 KiB) Downloaded 9 times
sweep crash.JPG
sweep crash.JPG (13.96 KiB) Viewed 552 times
User avatar
Shalmeneser
Veteran
Posts: 9560
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Crash when trying to create a sweep

Post by Shalmeneser »

For your 1st post, can you follow the rules : use the link in the red banner above to give us your full version.

* Why are there no constraints in your path ?
* Why the different parts of the path are not tangent or coincident ?

No crash for me.
Modifying the transition value, it works better (transformed or roudnd corner).

Code: Select all

OS: Windows 10 Version 1809
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: French/France (fr_FR)
Installed mods: 
  * fasteners 0.3.50
  * fcgear 1.0.0
  * Manipulator 1.4.9
  * sheetmetal 0.2.53
heda
Veteran
Posts: 1348
Joined: Sat Dec 12, 2015 5:49 pm

Re: Crash when trying to create a sweep

Post by heda »

checked a bit further the behaviour...

making the sweep in pd - works out of the box, but there are some recompute failures reported...

making the sweep in part - well it segfaults as is (even if not all edges are selected as path), the minimal change is to a) fix coincidents b) constrain the arc transitions to be tangent (that will however produce a solid that does not pass bop-checker, easy to fix though by adding a fillet on the single sharp corner that is there)

in any case, having a segfault for the part-sweep is not the nicest thing
zepom
Posts: 2
Joined: Wed Aug 03, 2022 5:14 pm

Re: Crash when trying to create a sweep

Post by zepom »

@Shalmeneser : my bad, I am really sorry, I read the article you mentioned and I thought giving the version in the title bar was enough. I will do better next time!

The path was showing correctly on the screen so I thought the sweep would work. But thanks to all of you I do understand now that constraints are mandatory for the design to work properly. So I added them and now it works fine!

Thank you very much for your help! :D
Post Reply