OCCT icon indicating copy to clipboard operation
OCCT copied to clipboard

Application Framework - Invalid document after partial read of XBF

Open dpasukhi opened this issue 11 months ago • 2 comments

Resolve missed refereces until all are resolved to produce expected result without exceptions. XCAFDoc_ShapeTool::GetShape() throws Standard_NullObject exception after partial read of XBF document

XCAFDoc_ShapeTool::GetShape() throws Standard_NullObject exception when XBF document is read partially using functionality of PCDM_ReaderFilter.

The problem is that XBF driver resolves N+1 level of referenced items only while XCAFDoc_ShapeTool::GetShape() requires to follow the deeper chain of references.

dpasukhi avatar Dec 18 '24 11:12 dpasukhi

Needs to refactor code and check careful with "while" scenario. Additionally needs to move variables from the class field to method body if possible.

dpasukhi avatar Dec 18 '24 17:12 dpasukhi

Original: https://tracker.dev.opencascade.org/view.php?id=33855

dpasukhi avatar Jan 30 '25 17:01 dpasukhi