Mon, 04/15/2024 - 10:41
I attempted to read a STEP file using STEPCAFControl_Reader,
but the program crashes when I call the Transfer.
My current code is as follows:
Handle(XCAFApp_Application) hApp = XCAFApp_Application::GetApplication();
Handle(TDocStd_Document) hDoc;
hApp->NewDocument(TCollection_ExtendedString("MDTV-CAF"), hDoc);
STEPCAFControl_Reader aReader;
aReader.SetColorMode(true);
aReader.SetNameMode(true);
aReader.SetLayerMode(true);
aReader.SetSHUOMode(true);
aReader.ReadFile("my_step_file_path");
aReader.Transfer(hDoc);
This issue only occurs with this specific STEP file (which I have attached below), the crashes are almost never encountered with other STEP files.
I can import this STEP file without any crashes using FreeCAD 2.0.
Could it be that version 7.7 has trouble parsing this STEP file?
Attachments:
Mon, 04/15/2024 - 11:27
Ticket created: 0033680: Data Exchange - Crash while while reading a STEP file - MantisBT (opencascade.org)
Waiting for analyzing.
Best regards, Dmitrii.
Tue, 04/16/2024 - 07:16
Thanks for your response.
Can this STEP file be parsed without errors on a higher version?
Wed, 04/17/2024 - 14:17
Hello, 7.8 release fixed issue.
Best regards, Dmitrii.
Tue, 06/11/2024 - 10:46
Thank you for your response. Since we have been developing under version 7.7 for a while and have also purchased other components of the same version, could this error be fixed in version 7.7? We are willing to pay additional technical service fees.
Tue, 06/11/2024 - 11:12
The issue inside .hxx file. There will be problem with backward compatibility. And it will be a difficult to have this support :( Unfortunatelly, we have some low boundary for requests :(
Best regards, Dmitrii.