View Issue Details

IDProjectCategoryView StatusLast Update
0027535CommunityOCCT:Visualizationpublic2016-10-25 20:15
ReporterVico Liang Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionunable to reproduce 
PlatformWindowsOSVC++ 2013 
Product Version6.9.1 
Summary0027535: V3d_Viewer::RedrawImmediate cause memory leaking
DescriptionCreate animation on any layer of below:
  Graphic3d_ZLayerId_Top
  Graphic3d_ZLayerId_Topmost
  Graphic3d_ZLayerId_TopOSD

and then call RedrawImmediate will cause memory leaking.

code snippet as below:

    Handle(AIS_InteractiveContext) aContext = ;
    if (myMeshList.IsEmpty())
    {
        aContext->Display(aMeshVS, Standard_False);
        aContext->SetZLayer(aMeshVS, Graphic3d_ZLayerId_Top);
    }
    else
    {
           ...
           Handle(MeshVS_Mesh) aMeshVS = Handle(MeshVS_Mesh)::DownCast(aIter.Value());
            Handle(MeshVS_NodalColorPrsBuilder) aNodeBuilder = Handle(MeshVS_NodalColorPrsBuilder)::DownCast(aMeshVS->FindBuilder("MeshVS_NodalColorPrsBuilder"));
            
            ...
            TColStd_DataMapOfIntegerReal aScaleValue;
            aNodeBuilder->SetTextureCoords(aScaleValue);
            aContext->Redisplay(aMeshVS, Standard_False);
        }
    }

    Handle_V3d_Viewer aViewer = myDocumentModule->GetGeomViewOccManager();
    aViewer->RedrawImmediate();

If i change aViewer->RedrawImmediate() to aVierer->Update(), there is no memory leaking.
TagsNo tags attached.
Test case numberNot needed

Activities

Vico Liang

2016-05-24 12:02

developer   ~0054331

I run the code above in a timer, and then watch the memory foot print. The momery comsumes very quickly.

kgv

2016-05-26 14:56

developer   ~0054449

I can not observe described behavior on current master.

Please provide complete test case (with creation of interactive object and test data) with memory usage information (e.g. actual numbers on each iteration). Naturally, it is better to test OCCT 7.0.0 or current master.

kgv

2016-10-13 16:14

developer   ~0058672

Dear bugmaster,

please close this issue as not reproducible.

Issue History

Date Modified Username Field Change
2016-05-24 11:13 Vico Liang New Issue
2016-05-24 11:13 Vico Liang Assigned To => kgv
2016-05-24 12:02 Vico Liang Note Added: 0054331
2016-05-26 14:56 kgv Note Added: 0054449
2016-05-26 14:56 kgv Assigned To kgv => Vico Liang
2016-05-26 14:56 kgv Status new => feedback
2016-10-13 16:14 kgv Note Added: 0058672
2016-10-13 16:14 kgv Assigned To Vico Liang => bugmaster
2016-10-13 16:14 kgv Resolution open => unable to reproduce
2016-10-13 16:14 kgv Target Version 7.1.0 =>
2016-10-25 20:15 apn Test case number => Not needed
2016-10-25 20:15 apn Status feedback => tested
2016-10-25 20:15 apn Status tested => closed