MantisBT - Community
View Issue Details
0026498Community[OCCT] OCCT:Modeling Algorithmspublic2015-07-30 10:352016-04-17 14:55
mat127 
ski 
lowminor 
closedfixed 
x86_64Linux Fedora Core21
[OCCT] 6.9.0 
[OCCT] 6.9.1[OCCT] 6.9.1 
bugs modalg_6 bug26498
0026498: BRepOffsetAPI_MakeOffset causes segmentation fault
BRepOffsetAPI_MakeOffset crashes on simple open polygon - see steps to reproduce. The BRepOffsetAPI_MakeOffset::Perform() call leads to the segmentation fault.
BRepBuilderAPI_MakePolygon polygon;
polygon.Add(gp_Pnt(0.0,0.0,0.0));
polygon.Add(gp_Pnt(0.2, 0.0, 0.0));
polygon.Add(gp_Pnt(0.2, 0.2, 0.0));
polygon.Add(gp_Pnt(0.4, 0.2, 0.0));
polygon.Add(gp_Pnt(0.4, 0.4, 0.0));
polygon.Add(gp_Pnt(-0.06, 0.57, 0.0));
TopoDS_Wire wire = polygon.Wire();
BRepTools::Write(wire, "original.brep");

BRepOffsetAPI_MakeOffset builder(wire, GeomAbs_Intersection, true);
builder.Perform(-0.2, 0.0); // segmentation fault
TopoDS_Shape offset = builder.Shape();
BRepTools::Write(offset, "offset.brep");


#Draw script:
polyline w 0 0 0 0.2 0 0 0.2 0.2 0 0.4 0.2 0 0.4 0.4 0 -0.06 0.57 0
openoffset r w 1 -0.2 i
checkshape r_1

#Checkshape output:
On Shape faulty_1 :
BRepCheck_InvalidRange

Faulty shapes in variables faulty_1 to faulty_1
No tags attached.
? original.brep (935) 2015-07-30 10:35
https://tracker.dev.opencascade.org/
Issue History
2015-07-30 10:35mat127New Issue
2015-07-30 10:35mat127Assigned To => msv
2015-07-30 10:35mat127File Added: original.brep
2015-07-30 12:33msvNote Added: 0043696
2015-07-30 12:33msvAssigned Tomsv => isn
2015-07-30 12:33msvStatusnew => assigned
2015-07-30 12:33msvTarget Version => 7.1.0
2015-07-30 12:33msvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11131#r11131
2015-07-30 12:35msvPrioritynormal => low
2015-07-30 12:35msvSeveritycrash => minor
2015-08-10 17:57gitNote Added: 0043950
2015-08-10 17:57isnAssigned Toisn => jgv
2015-08-10 17:58isnStatusassigned => feedback
2015-08-24 18:05isnStatusfeedback => resolved
2015-08-24 18:05isnNote Added: 0044568
2015-08-24 18:10jgvNote Added: 0044569
2015-08-24 18:10jgvAssigned Tojgv => bugmaster
2015-08-24 18:10jgvStatusresolved => reviewed
2015-08-24 18:13mkvAssigned Tobugmaster => mkv
2015-08-24 18:33gitNote Added: 0044572
2015-08-25 15:14mkvNote Added: 0044603
2015-08-25 15:14mkvNote Added: 0044604
2015-08-25 15:40gitNote Added: 0044609
2015-08-25 15:41mkvNote Added: 0044610
2015-08-25 15:41mkvAssigned Tomkv => isn
2015-08-25 15:41mkvStatusreviewed => feedback
2015-08-25 15:41mkvTest case number => bugs modalg_6 bug26498
2015-08-26 16:02isnNote Added: 0044671
2015-08-26 16:02isnAssigned Toisn => mkv
2015-08-26 16:02isnStatusfeedback => assigned
2015-08-26 16:09mkvNote Added: 0044672
2015-08-26 16:09mkvAssigned Tomkv => bugmaster
2015-08-26 16:09mkvStatusassigned => feedback
2015-08-26 16:09mkvStatusfeedback => tested
2015-08-28 11:44skiChangeset attached => occt master 7642e2d0
2015-08-28 11:44skiAssigned Tobugmaster => ski
2015-08-28 11:44skiStatustested => verified
2015-08-28 11:44skiResolutionopen => fixed
2015-09-11 17:50abvTarget Version7.1.0 => 6.9.1
2015-09-11 17:50abvNote Added: 0045526
2015-10-16 14:55aivStatusverified => closed
2015-10-23 20:51aivFixed in Version => 6.9.1
2016-04-17 14:55gitNote Added: 0053246

Notes
(0043696)
msv   
2015-07-30 12:33   
I could not reproduce exception in the current master version.
The draw script to reproduce:

polyline w 0 0 0 0.2 0 0 0.2 0.2 0 0.4 0.2 0 0.4 0.4 0 -0.06 0.57 0
openoffset r w 1 -0.2 i
checkshape r_1

However, checkshape gives an error BRepCheck_InvalidRange. It is not good and must be fixed.
(0043950)
git   
2015-08-10 17:57   
Branch CR26498 has been created by isn.

SHA-1: 7a79a053ab64056ef9cc45f19b5376d9b726b63d


Detailed log of new commits:

Author: isn
Date: Mon Aug 10 17:56:58 2015 +0300

    0026498: BRepOffsetAPI_MakeOffset :: incorrect result of offset
(0044568)
isn   
2015-08-24 18:05   
dear jgv,
please review branch CR26498
(0044569)
jgv   
2015-08-24 18:10   
Reviewed.
(0044572)
git   
2015-08-24 18:33   
Branch CR26498 has been updated forcibly by mkv.

SHA-1: 6933e170be8c462cd99c2cad8f17f442c7d621c6
(0044603)
mkv   
2015-08-25 15:14   
Dear BugMaster,
Branch CR26498 was rebased on current master of occt git-repository.
SHA-1: 6933e170be8c462cd99c2cad8f17f442c7d621c6
(0044604)
mkv   
2015-08-25 15:14   
Dear BugMaster,
Branch CR26498 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
SHA-1: 6933e170be8c462cd99c2cad8f17f442c7d621c6

Number of compiler warnings:

occt component :
Linux: 15 (15 on master)
Windows: 0 (0 on master)

products component :
Linux: 39 (39 on master)
Windows: 0 (0 on master)

Regressions/Differences/Improvements:
No regressions/differences

Testing cases:
http://occt-tests/CR26498-master-occt-64/Debian70-64/bugs/modalg_6/bug26498.html [^]
http://occt-tests/CR26498-master-occt-64/Windows-64-VC10/bugs/modalg_6/bug26498.html [^]
bugs modalg_6 bug26498: OK

Testing on Linux:
occt component :
Total MEMORY difference: 91403960 / 91597648 [-0.21%]
Total CPU difference: 17811.229999999057 / 17713.58999999894 [+0.55%]
products component :
Total MEMORY difference: 25108035 / 25123208 [-0.06%]
Total CPU difference: 7047.529999999999 / 7008.090000000001 [+0.56%]

Testing on Windows:
occt component :
Total MEMORY difference: 57063618 / 57056005 [+0.01%]
Total CPU difference: 16406.11036669904 / 16696.693429399114 [-1.74%]
products component :
Total MEMORY difference: 16120026 / 16119994 [+0.00%]
Total CPU difference: 5146.9253928999615 / 5290.8519154999685 [-2.72%]

There are no differences in images found by testdiff.
(0044609)
git   
2015-08-25 15:40   
Branch CR26498 has been updated by mkv.

SHA-1: 167bef4308c257b9a8ceb38c4012ca264f2be4d9


Detailed log of new commits:

Author: mkv
Date: Tue Aug 25 15:40:07 2015 +0300

    Test case for issue CR26498

(0044610)
mkv   
2015-08-25 15:41   
Dear isn,
could you please review following test case
bugs modalg_6 bug26498
(0044671)
isn   
2015-08-26 16:02   
reviewed
(0044672)
mkv   
2015-08-26 16:09   
Dear BugMaster,
Branch CR26498 is TESTED.
(0045526)
abv   
2015-09-11 17:50   
Function CheckSmallParamOnEdge() must have been made static!
(0053246)
git   
2016-04-17 14:55   
Branch CR26498 has been deleted by kgv.

SHA-1: 167bef4308c257b9a8ceb38c4012ca264f2be4d9