Archived issue #0024496
Crash on BRepAlgoAPI_Section
Description
"ACCESS VIOLATION" is displayed by bsection.
section is success, return two edges.
It is the result same as 6.6.0.
section is success, return two edges.
It is the result same as 6.6.0.
Steps to reproduce
pload ALL
restore face1.brep f1
restore face2.brep f2
bsection r2 f1 f2 (section r1 f1 f2)
restore face1.brep f1
restore face2.brep f2
bsection r2 f1 f2 (section r1 f1 f2)
Public activity
3 archived notes
Participants are labeled by their role within this record.
It seems that this issue is solved by OCC6.7.1 beta.
Two edges returns without crashing.
The result(on VC9):
--OCC6.7.0
Draw[1]> pload ALL
1
Draw[2]> restore face1.brep f1
f1
Draw[3]> restore face2.brep f2
f2
Draw[4]> bsection r2 f1 f2
An exception was caught 0044F028 : OSD_Exception_ACCESS_VIOLATION: ACCESS VIOLAT
ION at address 0xFEFD0000 during 'READ' operation
** Exception ** 0044F028 : OSD_Exception_ACCESS_VIOLATION: ACCESS VIOLATION at a
ddress 0xFEFD0000 during 'READ' operation
--OCC6.7.1beta
Draw[1]> pload ALL
1
Draw[2]> restore face1.brep f1
f1
Draw[3]> restore face2.brep f2
f2
Draw[4]> bsection r2 f1 f2
Draw[5]> explode r2
r2_1 r2_2
Draw[6]> whatis r2_1
r2_1 is a shape EDGE FORWARD Modified Orientable
Draw[7]> whatis r2_2
r2_2 is a shape EDGE FORWARD Modified Orientable
Two edges returns without crashing.
The result(on VC9):
--OCC6.7.0
Draw[1]> pload ALL
1
Draw[2]> restore face1.brep f1
f1
Draw[3]> restore face2.brep f2
f2
Draw[4]> bsection r2 f1 f2
An exception was caught 0044F028 : OSD_Exception_ACCESS_VIOLATION: ACCESS VIOLAT
ION at address 0xFEFD0000 during 'READ' operation
** Exception ** 0044F028 : OSD_Exception_ACCESS_VIOLATION: ACCESS VIOLATION at a
ddress 0xFEFD0000 during 'READ' operation
--OCC6.7.1beta
Draw[1]> pload ALL
1
Draw[2]> restore face1.brep f1
f1
Draw[3]> restore face2.brep f2
f2
Draw[4]> bsection r2 f1 f2
Draw[5]> explode r2
r2_1 r2_2
Draw[6]> whatis r2_1
r2_1 is a shape EDGE FORWARD Modified Orientable
Draw[7]> whatis r2_2
r2_2 is a shape EDGE FORWARD Modified Orientable
Please add a test case and close the issue if it is Ok
Branch CR24496 was created.
Testing case:
bugs modalg_5 bug24469 - OK
Testing case:
bugs modalg_5 bug24469 - OK