question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during data preprocessing: 'GLSL Shader compilation failed: error: GLSL 3.30 is not supported'

See original GitHub issue

I 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:open
  • Created 4 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lywcncommented, Jan 30, 2020

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.

0reactions
yhijiokacommented, Sep 28, 2020

Hello, @CZ-Wu!

Thanks! I have turned off X11Forwarding, but I get two new errors EGL init failed and Cannot create EGL surface. How could I fix these two problems?

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

0:1(10): error: GLSL 3.30 is not supported. ubuntu 18.04 c++
I solved the problem by running the following command on linux: export MESA_GL_VERSION_OVERRIDE=3.3.
Read more >
Troubleshooting — MRtrix 3.0 documentation
The GUI components in MRtrix3 ( mrview & shview ) use the OpenGL 3.3 API ... mrview: [ERROR] GLSL log [vertex shader]: ERROR:...
Read more >
GLSL 3.30 is not supported (Ubuntu 12.04, Intel HD Graphics ...
It seems "compatibility" does not work. When I changed the .py file as you instructed, the error information is as below: RuntimeError: ('Shader...
Read more >
Glsl 4.40 is not supported
In some implementations the core profile may also support earlier ... "GLSL Shader compilation failed: : 0:1(10): error: GLSL 3.30 is not supported....
Read more >
notes-1.10.4.1.txt - Panda3D
Fix exception trying to create DirectScrolledList * Fix flickering in ... from GLSL shaders * Fix shader error flag not being set if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found