kk k Thu, 01/29/2026 - 14:13 Forums: Modeling Data and AlgorithmsOccasionally, a segmentation fault occurs when executing the HLRBRep_Algo::Hide() method. Could you please tell me what might be causing this issue Attachments: 企业微信截图_1769685058958.png Dmitrii Pasukhin Fri, 01/30/2026 - 11:08 Hello. Please share the code and file to reproduce. Also please share the OCCT version which you are using. Best regards, Dmitrii. Log in to post comments kk k Sat, 01/31/2026 - 12:56 Occasionally, this issue occurs when the call frequency is high. Could it be a memory allocation problem? The version is 7.8.0 Attachments: Compound.brep Log in to post comments Dmitrii Pasukhin Sat, 01/31/2026 - 13:22 Please also share the code. The frequency means you call it in multithread? Best regards, Dmitrii. Log in to post comments kk k Sat, 01/31/2026 - 14:23 No multithreading is used. TopoDS_Shape topoShape; BRepTools::Read(topoShape, "filename", BRep_Builder()); for (int i = 0; i < 500; i++) { HLRAlgo_Projector algoProjector(gp_Ax2(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1))); Handle(HLRBRep_Algo) pHLRAlgo = new HLRBRep_Algo; pHLRAlgo->Add(topoShape); pHLRAlgo->Projector(algoProjector); pHLRAlgo->Update(); pHLRAlgo->Hide(); } Log in to post comments
Fri, 01/30/2026 - 11:08
Hello.
Please share the code and file to reproduce. Also please share the OCCT version which you are using.
Best regards, Dmitrii.
Sat, 01/31/2026 - 12:56
Occasionally, this issue occurs when the call frequency is high. Could it be a memory allocation problem? The version is 7.8.0
Sat, 01/31/2026 - 13:22
Please also share the code. The frequency means you call it in multithread?
Best regards, Dmitrii.
Sat, 01/31/2026 - 14:23
No multithreading is used.
TopoDS_Shape topoShape;
BRepTools::Read(topoShape, "filename", BRep_Builder());
for (int i = 0; i < 500; i++)
{
HLRAlgo_Projector algoProjector(gp_Ax2(gp_Pnt(0, 0, 0), gp_Dir(0, 0, 1)));
Handle(HLRBRep_Algo) pHLRAlgo = new HLRBRep_Algo;
pHLRAlgo->Add(topoShape);
pHLRAlgo->Projector(algoProjector);
pHLRAlgo->Update();
pHLRAlgo->Hide();
}