Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Eydcao opened this issue Jun 2, 2020 · 6 comments · Fixed by #1326
Closed

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

Eydcao opened this issue Jun 2, 2020 · 6 comments · Fixed by #1326
Assignees
Labels
linux Linux platform opengl OpenGL backend potential bug Something that looks like a bug but not yet confirmed

Comments

@Eydcao
Copy link
Contributor

Eydcao commented Jun 2, 2020

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

@Eydcao Eydcao added the potential bug Something that looks like a bug but not yet confirmed label Jun 2, 2020
@Eydcao
Copy link
Contributor Author

Eydcao commented Jun 2, 2020

I will try on the same device but with Windows soon

@archibate archibate self-assigned this Jun 2, 2020
@archibate archibate added the opengl OpenGL backend label Jun 2, 2020
@senjay
Copy link

senjay commented Jun 3, 2020

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.
图片

@archibate
Copy link
Collaborator

archibate commented Jun 4, 2020

A similar issue:
http://www.mujoco.org/forum/index.php?threads/segmentation-fault-when-running-bin-simulate-on-ubuntu-16-04.3512/ or glfw/glfw#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.

@archibate archibate changed the title Cannot load taichi with opengl 4.6 > 4.3 on Ubuntu 20 (AMD card) [Bug] Cannot load taichi with opengl 4.6 > 4.3 on Ubuntu 20 (AMD card) Jun 4, 2020
@archibate archibate added the linux Linux platform label Jun 4, 2020
@Eydcao
Copy link
Contributor Author

Eydcao commented Jun 4, 2020

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.

@archibate
Copy link
Collaborator

A quick guess according to #1325 (comment):
Does deleting /lib/libLLVM-9.so solve your problem? @Eydcao

@Eydcao
Copy link
Contributor Author

Eydcao commented Jun 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux Linux platform opengl OpenGL backend potential bug Something that looks like a bug but not yet confirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants