Issue with "AnalyseMeshQuality" -----> OSError: [WinError 541541187] Windows Error 0x20474343
I hve been trying to use the anaylse mesh quality plugin to calculte the Jacobians, however i find the plugins API very confusing, I found this example code in the API but it does not work on my computer: https://gitlab.onelab.info/gmsh/gmsh/blob/master/examples/api/mesh_quality.py it throws the error
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_10260\182742548.py in <module>
16 gmsh.plugin.setNumber("AnalyseMeshQuality", "ICNMeasure", 1.)
17 gmsh.plugin.setNumber("AnalyseMeshQuality", "CreateView", 1.)
---> 18 t = gmsh.plugin.run("AnalyseMeshQuality")
19 dataType, tags, data, time, numComp = gmsh.view.getModelData(t, 0)
20 print('ICN for element {0} = {1}'.format(tags[0], data[0]))
~\.conda\envs\fbx_sdk\lib\site-packages\gmsh.py in run(name)
9706 api_result_ = lib.gmshPluginRun(
9707 c_char_p(name.encode()),
-> 9708 byref(ierr))
9709 if ierr.value != 0:
9710 raise Exception(logger.getLastError())
OSError: exception: access violation reading 0x000001CC1D00CA08
similarly this code:
gmsh.plugin.setNumber("AnalyseMeshQuality", "JacobianDeterminant", 1)
gmsh.plugin.setNumber("AnalyseMeshQuality", "DimensionOfElements", 2)
t = gmsh.plugin.run("AnalyseMeshQuality")
dataType, tags, data, time, numComp = gmsh.view.getModelData(t, 0)
thows the error
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_10260\4041457950.py in <module>
2 gmsh.plugin.setNumber("AnalyseMeshQuality", "DimensionOfElements", 2)
3 t = gmsh.plugin.run("AnalyseMeshQuality")
----> 4 dataType, tags, data, time, numComp = gmsh.view.getModelData(t, 0)
~\.conda\envs\fbx_sdk\lib\site-packages\gmsh.py in getModelData(tag, step)
9036 byref(api_time_),
9037 byref(api_numComponents_),
-> 9038 byref(ierr))
9039 if ierr.value != 0:
9040 raise Exception(logger.getLastError())
OSError: [WinError 541541187] Windows Error 0x20474343