Open Ma-Weijian opened 2 years ago
Are you using a remote desktop solution?
Unfortunately not.
Can you run your program using software rendering (i.e. mesa) instead of hardware-accelerated opengl? According to https://docs.mesa3d.org/envvars.html you can enforce use of software rendering by setting env var LIBGL_ALWAYS_SOFTWARE
export LIBGL_ALWAYS_SOFTWARE = true
If your program then runs without segfault, the issue might be caused by an issue of the graphics driver.
Thanks @cafhach , I will have a try.
Well, unfortunately this doesn't help.
export LIBGL_ALWAYS_SOFTWARE = true
I've also noticed that the faulty machine may have detected a faulty version of qt as shown below.
/home/mwj/DeepCAD_pointnet_test/proj_log/newDeepCAD/results
qt-pyqt5 backend - Qt version 5.9.6
####### 3D rendering pipe initialisation #####
...
while my qt version in the virtual environment is 5.9.7. What seems more weird is that I did not find any qt with version 5.9.6 in this machine.
I don't have any idea about what's going on. Is qt version mismatch the reason for this segmentation fault?
Anything helps @cafhach. A million thanks.
Hi PythonOCC team,
Wonderful python interface for OpenCASCADE! It does help me a lot.
I run PythonOCC at an old machine and everything works fine.
However, when I moved to a new machine. I meet segmentation fault every time I call function
init_display
.The output looks like this.
(The last line is just segmentation fault (core dumped) in Chinese)
I tried to locate the error and found that it happened at line 196 in SimpleGUI.py, or to say the following line in function
init_display
.I tried some other qt programs in the same virtual environment, they all work fine.
My computer only has an RTX 3090 graphics card and uses 510.39.01 as its grahics card driver. Its OS is ubuntu 20.04.
Any idea helps. A million thanks!
P.S. The result of
conda list
is shown as follows.