Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0023593Community[OCCT] OCCT:Data Exchangepublic2012-11-28 13:062014-10-09 18:46
ReporterRoman Lygin 
Assigned ToRoman Lygin 
PlatformAOSLOS VersionL
Product Version[OCCT] 6.5.4 
Target Version[OCCT] 6.6.0Fixed in Version[OCCT] 6.6.0 
Summary0023593: XCAFDoc_DocumentTool label must be removed from internal map upon closing the XDE document
DescriptionXCAFDoc_DocTool.cxx contains a static map RootLDocLMap. Prior to the fix, when the document got closed this map would contain orphan pair {root, doc_lab}. When a new doc is created its rootlab might have the same LabNotePtr and hence the same hash function value. Therefore XCAFDoc_DocumentTool::DocLabel() considered the label has already been registered RootLDocLMap and returned a wrong label (instead of creating new). Further attempt to access that label threw an exception.

Alternative approach to storing a global map would be a simple tree node attribute hosted on a root label and pointing to a label holding XCAFDoc_DocumentTool. This would be a reliable self-contained implementation.

Note: this is an older fix430.
Steps To ReproduceThe issue is sporadic and depends on memory layout. It is revealed when dealing with numerous OCAF documents which are created and destroyed during the process life cycle. It had been more frequent on Linux than on Windows.
TagsNo tags attached.
Test case numberNot needed
Attached Files

- Relationships
has duplicate 0022594closedabv Community XCAFDoc_DocumentTool attributes are removed from internal map upon closing the XDE document 
related to 0024007closedRoman Lygin Community [Regression] Sporadic crashes when working with XDE documents 
related to 0024164closedbugmaster Open CASCADE Optimization of OCAF document closing 

-  Notes
Roman Lygin (developer)
2012-11-28 13:09

Pushed branch CR23593 into the git repository
gka (developer)
2012-11-28 18:01

Branch CR23593 is ready to be tested.
mkv (tester)
2012-12-03 14:47

Dear BugMaster,
Branch CR23593 (and products from GIT master) was compiled on Linux and Windows platforms and tested.

Not detected

Not detected

Testing cases:
Not needed

- Related Changesets
occt: master f898928a
Timestamp: 2012-11-28 09:07:44
Author: Roman Lygin
Details ] Diff ]
0023593: XCAFDoc_DocumentTool label must be removed from internal map upon closing the XDE document
mod - src/XCAFDoc/XCAFDoc_DocumentTool.cdl Diff ] File ]
mod - src/XCAFDoc/XCAFDoc_DocumentTool.cxx Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-11-28 13:06 Roman Lygin New Issue
2012-11-28 13:06 Roman Lygin Assigned To => gka
2012-11-28 13:09 Roman Lygin Note Added: 0022404
2012-11-28 13:09 Roman Lygin Status new => resolved
2012-11-28 18:01 gka Note Added: 0022421
2012-11-28 18:01 gka Status resolved => reviewed
2012-11-28 19:08 mkv Assigned To gka => mkv
2012-12-03 14:47 mkv Note Added: 0022515
2012-12-03 14:47 mkv Test case number => Not needed
2012-12-03 14:47 mkv Assigned To mkv => bugmaster
2012-12-03 14:47 mkv Status reviewed => tested
2012-12-10 17:16 Roman Lygin Changeset attached => occt master f898928a
2012-12-10 17:16 Roman Lygin Assigned To bugmaster => Roman Lygin
2012-12-10 17:16 Roman Lygin Status tested => verified
2012-12-10 17:16 Roman Lygin Resolution open => fixed
2012-12-10 17:49 bugmaster Target Version => 6.6.0
2013-04-23 13:36 aiv Status verified => closed
2013-04-29 15:21 aiv Fixed in Version => 6.6.0
2013-06-02 12:18 Roman Lygin Relationship added related to 0024007
2013-10-02 15:52 abv Relationship added related to 0024164
2014-10-09 18:46 abv Relationship added has duplicate 0022594

Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker