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: if a fragment input is (or contains) an integer, then it must be qualified with 'flat'

See original GitHub issue

Hi, I’m also trying to preprocess the data but am getting a different OpenGL error:

OpenGL Error: XX (500) In: /usr/local/include/pangolin/gl/gl.hpp, line 203 Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.GLSL Shader compilation failed: <string>: 0:8(1): error: if a fragment input is (or contains) an integer, then it must be qualified with ‘flat’ 0:8(8): error: `gl_PrimitiveID’ redeclared

Zero samples are successfully being generated. I’m trying to generate the chairs training dataset from ShapeNet Core v2.

I am running this code on a fresh VMWare VM of Ubuntu 18.04 64-bit on VMWare Workstation Player 15. I have an NVIDIA GTX 1060 Mobile.

Some previous things I’ve tried were:

  1. Running in a Docker contain (but Pangolin required a display)
  2. Running in a VirtualBox VM of Ubuntu 18.04 (but it did not support OpenGL 3.3)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
yokingloucommented, May 8, 2021

Hi,

I met the same problem. Is there any solution?

0reactions
pedrovfigueiredocommented, Feb 18, 2022

Same issue here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"flat" qualifier in glsl? - opengl - Stack Overflow
Using the flat keyword, no interpolation is done, so every fragment generated during the rasterization of that particular primitive will get ...
Read more >
Preprocessing Error: 0:8(1): error: if a fragment input is (or ...
Preprocessing Error: 0:8(1): error: if a fragment input is (or contains) an integer, then it must be qualified with 'flat' 0:8(8): error: `gl_PrimitiveID' ......
Read more >
Passing integer from vertex to fragment shader? - OpenGL
When I tried to pass an integer from a vertex shader to a fragment shader, i get “invalid ... “error C5215: Integer varying...
Read more >
Can't pass integer variables between shaders : r/opengl - Reddit
I'm trying to pass an integer variable from vertex to fragment shader. But the shaders won't compile. Does glsl not accept integer types?...
Read more >
GLSL_NV_fragment_shader_bar...
Like tessellation and geometry shader inputs, such variables or blocks ... integer and double-precision fragment shader inputs if qualified ...
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