Archived issue #0031120
Memory leak in BRepOffsetAPI_MakeOffset
Description
There is memory leak when offsetting a wire using BRepOffsetAPI_MakeOffset.
Steps to reproduce
restore wire.brep w
for {set i 0} {$i < 1000} {incr i} {
mkoffset r w 1 0.5
if ![expr $i%100] {
puts "i = $i, mem = [lindex [meminfo h] 0]"
}
}
Output:
i = 0, mem = 8723622
i = 100, mem = 9464422
i = 200, mem = 10205222
i = 300, mem = 10946022
i = 400, mem = 11686822
i = 500, mem = 12427622
i = 600, mem = 13168422
i = 700, mem = 13909222
i = 800, mem = 14650022
i = 900, mem = 15390822
for {set i 0} {$i < 1000} {incr i} {
mkoffset r w 1 0.5
if ![expr $i%100] {
puts "i = $i, mem = [lindex [meminfo h] 0]"
}
}
Output:
i = 0, mem = 8723622
i = 100, mem = 9464422
i = 200, mem = 10205222
i = 300, mem = 10946022
i = 400, mem = 11686822
i = 500, mem = 12427622
i = 600, mem = 13168422
i = 700, mem = 13909222
i = 800, mem = 14650022
i = 900, mem = 15390822
Public activity
16 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Fri Nov 1 15:05:43 2019 +0300
0031120: Memory leak in BRepOffsetAPI_MakeOffset
[revision removed]
Detailed log of new commits:
Author: Author
Date: Fri Nov 1 15:05:43 2019 +0300
0031120: Memory leak in BRepOffsetAPI_MakeOffset
This is a beginning patch.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Please add the attached shape to database.
Done.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch [archived branch] has been updated by Participant.
[revision removed]
Detailed log of new commits:
Author: jgv
Date: Wed Nov 20 17:10:32 2019 +0300
Fix of regression
[revision removed]
Detailed log of new commits:
Author: jgv
Date: Wed Nov 20 17:10:32 2019 +0300
Fix of regression
Please review the branch CR31120.
The following changes are useless:
src/MAT/MAT_Bisector.cxx
src/MAT/MAT_Bisector.hxx
src/MAT/MAT_Edge.cxx
src/MAT/MAT_Edge.hxx
The test case needs to be changed so as to generate error in case of memory leak.
src/MAT/MAT_Bisector.cxx
src/MAT/MAT_Bisector.hxx
src/MAT/MAT_Edge.cxx
src/MAT/MAT_Edge.hxx
The test case needs to be changed so as to generate error in case of memory leak.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Please review the branch CR31120.
Reviewed.
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 16963.310000000132 / 16976.290000000114 [-0.08%]
Products
Total CPU difference: 10729.300000000072 / 10746.800000000061 [-0.16%]
Windows-64-VC14:
OCCT
Total CPU difference: 18395.1875 / 18406.625 [-0.06%]
Products
Total CPU difference: 12706.875 / 12757.328125 [-0.40%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 16963.310000000132 / 16976.290000000114 [-0.08%]
Products
Total CPU difference: 10729.300000000072 / 10746.800000000061 [-0.16%]
Windows-64-VC14:
OCCT
Total CPU difference: 18395.1875 / 18406.625 [-0.06%]
Products
Total CPU difference: 12706.875 / 12757.328125 [-0.40%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]