Taichi: [Bug] Cannot load taichi with opengl 4.6 > 4.3 on Ubuntu 20 (AMD card)

Created on 2 Jun 2020  路  6Comments  路  Source: taichi-dev/taichi

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

1st

2nd

3rd

image

The screenshot of gl version

glVersion

linux opengl potential bug

All 6 comments

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=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.
鍥剧墖

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.so solve 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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

archibate picture archibate  路  3Comments

xumingkuan picture xumingkuan  路  3Comments

Xayahp picture Xayahp  路  3Comments

archibate picture archibate  路  4Comments

yuanming-hu picture yuanming-hu  路  4Comments