Can't run build on GPU

Hi,

Unity version 2022.3.30f1, Linux build

We’re trying to run the build with ConatinerD on the GPU and get this error:

root@aa-unity-bcb995c87-2kz95:~/Unity# echo $DISPLAY :1
root@aa-unity-bcb995c87-2kz95:~/Unity# __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /root/Unity/buildExe
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 0
Current serial number in output stream: 93

It seems to be related to GLX, and the OpenGL version
I’ve found a similar error on an old non-unity thread. The solution was changing the openGL version:

https://stackoverflow.com/questions/6073761/x11-badalloc-error-from-opengl

Tried changing the GL version in the command line and got this error:

Any thoughts?
Thanks

What’s the GPU?

Have you tried this already?
https://forums.gentoo.org/viewtopic-t-1147310-start-0.html

1 Like