View Issue Details

IDProjectCategoryView StatusLast Update
0033417CommunityOCCT:Modeling Algorithmspublic2023-06-27 18:46
Reporterahoarau Assigned Todpasukhi  
PrioritynormalSeveritycrash 
Status newResolutionopen 
PlatformWindowsOSVC++ 2022 
Product Version7.7.1 
Target VersionUnscheduled 
Summary0033417: Modeling Algorithms - Crash on BRepLib_ToolTriangulatedShape::ComputeNormals when deleting Poly_Connect
DescriptionUsing release binaries of occt-7.7.1, using BRepLib_ToolTriangulatedShape::ComputeNormals leads to a heap failure.
is_block_type_valid(header->_block_use).

Precisely at NCollection_Array1.hxx:431:

  //! Destructor - releases the memory
  ~NCollection_Array1 (void)
  {
    if (myDeletable)
      delete [] &(myData[myLowerBound]);
  }
Steps To ReproduceOn a particular CAD (not all), mesh with Watson, then for every face, BRepLib_ToolTriangulatedShape::ComputeNormals(face, triangulation);
Additional information
and documentation updates
Stacktrace:

ucrtbased.dll!00007ffc018bcbec() (Unknown Source:0)
ucrtbased.dll!00007ffc018c0335() (Unknown Source:0)
v.exe!operator delete(void * block) Line 38 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\delete_scalar.cpp:38)
v.exe!operator delete[](void * block) Line 32 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\delete_array.cpp:32)
v.exe!NCollection_Array1<int>::~NCollection_Array1<int>() Line 431 (include\opencascade\NCollection_Array1.hxx:431)
v.exe!Poly_Connect::~Poly_Connect() (Unknown Source:0)
v.exe!BRepLib_ToolTriangulatedShape::ComputeNormals(const TopoDS_Face & theFace, const opencascade::handle<Poly_Triangulation> & theTris) Line 37 (include\opencascade\BRepLib_ToolTriangulatedShape.hxx:37)
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-06-27 18:29 ahoarau New Issue
2023-06-27 18:29 ahoarau Assigned To => dpasukhi
2023-06-27 18:31 dpasukhi Target Version => Unscheduled
2023-06-27 18:31 dpasukhi Summary Crash on BRepLib_ToolTriangulatedShape::ComputeNormals when deleting Poly_Connect => Modeling Algorithms - Crash on BRepLib_ToolTriangulatedShape::ComputeNormals when deleting Poly_Connect