Crash when doing a thickness

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!
wvmarle
Posts: 148
Joined: Fri Oct 17, 2014 8:09 am

Crash when doing a thickness

Postby wvmarle » Sun Oct 19, 2014 5:12 am

Yet another crash, this time I know how it happens, and can reproduce it.

Open attached file.
Select one of the flat faces of the object, click "thickness" in the Parts workbench to create a thickness to the object.
Click "faces"
Select all three flat faces (the end points and the main face) - my target is to get a half pipe.
Click "Done"
Crash.

Changing the order of work (first creating a pipe out of Cut031, then subtracting Cube002) produces the desired result.

OS: Linux Mint 17 Qiana
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4121 (Git)
Branch: master
Hash: dd392efeb147d6df50f8d67cdca8f59981224e75
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
Attachments
thickness test.fcstd
(81.72 KiB) Downloaded 22 times
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash when doing a thickness

Postby NormandC » Sun Oct 19, 2014 6:15 am

I confirm the crash.

If I run

Code: Select all

gdb freecad
run
FreeCAD hangs instead of crashing, and here's the output of the terminal:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x00007fff59ab5faa in BRepOffset_Tool::OrientSection(TopoDS_Edge const&, TopoDS_Face const&, TopoDS_Face const&, TopAbs_Orientation&, TopAbs_Orientation&) ()
   from /usr/lib/x86_64-linux-gnu/libTKOffset.so.9
First time I used gdb, I didn't know what to do next so I closed the FreeCAD window then typed "q" in the terminal to quit gdb which complained about an open process.

OS: Ubuntu 14.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4121 (Git)
Branch: master
Hash: dd392efeb147d6df50f8d67cdca8f59981224e75
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash when doing a thickness

Postby NormandC » Sun Oct 19, 2014 6:20 am

Before selecting the faces, I changed the offset value to -1 and set the Joint type to "Intersection".

After selecting the faces FreeCAD did not crash but after a few seconds showed an error dialog "BRepAlgo_Image::Bind" and the command refused to complete.

I think it should at least do the same if the faces are selected first.
User avatar
shoogen
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Crash when doing a thickness

Postby shoogen » Sun Oct 19, 2014 12:58 pm

Thank you wvmarle for reporting the issue. I created a ticket:
http://tracker.dev.opencascade.org/view.php?id=25395

And the French word I learned today is Bouchon.
User avatar
shoogen
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Crash when doing a thickness

Postby shoogen » Fri Mar 20, 2015 3:21 pm

I can't reproduce the crash in OCCT 6.8.0 or OCCT 6.8.1-dev. But I think that the problem is not solved, but a regression triggers an exception like "Standard_ConstructionError: BRepAlgo_Image::Bind" before the crash happens.

Can anyone provide an example of a Offset (or thickness) that works with the join mode "tangent".
User avatar
bejant
Posts: 5797
Joined: Thu Jul 11, 2013 3:06 pm

Re: Crash when doing a thickness

Postby bejant » Fri Mar 20, 2015 9:59 pm

shoogen wrote:Can anyone provide an example of a Offset (or thickness) that works with the join mode "tangent".
I don't think it's possible yet:
viewtopic.php?f=3&t=8749&p=72131
viewtopic.php?f=3&t=4589&p=35987
https://github.com/tpaviot/oce/blob/6d4 ... kSolid.hxx
http://dev.opencascade.org/doc/refman/h ... ml#details
User avatar
yorik
Site Admin
Posts: 11458
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash when doing a thickness

Postby yorik » Sat Mar 21, 2015 4:12 pm

shoogen wrote:And the French word I learned today is Bouchon.
One of the most useful word in the whole French language.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash when doing a thickness

Postby NormandC » Sat Mar 21, 2015 4:49 pm

As in "bouchon de circulation" (traffic jam) or as in "bouchon de bouteille de vin" (wine bottle cork)? :D
User avatar
shoogen
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Crash when doing a thickness

Postby shoogen » Sat Mar 21, 2015 6:32 pm

NormandC wrote:As in "bouchon de circulation" (traffic jam) or as in "bouchon de bouteille de vin" (wine bottle cork)? :D
I think it meant the face that is removed in a thickness operation.
Image
Of course, the Frenchmen found suitable example.
User avatar
yorik
Site Admin
Posts: 11458
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash when doing a thickness

Postby yorik » Sun Mar 22, 2015 4:58 pm

There is also the bouchon de Lyon... http://en.wikipedia.org/wiki/Bouchon