pip package problem using gmsh version 4.11.0 and matplotlib
Describing the problem
Using gmsh and matplotlib in the same code, matplotlib-plots result in memory failure.
Even with not using gmsh-code at all (import only, no direct code usage).
This error appears using gmsh 4.11.0
Using gmsh 4.10.5, there is no error.
Minimal example code
from matplotlib import pyplot as plt
import gmsh
x = [1, 2]
y = [3, 4]
plt.plot(x, y)
plt.show()
Error message
The plot window appears, and there are two options
- failure is immeadiately
- failure when clicking in the diagram e.g. for zoom
render glyph failed err=62 face=0x55ca3e351200, glyph=91
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Versions
- matplotlib: 3.6.2
- gmsh: 4.11.0
- Note: same minimal example code but running gmsh 4.10.5 works fine without crashes
- System: Manjaro Linux
- Python: 3.10