MantisBT - Community
View Issue Details
0030198Community[OCCT] OCCT:Modeling Algorithmspublic2018-10-04 01:302019-01-23 19:14
galbramc 
apn 
normalblock 
verifiedfixed 
[OCCT] 7.3.0 
[OCCT] 7.4.0 
bugs/modalg_7/bug30198
0030198: Regression to 7.1.0: BRepAlgoAPI_Fuse unlimited memory usage
Calling BRepAlgoAPI_Fuse with provided brep shapes uses apparently unlimited memory. I have 128 GB of RAM on my desktop and all of it is consumed. The provided brep objects fuse just fine with OCCT 6.8.0.

I tried to use valgrinds massif tool to hunt down where the memory consumption occurs, but I can't pin point where the algorithm appears to be stuck beyond continuously creating triangles as part of IntPolyth_Intersection.
Run attached code.
No tags attached.
tgz memory_unbound.tgz (930,279) 2018-10-04 01:31
https://tracker.dev.opencascade.org/
Issue History
2018-10-04 01:30galbramcNew Issue
2018-10-04 01:30galbramcAssigned To => msv
2018-10-04 01:31galbramcFile Added: memory_unbound.tgz
2018-10-04 09:39emvSummaryBRepAlgoAPI_Fuse unlimited memory usage => Regression to 7.1.0: BRepAlgoAPI_Fuse unlimited memory usage
2018-10-04 09:48msvAssigned Tomsv => emv
2018-10-04 09:48msvStatusnew => assigned
2018-10-04 09:48msvTarget Version => 7.4.0
2018-10-04 13:26gitNote Added: 0079675
2018-10-05 15:32emvNote Added: 0079727
2018-10-05 15:32emvAssigned Toemv => msv
2018-10-05 15:32emvStatusassigned => resolved
2018-10-05 16:00msvNote Added: 0079730
2018-10-05 16:00msvAssigned Tomsv => bugmaster
2018-10-05 16:00msvStatusresolved => reviewed
2018-10-08 14:50bugmasterTest case number => bugs/modalg_7/bug30198
2018-10-08 14:55bugmasterNote Added: 0079787
2018-10-08 14:55bugmasterStatusreviewed => tested
2018-10-08 16:25bugmasterNote Edited: 0079787bug_revision_view_page.php?bugnote_id=79787#r20078
2018-10-13 16:01apnChangeset attached => occt master dce5b3eb
2018-10-13 16:01apnAssigned Tobugmaster => apn
2018-10-13 16:01apnStatustested => verified
2018-10-13 16:01apnResolutionopen => fixed
2018-10-14 13:56gitNote Added: 0079940

Notes
(0079675)
git   
2018-10-04 13:26   
Branch CR30198 has been created by emv.

SHA-1: 0f703f02451fc5d6e1ce6fb757ffab5f50dc9210


Detailed log of new commits:

Author: emv
Date: Thu Oct 4 13:25:06 2018 +0300

    0030198: Regression to 7.1.0: BRepAlgoAPI_Fuse unlimited memory usage
    
    When refining the mesh to achieve required deflection (IntPolyh_Triangle::MultipleMiddleRefinement) limit the number of new triangles to avoid infinite loop.
    Test case for the issue.
(0079727)
emv   
2018-10-05 15:32   
Dear Mikhail, could you please review the git branch CR30198?

Test results - http://jenkins-test-12.nnov.opencascade.com/view/CR30198-master-emv/view/COMPARE/ [^]
(0079730)
msv   
2018-10-05 16:00   
Reviewed.
(0079787)
bugmaster   
2018-10-08 14:55   
(edited on: 2018-10-08 16:25)
Combination -
OCCT branch : CR30198 SHA - 0f703f02451fc5d6e1ce6fb757ffab5f50dc9210
Products branch : master SHA - bdd0353fc53f9279cf9520705239af63f757c03a
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: 17389.149999999874 / 17401.889999999843 [-0.07%]
Products
Total CPU difference: 7436.750000000067 / 7431.600000000062 [+0.07%]
Windows-64-VC14:
OCCT
Total CPU difference: 17484.155277198555 / 17485.309684598556 [-0.01%]
Products
Total CPU difference: 8358.907982399993 / 8352.574341799986 [+0.08%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

(0079940)
git   
2018-10-14 13:56   
Branch CR30198 has been deleted by inv.

SHA-1: 0f703f02451fc5d6e1ce6fb757ffab5f50dc9210