MantisBT - Community
View Issue Details
0028720Community[OCCT] OCCT:Modeling Algorithmspublic2017-05-09 11:182020-09-15 09:14
orgot 
jgv 
normalcrash 
assignedopen 
WindowsVC++ 201264 bit
[OCCT] 6.5.4 
[OCCT] 7.6.0* 
0028720: Modeling Algorithms - HLRBrep_PolyAlgo crash with specific shape
I created the following small code to use HLR Poly algo on a shape.
The shape is not null. The brep file attached to this post.

TopoDS_Shape shape = ... ;
Handle(HLRBRep_Algo) algo = new HLRBRep_Algo();
HLRAlgo_Projector projector(gp_Ax2());
algo->Add(shape);
algo->Projector(projector);
algo->Update(); <--- Crash in this function


With draw command:

pload ALL
vinit
restore MS4SY.brep
vdisplay MS4SY
vsetdispmode 1
vcomputehlr MS4SY test <--- Crash
pload MODELING VISUALIZATION
vclear
vinit View1
restore MS4SY.brep b
vdisplay -dispMode 1 b
vfit
vcomputehlr b test


Result:
65 void HLRAlgo_PolyInternalData::UpdateLinks()
...
142      aSegIndices = &PISeg->ChangeValue(myNbPISeg);


An exception was caught 000001DD88885550 : Standard_OutOfRange: NCollection_Array1::ChangeValue
** Exception ** 000001DD88885550 : Standard_OutOfRange: NCollection_Array1::ChangeValue

Index: 1392, Upper: 1391.
No tags attached.
? MS4SY.brep (2,336,489) 2017-05-09 11:18
https://tracker.dev.opencascade.org/
Issue History
2017-05-09 11:18orgotNew Issue
2017-05-09 11:18orgotAssigned To => msv
2017-05-09 11:18orgotFile Added: MS4SY.brep
2017-05-12 09:42orgotAssigned Tomsv => kgv
2017-05-12 10:18kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16606#r16606
2017-05-12 10:28kgvAssigned Tokgv => msv
2017-05-12 10:28kgvProduct Version7.1.0 => 6.5.4
2017-05-12 10:30kgvNote Added: 0065867
2017-05-12 10:39msvAssigned Tomsv => jgv
2017-05-12 10:39msvStatusnew => assigned
2017-05-12 10:39msvTarget Version => 7.2.0
2017-07-21 11:17msvTarget Version7.2.0 => 7.3.0
2017-12-05 17:09msvTarget Version7.3.0 => 7.4.0
2019-08-12 16:44msvTarget Version7.4.0 => 7.5.0
2020-09-14 22:55msvTarget Version7.5.0 => 7.6.0*
2020-09-15 09:14kgvSummaryHLRBrep_PolyAlgo crash with specific shape => Modeling Algorithms - HLRBrep_PolyAlgo crash with specific shape
2020-09-15 09:14kgvDescription Updatedbug_revision_view_page.php?rev_id=23463#r23463

Notes
(0065867)
kgv   
2017-05-12 10:30   
Dear orgot,

> Assigned To: msv => kgv

Please don't change default assignments - bugs are assigned to a person responsible for specified domain (Category).