Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

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' redeclared #73

Closed
yokinglou opened this issue May 8, 2021 · 1 comment

Comments

@yokinglou
Copy link

I met such errors below and there is no output .npz file.

OpenGL Error 500: GL_INVALID_ENUM: An unacceptable value is specified for an enumerated argument.
In: /usr/local/include/pangolin/gl/gl.hpp, line 205
OpenGL Error 500: GL_INVALID_ENUM: An unacceptable value is specified for an enumerated argument.
In: /usr/local/include/pangolin/gl/gl.hpp, line 205
DeepSdf - INFO - /data/home/yujing/project/dataset/ShapeNetCore.v2/04256520/11b544b22dedb59c654ea6737b0d3597/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/11b544b22dedb59c654ea6737b0d3597.npz
libEGL warning: DRI2: failed to authenticate
DeepSdf - INFO - /data/home/yujing/project/dataset/ShapeNetCore.v2/04256520/11be630221243013c087ef7d7cf00301/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/11be630221243013c087ef7d7cf00301.npz
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

How can I fix it?

@yokinglou
Copy link
Author

yokinglou commented May 8, 2021

I generate the ".npz" files following the solution https://github.com/facebookresearch/DeepSDF/issues/35#issuecomment-667736405 in #35.

I commented out the line https://github.com/facebookresearch/DeepSDF/blob/master/src/ShaderProgram.cpp#L97, as described here gl_PrimitiveID does not need to be declared since its assume to exist by default? This causes GLSL compile failure

But the OpenGL Error 500 is still existed and the "libEGL warning: DRI2: failed to authenticate" is raised.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant