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.

RuntimeError: Attached fragment shader is not compiled.

See original GitHub issue

Hi , I ran visualize_voxels.py according to your README, but got

  File "E:/Github/semantic-kitti-api/visualize_voxels.py", line 599, in <module>
    window = Window()
  File "E:/Github/semantic-kitti-api/visualize_voxels.py", line 108, in __init__
    self.initializeGL()
  File "E:/Github/semantic-kitti-api/visualize_voxels.py", line 212, in initializeGL
    self.program.link()
  File "E:\Github\semantic-kitti-api\auxiliary\glow.py", line 271, in link
    raise RuntimeError(str(msg.decode("utf-8")))
RuntimeError: Attached fragment shader is not compiled.

libpng warning: iCCP: cHRM chunk does not match sRGB

The library is same to requirement.txt and OpenGL is test well. Is there anyone can help me?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
VirtualRoyaltycommented, Jan 24, 2020

Hi, @yanx27 ! I had exactly the same problem yesterday. I also tried to run ’ visualize_voxels.py-on Windows. After several hours of trying to solve this problem, I realize that perhaps OpenGL calculations are not happening on GPU. After switching all calculations to the GPU via Nvidia manager, the script started working! So you definitely have a chance to deploy this under Windows. I hope this helps you!

0reactions
luigui2906commented, Mar 25, 2020

No. Nothing in particular, just installed the needed dependencies with either pip or conda (glfw, pyopengl, imgui).

I had the same error:

raise RuntimeError(str(msg.decode("utf-8"))) RuntimeError: Attached fragment shader is not compiled.

Just changed the configuration on the Nvidia Control Panel as mentioned and then started working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JJBA:ASB Attached fragment shader is not compiled. #4028
F {rsx::thread} class gl::glsl::link_exception thrown: linkage failed: 'Attached fragment shader is not compiled. ... Could it be an issue with ...
Read more >
glsl VertexShader/FragmentShader refuse to compile in ...
I am completely stumped and have no idea what is causing the ERROR since i can find no error with the code and...
Read more >
RuntimeError: Fragment shader failed - Cesium Community
I have attached tileset below, please have a look in it. tileset.zip (1.0 KB). Since data (b3dm file) size is huge, I was...
Read more >
Fragment Shader Not Compiling & glattachShader Crashing
Fragment Shader doesn't seem to be compiling since I can compile it with junk source code, and whenever I attach it to the...
Read more >
Source code for fsleyes.gl.shaders.glsl.program
:arg fragSrc: String containing fragment shader source code. ... the program after compilation, which fails due to texture data not being bound at...
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