ShapeUpgrade_UnifySameDomain::Build function hangs

Hello,

I am using the ShapeUpgrade_UnifySameDomain class to modify the model.

When processing using the following "test1.brep" and "test2.brep", the Build function hangs.

Is there any way to avoid this phenomenon or interrupt the process in the middle to avoid the hang?

[Code]

ShapeUpgrade_UnifySameDomain unif( shape, Standard_True, Standard_True, Standard_True );
unif.Build();   // <- hang up
TopoDS_Shape shapeFixed = unif.Shape();

[Environment]

Opencascade: V7.4.0
OS: Windows 10 Pro 64bit
CPU: Intel(R) Core(TM) i7-8550U
Memory: 16GB

Best regards.