facebookresearch / pifuhd

High-Resolution 3D Human Digitization from A Single Image.
Other
9.5k stars 1.44k forks source link

error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.00 ES, and 3.00 ES\n' #106

Closed jiaqiAA closed 3 years ago

jiaqiAA commented 3 years ago

Hi, When I run sh ./scripts/demo.sh, I met this problem:

Compilation failure for vertex shader: b'0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.00 ES, and 3.00 ES\n' Compilation failure for fragment shader: b'0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.00 ES, and 3.00 ES\n' Linker failure: b'error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader' Traceback (most recent call last): File "/home/ubuntu/anaconda3/envs/HD/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/ubuntu/anaconda3/envs/HD/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/ubuntu/Documents/HD/apps/render_turntable.py", line 69, in renderer = ColorRender(width=args.width, height=args.height) File "/home/ubuntu/Documents/HD/lib/render/gl/color_render.py", line 34, in init CamRender.init(self, width, height, name, program_files=program_files) File "/home/ubuntu/Documents/HD/lib/render/gl/cam_render.py", line 32, in init Render.init(self, width, height, name, program_files, color_size, ms_rate) File "/home/ubuntu/Documents/HD/lib/render/gl/render.py", line 72, in init self.model_mat_unif = glGetUniformLocation(self.program, 'ModelMat') File "/home/ubuntu/anaconda3/envs/HD/lib/python3.8/site-packages/OpenGL/latebind.py", line 63, in call return self.wrapperFunction( self.baseFunction, *args, *named ) File "/home/ubuntu/anaconda3/envs/HD/lib/python3.8/site-packages/OpenGL/GL/VERSION/GL_2_0.py", line 430, in glGetUniformLocation return baseOperation( program, name ) File "/home/ubuntu/anaconda3/envs/HD/lib/python3.8/site-packages/OpenGL/platform/baseplatform.py", line 415, in call return self( args, **named ) File "/home/ubuntu/anaconda3/envs/HD/lib/python3.8/site-packages/OpenGL/error.py", line 230, in glCheckError raise self._errorClass( OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glGetUniformLocation, cArguments = (3, b'ModelMat\x00'), result = -1 ) Segmentation fault (core dumped)

System: OS: Ubuntu 18.04 Python version: 3.8.5 PyTorch version: 1.7.1 Torchvision version: 0.8.2 cudatoolkit 11.0.221 GPU: RTX3080

mrahsanahmad commented 3 years ago

run in ur terminal export MESA_GL_VERSION_OVERRIDE=3.3

this should solve the prblm

jiaqiAA commented 3 years ago

Thanks a lot, the problem has been solved.