Error during data preprocessing: 'GLSL Shader compilation failed: error: GLSL 3.30 is not supported'
See original GitHub issueI am trying to run the preprocess_data.py
via this command:
python preprocess_data.py --data_dir data --source /smartscan/ShapeNetCore.v2/ --name ShapeNetV2 --split examples/splits/sv2_sofas_train.json --skip
DeepSdf - INFO - Preprocessing data from /smartscan/ShapeNetCore.v2/ and placing the results in data/SdfSamples/ShapeNetV2
data sources stored to data/.datasources.json
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/1037fd31d12178d396f164a988ef37cc/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/1037fd31d12178d396f164a988ef37cc.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/104256e5bb73b0b719fb4103277a6b93/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/104256e5bb73b0b719fb4103277a6b93.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/1053897adff12c7839c40eb1ac71e4c1/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/1053897adff12c7839c40eb1ac71e4c1.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/10552f968486cd0ad138a53ab0d038a5/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/10552f968486cd0ad138a53ab0d038a5.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/105849baff12c6fc2bf2dcc31ba1713/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/105849baff12c6fc2bf2dcc31ba1713.npz
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/107637b6bdf8129d4904d89e9169817b/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/107637b6bdf8129d4904d89e9169817b.npz
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/107bce22d72f322eedf1bb0b62653056/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/107bce22d72f322eedf1bb0b62653056.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/10e0543e6e316dca30b07c64830a47f3/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/10e0543e6e316dca30b07c64830a47f3.npz
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/113a2544e062127d79414e04132a8bef/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/113a2544e062127d79414e04132a8bef.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/117c47d75798788a5506ead0b132904c/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/117c47d75798788a5506ead0b132904c.npz
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/117f6ac4bcd75d8b4ad65adb06bbae49/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/117f6ac4bcd75d8b4ad65adb06bbae49.npz
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/118a7d6a1dfbbc14300703f05f8ccc25/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/118a7d6a1dfbbc14300703f05f8ccc25.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/11a47d5cdd42a5104b3c42e318f3affc/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/11a47d5cdd42a5104b3c42e318f3affc.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/11b36d8f9025062513d2510999d0f1d2/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/11b36d8f9025062513d2510999d0f1d2.npz
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/11b544b22dedb59c654ea6737b0d3597/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/11b544b22dedb59c654ea6737b0d3597.npz
DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/11be630221243013c087ef7d7cf00301/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/11be630221243013c087ef7d7cf00301.npz
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.DeepSdf - INFO - /smartscan/ShapeNetCore.v2/04256520/11f31367f34bfea04b3c42e318f3affc/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/11f31367f34bfea04b3c42e318f3affc.npz
GLSL Shader compilation failed: <string>:
0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES
So there are these two errors:
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.
and
GLSL Shader compilation failed: <string>: 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES
Note that this was run in a docker container (Ubuntu 16.04). Also, I use Xfcb as a dummy display via this command:
export DISPLAY=:20 Xvfb :20 -screen 0 1366x768x16 &
Also, I have checked the OpenGL version.
glxinfo | grep "Max"
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
It seems the program used the compat profile(3.0) instead of the core profile (3.3). How can I solve these problems?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (1 by maintainers)
Top GitHub Comments
For me, this problem has been resolved. Basically, remote desktop does not work! “GLSL Shader compilation failed: <string>: 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES” errors are gone! One needs to run the pre-processing locally with a video driver properly installed. I have a discrete nvidia GPU and the pre-processing generate .npz files. I am using Ubuntu 18.04 Unity session. It is NOT working with Xfce session for me! Note that the “enum” warning is still there.
Hello, @CZ-Wu!
Have you run the code on an AWS instance? If that’s the case, I faced to the same error when I used a Deep Learning AMI. So I have stopped using it and have built an environmentto run the PyTorch on common Python with GPUs from Ubuntu Server 18.04 AMI (Maybe, the anaconda is in compatible for OpenGL…)
I hope this advice helps your work. Cheers!