View Issue Details

IDProjectCategoryView StatusLast Update
0033189CommunityOCCT:Modeling Algorithmspublic2022-11-02 16:57
Reporterjensgw Assigned Tomsv 
PrioritynormalSeveritycrash 
Status newResolutionopen 
PlatformWindowsOSVC++ 2019 
Product Version7.6.2 
Summary0033189: GeomAPI_Interpolate calling load() with a changing tangents array multiple times crashes on Windows fine on Linux
DescriptionHey there,

GeomAPI_Interpolate has the option to load a tangents array. If this array is modified and then loaded again OCCT crashes sometimes on windows it works fine on linux.

Best regards
Steps To Reproduce//In pseudocode:

for(int i=1, i<10 , i++) {

gp_Pnt startPoint = gp_Pnt(100,0,0)
gp_Pnt endPoint = gp_Pnt(0,100,0)
TColgp_HArray1OfPnt someArrayOfPoints(startpoint, endpoint)

GeomAPI_Interpolate splineBuilder = GeomAPI_Interpolate(someArrayOfPOints)

gp_Vec startTangent = gp_Vec(0,0,1)
gp_Vec endTangent = gp_Vec(0,0,1)

TColgp_Array1OfVec tangents = TColgp_Array1OfVec()
TColStd_HArray1OfBoolean flags = TColStd_HArray1OfBoolean()

tangents.add(1, startTangent)
flags.add(1, true)
splineBuilder.Load(tangents, flags)

//this second call crashes most of the time on windows, sometimes it works though
//it allways works with linux
tangents.add(2, endTangent)
flags.add(2, true)
splineBuilder.Load(tangents, flags)

}
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-11-02 16:57 jensgw New Issue
2022-11-02 16:57 jensgw Assigned To => msv