MantisBT - Community
View Issue Details
0030013Community[OCCT] OCCT:Data Exchangepublic2018-08-03 13:402018-08-03 14:00
kamal 
gka 
normalcrash 
newopen 
WindowsVC++ 201564 bit
[OCCT] 7.3.0 
 
0030013: Crash occurs on Step file import STEPControl_Reader::ReadFile
STEPControl_Reader::ReadFile throws exception on attached file import
Simple STEPControl_Reader::ReadFile fails with attached step file.
Received the following messages.

*** ERR StepReaderData *** Pour Entite #628902
    Type:ORIENTED_EDGE Param.n0 4: #2147483647 Non trouve
*** ERR StepReaderData *** Pour Entite #633297
    Type:ORIENTED_EDGE Param.n0 4: #2147483647 Non trouve
Report : 354 unknown entities.
No tags attached.
zip 1.zip (9,646,228) 2018-08-03 13:40
https://tracker.dev.opencascade.org/
Issue History
2018-08-03 13:40kamalNew Issue
2018-08-03 13:40kamalAssigned To => gka
2018-08-03 13:40kamalFile Added: 1.zip
2018-08-03 14:00kamalNote Added: 0078353

Notes
(0078353)
kamal   
2018-08-03 14:00   
Problem occurs in TransferRoot.

Please refer the following code:
    STEPControl_Reader aReader;
    IFSelect_ReturnStatus status = aReader.ReadFile(this->strStepFileName.c_str());
    if (status != IFSelect_RetDone)
        return nullptr;

    aReader.WS()->TransferReader()->TransientProcess()->SetTraceLevel(2); // increase default trace level

    Standard_Boolean failsonly = Standard_False;
    aReader.PrintCheckLoad(failsonly, IFSelect_ItemsByEntity);

    // Root transfers
    Standard_Integer nbr = aReader.NbRootsForTransfer();
    aReader.PrintCheckTransfer(failsonly, IFSelect_ItemsByEntity);
    for (Standard_Integer n = 1; n <= nbr; n++) {
        Standard_Boolean ok = aReader.TransferRoot(n); // Error Occurs
    }