Code: Select all
output ='Error executing {}'.format(command) <-- this line
try:
output = subprocess.check_output([command, '-1'], shell=True, stderr=subprocess.STDOUT,)
except:
Code: Select all
gmsh /tmp/tmpPbCumz.step -3 -format unv -o /tmp/Box_Mesh -format unv -algo netgen -clmax 5.00 -order 2 -string "Geometry.OCCConnectFaces = 1;"
*** Error in `gmsh': malloc(): memory corruption: 0x0000000001c01eb0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x77a8d)[0x7f3e97f96a8d]
/lib64/libc.so.6(+0x8112e)[0x7f3e97fa012e]
/lib64/libc.so.6(__libc_malloc+0x6e)[0x7f3e97fa246e]
/lib64/libstdc++.so.6(_Znwm+0x18)[0x7f3e98584158]
/lib64/libstdc++.so.6(_Znam+0x9)[0x7f3e985841f9]
/lib64/libngmesh.so.0(_ZN6netgen10BASE_TABLEC1Ei+0x33)[0x7f3e95f02833]
/lib64/libngmesh.so.0(_ZN6netgen15IdentificationsC2ERNS_4MeshE+0x52)[0x7f3e95e961b2]
/lib64/libngmesh.so.0(_ZN6netgen4MeshC1Ev+0x46f)[0x7f3e95e54f5f]
/lib64/libGmsh.so.2.9(_ZN5nglib10Ng_NewMeshEv+0x33)[0x7f3e98fd3723]
/lib64/libGmsh.so.2.9(_Z20buildNetgenStructureP7GRegionbRSt6vectorIP7MVertexSaIS3_EE+0x44)[0x7f3e98e4f6f4]
/lib64/libGmsh.so.2.9(_ZN11meshGRegionclEP7GRegion+0x434)[0x7f3e98e50714]
/lib64/libGmsh.so.2.9(+0x56c1e3)[0x7f3e98de41e3]
/lib64/libGmsh.so.2.9(_Z12GenerateMeshP6GModeli+0x1143)[0x7f3e98de6c43]
/lib64/libGmsh.so.2.9(_ZN6GModel4meshEi+0x9)[0x7f3e98c81d59]
/lib64/libGmsh.so.2.9(_Z9GmshBatchv+0x2fa)[0x7f3e98ac51ea]
gmsh(main+0x92)[0x400f82]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7f3e97f3f700]
gmsh(_start+0x29)[0x4010b9]
Code: Select all
Error!!, sorry..Traceback (most recent call last):
File "/home/przemo/.FreeCAD/FEM_GMSH_Mesh_bhb.FCMacro", line 230, in proceed
FreeCAD.Console.PrintMessage(output)
UnboundLocalError: local variable 'output' referenced before assignment