Describing the problem
Have some trouble using a combination of packages:
In a certain package combination, matplotlib plots result in error. I teared down the problem to the mentioned packages and introduced an example code, which can be seen in the figures. Some combinations of the three mentioned base packages are given, also the output and a screenshot of all virtual environment packages. E.g., matplotlib itself has the dependencies shown into the first virt-env overview.
Notes
Note 1: Note that matplotlib toolbar changes from top to bottom once pyqt is in the virtual environment.
Note 2: PyQt is NEVER imported in the sample codes. It is only available in the environments
Note 3: figured out in my own git-history that once a similar code was running using matplotlib 3.3.4, gmsh 4.9.5 and pyqt 5.15.6
Note 4: figured out the same behavior using python 3.9 and 3.10
Versions
Can anyone confirm this issue? May this is a problem with my system?
As I was not using GUIs in the past due to this bug, I re-tested the behavior again. The bug seems to be gone. Now it is working using python 3.11, matplotlib 3.7.2, gmsh 4.11.1 and pyqt5 5.15.2. So i will close this issue. GUIs will work again, nice :)
i moved into the virtual environment
/venv/lib
ldd gmsh.so.4.11
This action was performed three times. The detailed package overview is the same as in this issue at the very beginning. These are the base-packages:
Output
See datafilenames for the packages marked in red.
Please also see the attached files
These files contain all three base-package outputs of ldd gmsh.so.4.11
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
render glyph failed err=62 face=0x55ca3e351200, glyph=91
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Versions
Package teardown results in a new and updated issue #2175 (closed) I will close this issue.
Describing the problem
Have some trouble using a combination of packages:
In a certain package combination, matplotlib plots result in error. I teared down the problem to the mentioned packages and introduced an example code, which can be seen in the figures. Some combinations of the three mentioned base packages are given, also the output and a screenshot of all virtual environment packages. E.g., matplotlib itself has the dependencies shown into the first virt-env overview.
Notes
Note 1: Note that matplotlib toolbar changes from top to bottom once pyqt is in the virtual environment.
Note 2: PyQt is NEVER imported in the sample codes. It is only available in the environments
Note 3: figured out in my own git-history that once a similar code was running using matplotlib 3.3.4, gmsh 4.9.5 and pyqt 5.15.6
Note 4: figured out the same behavior using python 3.9 and 3.10
Versions
Can anyone confirm this issue? May this is a problem with my system?
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
render glyph failed err=62 face=0x55ca3e351200, glyph=91
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Versions