FreeCad 0.17-Additive pipe/Sweep profile

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!
User avatar
babaroga
Posts: 83
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

FreeCad 0.17-Additive pipe/Sweep profile

Postby babaroga » Wed Sep 07, 2016 8:18 am

Hi,

OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8362 (Git)
Build type: Unknown
Branch: master
Hash: 1a0efaa491038a53faa7d7237d3dbe668ff930df
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

I am trying to get profile like this inside body
Screenshot from 2016-09-07 09-17-29.png
Screenshot from 2016-09-07 09-17-29.png (191.45 KiB) Viewed 2245 times
It works when I use Part WB command Sweep.

Basic profile looks like this
Screenshot from 2016-09-07 09-18-39.png
Screenshot from 2016-09-07 09-18-39.png (207.89 KiB) Viewed 2245 times
But when I try to achieve this in PartDesign WB with "Additive pipe" command, after selecting ruling edges, FreeCad Crash.

Sometimes it Crashes during selection of ruling edges, and sometimes it throws error "TopoDS::Shell". This error "TopoDS::Shell" is shown only if ruling edges forms closed shape. Anyway if I leave it like it is and try to cancel a command, Freecad crashes.
Screenshot from 2016-09-07 09-36-34.png
Screenshot from 2016-09-07 09-36-34.png (222.05 KiB) Viewed 2245 times
On the other side if I remove last chosen segment I get unfinished profile.
Screenshot from 2016-09-07 09-39-11.png
Screenshot from 2016-09-07 09-39-11.png (188.3 KiB) Viewed 2245 times
Workaround is to make another "Additive pipe" and select missing segment

So, attached is a FreeCad file.

Steps to reproduce:
1. Open Freecad
2. Open File Barska_Stolica_err
3. Right click on Body and "Toggle Active body" to make it active
4. Switch to PartDesign WB
5. Select Sketch001 as profile
6. Select "Additive pipe" command (or icon with "Sweep" command)
7. On command menu, press "Add Edge" and select ruling edge segment. Repeat this until all segments are selected.
8. Press "OK" - and you get "TopoDS::Shell" error. Close it
9. Press "Cancel" and FreeCad crash

Am I doing something wrong? Is there some other way to draw this kind of element?

THX
Attachments
Barska_stolica_err.fcstd
(19.47 KiB) Downloaded 42 times
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby NormandC » Thu Sep 08, 2016 2:25 am

With your file, I can't go beyond 4 selected edges. Once I click "Add edge" for the 5th time and approach the mouse cursor over the edge I want to select, FreeCAD freezes for about 5 seconds then crashes.

I ran a stacktrace but it doesn't say much (I'm not running a Debug build though).

Code: Select all

Can't find Origin for "Body"
Can't find Origin for "Body"
[Thread 0x7fffd55d3700 (LWP 3964) exited]
Coin warning in SoGLLazyElement::sendDiffuseByIndex(): index 24 out of bounds [0, 23] in node 0x231bb20: <noname> (this warning will only be printed once, but there might be more errors)
[Thread 0x7fff637fe700 (LWP 3973) exited]
[Thread 0x7fff62ffd700 (LWP 3974) exited]
freecad-daily: /build/freecad-daily-ldDVZD/freecad-daily-0.17~alpha1+git201609080021~ubuntu14.04.1/src/Mod/PartDesign/Gui/ViewProviderPipe.cpp :144 : void PartDesignGui::ViewProviderPipe::highlightReferences(bool, bool):  l'assertion « idx > 0 » a échoué.

Program received signal SIGABRT, Aborted.
0x00007ffff4965c37 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.
But I had no crash with a similar file last week.
babaroga wrote:Workaround is to make another "Additive pipe" and select missing segment
Yes, that was the same workaround I found for that other case. It seems like the PartDesign Sweep (either additive or subtractive) is unable to work on a closed path.
babaroga wrote:Is there some other way to draw this kind of element?
For myself I would use a subtractive sweep instead, of course that would mean making the base plate larger to compensate. I prefer to remove material rather than adding material... But I doubt it would impact this bug.

I think this deserves to be reported on the bug tracker. http://www.freecadweb.org/tracker

Regarding the modelling method (irrelevant to current bug): I believe it would be preferable to add the fillets in the sketch. It is not a good idea to base sketch-based features on fillet or chamfer features, which should be applied at the very end of the model. Also, why create three fillet features when you could have created a single one?

P.S. By recreating your file from scratch, and integrating the fillets in the first sketch, I'm able to avoid the crash after selecting 4 edges for the Sweep feature path. I am still not able to make the last edge work so I created a new additive Sweep with one of the first sweep's face as profile, and the unfilled rounded edge as sweep path.
Attachments
Barska_stolica_normandc1.fcstd
(23.32 KiB) Downloaded 44 times
User avatar
babaroga
Posts: 83
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby babaroga » Thu Sep 08, 2016 5:27 am

So it is most probably bug. I thought so.
NormandC wrote:For myself I would use a subtractive sweep instead, of course that would mean making the base plate larger to compensate. I prefer to remove material rather than adding material... But I doubt it would impact this bug.
I started with that but it was crashing after selecting first edge.

NormandC wrote:Also, why create three fillet features when you could have created a single one?
Yeah, I know. I was testing different approaches for 3-4 hours, so probably it was some leftover. Yesterday I crashed FreeCad for exactly 67 times, with this "Sweep profile" thing.

NormandC wrote:I think this deserves to be reported on the bug tracker. http://www.freecadweb.org/tracker
I will learn how to do it ;)


Thanks for help!
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby NormandC » Fri Sep 09, 2016 3:37 am

babaroga wrote:Yesterday I crashed FreeCad for exactly 67 times, with this "Sweep profile" thing.
Surely you are aware that you are using a development snapshot that is nowhere near ready for wide use. It is provided for testing and bug reporting. And it is clearly explained in the Releases page. https://github.com/FreeCAD/FreeCAD/rele ... g/0.17_pre

If your intent is to use FreeCAD for personal projects then you should stick with the latest available release which is 0.16.6703 on Ubuntu.

Persisting with 67 program crashes borders on obsession... :?
User avatar
babaroga
Posts: 83
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby babaroga » Fri Sep 09, 2016 5:18 am

:)
NormandC wrote:Surely you are aware that you are using a development snapshot that is nowhere near ready for wide use. It is provided for testing and bug reporting. And it is clearly explained in the Releases page. https://github.com/FreeCAD/FreeCAD/rele ... g/0.17_pre
Oh yes, I know. I repeat it 67 times trying to find what exactly is triggering crash. I tried with different shapes, different sizes, etc.
But you know, I am stubborn.
Maybe I was going to spend even more time crashing it, if my wife didn't kick me out from computer. :oops:

Look, some months ago I also found similar bug in SolidWorks.
freecad-heini-1
Posts: 6437
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby freecad-heini-1 » Fri Sep 09, 2016 7:02 am

Please check my Freecad file:
sweep-test.fcstd
(11.07 KiB) Downloaded 41 times
OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6703 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 2ce5c8d2e3020d05005ed71f710e09e9aa561f40
Python version: 2.7.11+
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
ickby
Posts: 2937
Joined: Wed Oct 05, 2011 7:36 am

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby ickby » Fri Sep 09, 2016 7:15 am

Thanks for testing and reporting the bug. The PartDesign sweep has seen many changes and works quite differently than the part one, so it is quite likely that a few bugs occure. During development I think I never thought about closed wire paths :oops:
User avatar
babaroga
Posts: 83
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby babaroga » Fri Sep 09, 2016 7:28 am

Yes, I know this Sweep command from Part WB works.

I was trying to do same thing with Additive Sweep from PartDesign Next workbench.

Anyway thank you for your effort.
User avatar
babaroga
Posts: 83
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby babaroga » Fri Sep 09, 2016 7:36 am

ickby wrote:Thanks for testing and reporting the bug. The PartDesign sweep has seen many changes and works quite differently than the part one, so it is quite likely that a few bugs occure. During development I think I never thought about closed wire paths :oops:
;) Even SolidWorks sometimes have hickups on stuff like this. Anyway, FreeCad is becoming very useful and I like it. There is lot of things (eg. furniture fittings) that I still prefer to draw in FreeCad because it is faster, and then export it to some big Assembly in Solidworks.

Sorry it is a little bit off topic but I had to share my thoughts.
User avatar
babaroga
Posts: 83
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: FreeCad 0.17-Additive pipe/Sweep profile

Postby babaroga » Fri Sep 09, 2016 9:34 am

OK, now same look but different approach
Screenshot from 2016-09-09 11-31-22.png
Screenshot from 2016-09-09 11-31-22.png (183.29 KiB) Viewed 2110 times
OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8383 (Git)
Build type: Unknown
Branch: master
Hash: eac69724aab11e0dc872c6bc2508ad12f5047234
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Attachments
Bar stool v2.fcstd
(292.4 KiB) Downloaded 35 times