Anonymous | Login | 2021-01-16 05:57 MSK | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0029478 | Community | [OCCT] OCCT:Data Exchange | public | 2018-02-03 04:08 | 2018-02-03 04:08 | ||||||||
Reporter | stefan | ||||||||||||
Assigned To | gka | ||||||||||||
Priority | normal | Severity | crash | ||||||||||
Status | new | Resolution | open | ||||||||||
Platform | Visual Studio 2017 32 bit | OS | Windows | OS Version | 10 | ||||||||
Product Version | [OCCT] 7.1.0 | ||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0029478: Crash because bSplineSurfaceWithKnots is NULL | ||||||||||||
Description | I created a simplified STP file(see attachment) using WorkXplore 2018.1.0 x64. The crash happens here: BS = BSR->BSplineSurfaceWithKnots(); // returns NULL ... const Standard_Integer UDeg = BS->UDegree(); // crashes here Here is the full code: Handle(Geom_BSplineSurface) StepToGeom::MakeBSplineSurface (const Handle(StepGeom_BSplineSurface)& SS) { Standard_Integer i, j; Handle(StepGeom_BSplineSurfaceWithKnots) BS; Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) BSR; if (SS-> IsKind(STANDARD_TYPE(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface))) { BSR = Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) ::DownCast(SS); BS = BSR->BSplineSurfaceWithKnots(); } else BS = Handle(StepGeom_BSplineSurfaceWithKnots)::DownCast(SS); const Standard_Integer UDeg = BS->UDegree(); ... | ||||||||||||
Steps To Reproduce | This is how I'm using the Step Reader. The software crashes in TransferRoots() everytime. // Remove std::cout from the printer list of OpenCASCADE // More precisely, remove ALL printers from the list. Message::DefaultMessenger()->ChangePrinters().Clear(); // Install our own error printer std::string error_message; Message::DefaultMessenger()->AddPrinter(Handle_Message_Printer(new STEPErrorPrinter(&error_message, STEPErrorLevel::FAILURE))); auto reader = STEPControl_Reader(); reader.ReadFile(d_filename.c_str()); reader.TransferRoots(); | ||||||||||||
Tags | No tags attached. | ||||||||||||
Test case number | |||||||||||||
Attached Files | ![]() | ||||||||||||
![]() |
|||
Date Modified | Username | Field | Change |
2018-02-03 04:08 | stefan | New Issue | |
2018-02-03 04:08 | stefan | Assigned To | => gka |
2018-02-03 04:08 | stefan | File Added: Toy Test 6 d_ok rough_no_groups.stp |
Copyright © 2000 - 2021 MantisBT Team |