MantisBT - Community
View Issue Details
0026387Community[OCCT] OCCT:Modeling Algorithmspublic2015-07-01 17:392015-10-23 20:51
Vico Liang 
bugmaster 
normalcrash 
closedfixed 
WindowsVC++ 201364 bit
[OCCT] 6.9.0 
[OCCT] 6.9.1[OCCT] 6.9.1 
bugs modalg_6 bug26387
0026387: BRepPrimAPI_MakePrism crash when extruding Paraboloid face.
Code snippets:
TopoDS_Shape aParaboloid = // load from file Paraboloid.brep.
gp_vec aPath(0,0,5);
BRepPrimAPI_MakePrism aMakePrism(aParaboloid, aPath, Standard_True);

Crash stack frame:

> TKPrim.dll!BRepSweep_Translation::MakeEmptyGeneratingEdge(const TopoDS_Shape & aGenE, const Sweep_NumShape & aDirV) Line 154 C++
     TKPrim.dll!BRepSweep_NumLinearRegularSweep::Shape(const TopoDS_Shape & aGenS, const Sweep_NumShape & aDirS) Line 131 C++
     TKPrim.dll!BRepSweep_NumLinearRegularSweep::Shape(const TopoDS_Shape & aGenS, const Sweep_NumShape & aDirS) Line 161 C++
     TKPrim.dll!BRepSweep_NumLinearRegularSweep::Shape(const TopoDS_Shape & aGenS, const Sweep_NumShape & aDirS) Line 309 C++
     TKPrim.dll!BRepSweep_NumLinearRegularSweep::Shape(const TopoDS_Shape & aGenS, const Sweep_NumShape & aDirS) Line 253 C++
     TKPrim.dll!BRepSweep_NumLinearRegularSweep::Shape() Line 81 C++
     TKPrim.dll!BRepSweep_Prism::Shape() Line 72 C++
     TKPrim.dll!BRepPrimAPI_MakePrism::Build() Line 80 C++
     TKPrim.dll!BRepPrimAPI_MakePrism::BRepPrimAPI_MakePrism(const TopoDS_Shape & S, const gp_Vec & V, const unsigned int Copy, const unsigned int Canonize) Line 42 C++
restore Paraboloid.brep p
prism r p 0 0 5 c
checkshape r
#r must be valid shape
No tags attached.
related to 0026406closed bugmaster BRepPrimAPI_MakeRevol crash when rotating Paraboloid face. 
? Paraboloid.brep (42,104) 2015-07-01 17:40
https://tracker.dev.opencascade.org/
png Paraboloid.png (24,797) 2015-07-01 17:40
https://tracker.dev.opencascade.org/
Issue History
2015-07-01 17:39Vico LiangNew Issue
2015-07-01 17:39Vico LiangAssigned To => msv
2015-07-01 17:40Vico LiangFile Added: Paraboloid.brep
2015-07-01 17:40Vico LiangFile Added: Paraboloid.png
2015-07-01 17:51msvAssigned Tomsv => ifv
2015-07-01 17:51msvTarget Version7.0.0 => 7.1.0
2015-07-06 17:48gitNote Added: 0042763
2015-07-06 17:49ifvStatusnew => assigned
2015-07-06 17:52ifvNote Added: 0042764
2015-07-06 17:52ifvAssigned Toifv => msv
2015-07-06 17:52ifvStatusassigned => resolved
2015-07-06 17:52ifvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10886#r10886
2015-07-07 16:00Vico LiangRelationship addedrelated to 0026406
2015-07-08 10:09msvNote Added: 0042816
2015-07-08 10:09msvAssigned Tomsv => ifv
2015-07-08 10:09msvStatusresolved => assigned
2015-07-09 09:33ifvAssigned Toifv => msv
2015-07-09 09:36ifvNote Added: 0042849
2015-07-09 09:37ifvStatusassigned => feedback
2015-07-09 09:39ifvNote Edited: 0042849bug_revision_view_page.php?bugnote_id=42849#r10908
2015-07-09 10:20gitNote Added: 0042852
2015-07-09 10:24ifvNote Added: 0042853
2015-07-09 10:24ifvStatusfeedback => resolved
2015-07-09 10:47msvNote Added: 0042854
2015-07-09 10:47msvAssigned Tomsv => bugmaster
2015-07-09 10:47msvStatusresolved => reviewed
2015-07-09 16:12gitNote Added: 0042871
2015-07-09 16:12apvAssigned Tobugmaster => apv
2015-07-09 16:12apvNote Added: 0042872
2015-07-09 17:02apvNote Edited: 0042872bug_revision_view_page.php?bugnote_id=42872#r10920
2015-07-10 11:48gitNote Added: 0042898
2015-07-10 11:48apvNote Added: 0042899
2015-07-10 11:48apvAssigned Toapv => bugmaster
2015-07-10 11:48apvStatusreviewed => tested
2015-07-10 13:09apvNote Edited: 0042899bug_revision_view_page.php?bugnote_id=42899#r10926
2015-07-10 18:12apvTest case number => bugs modalg_6 bug26387
2015-07-13 16:46apvNote Edited: 0042899bug_revision_view_page.php?bugnote_id=42899#r10955
2015-07-23 11:55bugmasterChangeset attached => occt master 679d4fa8
2015-07-23 11:55bugmasterStatustested => verified
2015-07-23 11:55bugmasterResolutionopen => fixed
2015-07-31 14:44bugmasterTarget Version7.1.0 => 7.0.0
2015-08-14 10:56gitNote Added: 0044197
2015-08-26 11:08abvTarget Version7.0.0 => 6.9.1
2015-10-16 14:56aivStatusverified => closed
2015-10-23 20:51aivFixed in Version => 6.9.1

Notes
(0042763)
git   
2015-07-06 17:48   
Branch CR26387 has been created by ifv.

SHA-1: cecda2a5366219a64e48fbad4e9c52ecc8788db1


Detailed log of new commits:

Author: ifv
Date: Mon Jul 6 17:46:28 2015 +0300

    0026387: BRepPrimAPI_MakePrism crash when extruding Paraboloid face.
(0042764)
ifv   
2015-07-06 17:52   
please review branch CR26387
(0042816)
msv   
2015-07-08 10:09   
The line 161:

  myBuilder.Builder().MakeEdge
    (newE,C,BRep_Tool::Tolerance(TopoDS::Edge(aGenE)));

can make edge with null 3D curve. In this case it is needed to call another method MakeEdge that creates edge with no 3D curve.
(0042849)
ifv   
2015-07-09 09:36   
(edited on: 2015-07-09 09:39)
In fact, it is part of original code: algorithm was not dedicated to work with edges without 3d curves, only degenerated edges can be without 3d.
Really new edge must be copy of original one, so if original edge has no 3d, new edge has no 3d too.

(0042852)
git   
2015-07-09 10:20   
Branch CR26387 has been updated forcibly by ifv.

SHA-1: c71982d229cab93cc904c61bd362a687147b1198
(0042853)
ifv   
2015-07-09 10:24   
Please review updated branch CR26387
(0042854)
msv   
2015-07-09 10:47   
Reviewed.
(0042871)
git   
2015-07-09 16:12   
Branch CR26387 has been updated forcibly by apv.

SHA-1: 3bd39783747c31cba48bf8c5315569c4d691697b
(0042872)
apv   
2015-07-09 16:12   
(edited on: 2015-07-09 17:02)
Branch CR26387 has been rebased on the IR-2015-07-09

(0042898)
git   
2015-07-10 11:48   
Branch CR26387 has been updated by apv.

SHA-1: d2033719e4bc9b05d3b191f634f11c908d996c52


Detailed log of new commits:

Author: apv
Date: Fri Jul 10 11:48:03 2015 +0300

    Test-cases for issue 0026387

(0042899)
apv   
2015-07-10 11:48   
(edited on: 2015-07-13 16:46)
Dear BugMaster,

Branch CR26387 from occt git-repository (and master from products git-repository) was compiled on Linux and Windows platforms and tested.
SHA-1: 3bd39783747c31cba48bf8c5315569c4d691697b

Number of compiler warnings:
occt component:
   Linux: 25 (25 on master)
   Windows: 0 (0 on master)
products component:
   Linux: 37 (37 on master)
   Windows: 0 (0 on master)

Regressions/Differences:
Not detected

Testing cases:
bugs modalg_6 bug26387 - OK
http://occt-tests/CR26387-IR-2015-07-09-occt-64/Debian70-64/bugs/modalg_6/bug26387.html [^]
http://occt-tests/CR26387-IR-2015-07-09-occt-64/Windows-64-VC10/bugs/modalg_6/bug26387.html [^]

Testing on Linux:
Total MEMORY difference: 96038823 / 96663932 [-0.65%]
Total CPU difference: 17361.099999999748 / 17425.299999999777 [-0.37%]

Testing on Windows:
Total MEMORY difference: 57058928 / 56506911 [+0.98%]
Total CPU difference: 16153.185945398936 / 15980.414837898928 [+1.08%]

(0044197)
git   
2015-08-14 10:56   
Branch CR26387 has been deleted by inv.

SHA-1: d2033719e4bc9b05d3b191f634f11c908d996c52