Crash when reading STEP file

Good evening. I'm having crashes on reading some .step files. Here is my code to read a step file

var aReader = new OCSTEPControl_Reader();
aReader.ReadFile(filename);
aReader.PrintCheckLoad(false, OCIFSelect_PrintCount.IFSelect_ItemsByEntity);
var nbr = aReader.NbRootsForTransfer(); // CRASH HAPPENS HERE
aReader.TransferRoots();
return aReader.OneShape(); //Transform it into an opencascade shape

I've attached the file that crashes my open cascade when I try to read it. Is anyone having this problem? Thanks in advance for the help!

Hans's picture

No problem with reading your STEP-File.

Pawel's picture

Hi Bernardo,

I was also able to import the file successfully.

However, I spotted some invalid faces within the model.

Pawel