facebookresearch / DeepSDF

Learning Continuous Signed Distance Functions for Shape Representation
MIT License
1.41k stars 259 forks source link

GLSL Program link failed: No details provided. #95

Open DerekGrant opened 2 years ago

DerekGrant commented 2 years ago

When I am preprocessing, the GLSL program link failed.

I am not sure what can cause the GLSL issue, I had successfully built the project. Do you have any clue? Thanks!

GLSL Program link failed: No details provided.
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 - /tmp/ShapeNetV2/04256520/113a2544e062127d79414e04132a8bef/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/113a2544e062127d79414e04132a8bef.npz
DeepSdf - INFO - /tmp/ShapeNetV2/04256520/117c47d75798788a5506ead0b132904c/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/117c47d75798788a5506ead0b132904c.npz
DeepSdf - INFO - /tmp/ShapeNetV2/04256520/117f6ac4bcd75d8b4ad65adb06bbae49/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/117f6ac4bcd75d8b4ad65adb06bbae49.npz
GLSL Shader compilation failed: <string>:
0(8) : error C7528: OpenGL reserves names starting with 'gl_': gl_PrimitiveID
0(11) : warning C7555: 'varying' is deprecated, use 'in/out' instead
Haodong-Alex-Yao commented 2 years ago

I encountered the same issue. Please let me know if anyone solves it.

PoopBear1 commented 2 years ago

same issue, cannot figure out what's going on

chivee commented 2 years ago

same problem here

limhoyeon commented 2 years ago

same problem here

philippwulff commented 1 year ago

Same issue unfortunately.

GLSL Program link failed: No details provided.
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 - /mnt/hdd/ShapeNetCore.v2/04256520/15d59eaf24645f501030665054ebb2a9/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/15d59eaf24645f501030665054ebb2a9.npz
DeepSdf - INFO - /mnt/hdd/ShapeNetCore.v2/04256520/15fad17654ddfd3c33defcb28e53dee4/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/15fad17654ddfd3c33defcb28e53dee4.npz
GLSL Shader compilation failed: <string>:
0(8) : error C7528: OpenGL reserves names starting with 'gl_': gl_PrimitiveID
0(11) : warning C7555: 'varying' is deprecated, use 'in/out' instead

Did you solve this?

philippwulff commented 1 year ago

Commenting out the line https://github.com/facebookresearch/DeepSDF/blob/master/src/ShaderProgram.cpp#L97 as described here solves the problem. I still get an error:

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 - /mnt/hdd/ShapeNetCore.v2/04256520/1299643f99c8a66df59decd9cfc8a5bb/models/model_normalized.obj --> data/SdfSamples/ShapeNetV2/04256520/1299643f99c8a66df59decd9cfc8a5bb.npz

The .npz files are generated, albeit at a very slow rate ...