View Issue Details

IDProjectCategoryView StatusLast Update
0022594CommunityOCCT:Data Exchangepublic2014-10-09 18:46
Reporterszy Assigned Toabv 
PrioritynormalSeveritytrivial 
Status closedResolutionduplicate 
OSAll 
Fixed in Version6.6.0 
Summary0022594: XCAFDoc_DocumentTool attributes are removed from internal map upon closing the XDE document
DescriptionRLN contribution (RLN_fix430)
- Summary: XCAFDoc_DocumentTool attributes are removed from internal map upon
closing the XDE document
- Detailed description: XCAFDoc_DocTool.cxx contains 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.
Note. Perhaps a better approach than storing a global map would be a simple tree
node attribute hosted on a root label and pointing to a label holdng
XCAFDoc_DocumentTool. This would be a reliable self-contained implementation.

=========================================================
Branch OCC22594_XcafdocDoctoolDestructor is created.
TagsNo tags attached.
Test case number

Relationships

duplicate of 0023593 closedRoman Lygin XCAFDoc_DocumentTool label must be removed from internal map upon closing the XDE document 

Activities

pdn

2014-10-09 18:40

reporter   ~0032943

obsolete, to close

abv

2014-10-09 18:46

manager   ~0032946

Fixed by 0023593

Issue History

Date Modified Username Field Change
2011-08-02 11:12 bugmaster Category OCCT:DTE => OCCT:Data Exchange
2011-11-24 15:52 szy Assigned To bugmaster => pdn
2011-11-24 15:52 szy Status acknowledged => assigned
2011-11-24 15:52 szy Resolution suspended => reopened
2011-11-24 15:52 szy Fixed in Version EMPTY =>
2011-11-24 15:52 szy Description Updated
2014-10-09 18:40 pdn Note Added: 0032943
2014-10-09 18:40 pdn Assigned To pdn => abv
2014-10-09 18:40 pdn Status assigned => resolved
2014-10-09 18:46 abv Relationship added duplicate of 0023593
2014-10-09 18:46 abv Note Added: 0032946
2014-10-09 18:46 abv Status resolved => closed
2014-10-09 18:46 abv Resolution reopened => duplicate
2014-10-09 18:46 abv Fixed in Version => 6.6.0