Describe the bug
Taichi fail to load in Ubuntu 20.04 with OpenGL 4.6 (AMD card). Related #958
At that moment we simply disabled opengl in bash, and assume the problem can be solved if gl version > 4.3. Nonetheless, on my laptop with version 4.6, the problem still exists. My graphic card is AMD庐 Raven.
Log/Screenshots
The 4 screenshots of running examples/fractal.py




The screenshot of gl version

I will try on the same device but with Windows soon
I meet the same error in IDE(pycharm) ,but it can run in terminal.I find it doesn't work when I set export TI_ENABLE_OPENGL=0 in ~/.bashrc .
My solution is to set the envirment variables in IDE or run in terminal .Maybe you can try the same way in vscode.

A similar issue:
http://www.mujoco.org/forum/index.php?threads/segmentation-fault-when-running-bin-simulate-on-ubuntu-16-04.3512/ or https://github.com/glfw/glfw/issues/1096
Seems it's GLX's lack of forward compatibility caused the issue instead of OpenGL version? Till now this issue only occurs on Linux machines.
I meet the same error in IDE(pycharm) ,but it can run in terminal.I find it doesn't work when I set
export TI_ENABLE_OPENGL=0in~/.bashrc.
My solution is to set the envirment variables in IDE or run in terminal .Maybe you can try the same way in vscode.
Thanks for sharing experience which may help others who have problem enforcing CPU mode. We are trying to fix is the openGL/GLX compability issue as mentioned in #1134 . After the fix you should be able to run the openGL mode under Linux.
A quick guess according to https://github.com/taichi-dev/taichi/issues/1325#issuecomment-649418562:
Does deleting /lib/libLLVM-9.so solve your problem? @Eydcao
A quick guess according to #1325 (comment):
Does deleting/lib/libLLVM-9.sosolve your problem? @Eydcao
Hi, Yubin,
I tested and encountered some errors. Please refer to #1326 for details.
I noticed that the library you mentioned is llvm-9, I am still running with llvm 8. Could that be the issue?
Thanks