Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL.error.GLError #9

Open
liangshi036 opened this issue Sep 9, 2020 · 3 comments
Open

OpenGL.error.GLError #9

liangshi036 opened this issue Sep 9, 2020 · 3 comments

Comments

@liangshi036
Copy link

when I run the demo visEFTFit.py , my parser definition is:

parser = argparse.ArgumentParser()
parser.add_argument('--img_dir',default="../demo/images/demo.png", type=str , help='Folder path where input image files exist')
parser.add_argument('--fit_data',default="../eft_fit/MPII_ver01.json", type=str, help='EFT data json fortmat')
parser.add_argument('--smpl_dir',default="../extradata/smpl", type=str , help='Folder path where smpl pkl files exist')
parser.add_argument('--onbbox',action="store_true", help="Show the 3D pose on bbox space")
parser.add_argument('--rendermode',default="geo", help="Choose among geo, normal, densepose")
parser.add_argument('--render_dir',default="render_eft", help="Folder to save rendered images")
parser.add_argument('--waitforkeys',action="store_true", help="If true, it will pasue after each visualizing each sample, waiting for any key pressed")
parser.add_argument('--turntable',action="store_true", help="If true, show turn table views")
parser.add_argument('--multi',action="store_true", help='If True, show all available fitting people per image. Default, visualize a single person at each time')
args = parser.parse_args()

I get error like this:

freeglut (foo): fgInitGL2: fghGenBuffers is NULL
Traceback (most recent call last):
File "E:/human_pose_estimation/eft/demo/visEFTFit.py", line 436, in
renderer = getRenderer(args.rendermode)
File "E:/human_pose_estimation/eft/demo/visEFTFit.py", line 52, in getRenderer
renderer = meshRenderer.meshRenderer()
File "E:\human_pose_estimation\eft\renderer\meshRenderer.py", line 37, in init
glRenderer.init(self, width, height, name, 'geo', color_size, ms_rate)
File "E:\human_pose_estimation\eft\renderer\glRenderer.py", line 34, in init
glEnable(GL_DEPTH_CLAMP)
File "D:\ProgramFiles\Anaconda3\lib\site-packages\OpenGL\platform\baseplatform.py", line 415, in call
return self( *args, **named )
File "src\errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1280,
description = b'\xce\xde\xd0\xa7\xc1\xd0\xbe\xd9',
baseOperation = glEnable,
cArguments = (GL_DEPTH_CLAMP,)
)

@jhugestar
Copy link
Contributor

Are you using a virtual machine? I am not sure what causes this error.

I just googled it and found:

https://stackoverflow.com/questions/33166936/freeglut-fginitgl2-fghgenbuffers-is-null/33722138

@liangshi036
Copy link
Author

liangshi036 commented Sep 9, 2020

not virtual machine, I'm using :

Windows 10
cuda 10.1
PyOpenGL 3.1.5
PyOpenGL-accelerate 3.1.5
and other packages needed.

not sure PyOpenGL is working properly.

so could you please offer the package version of the requirements?

@jhugestar
Copy link
Contributor

Hmm, then I am not sure. We haven't tested this on windows machine.

I am using the following version for pyopengl.

pyopengl 3.1.0

I don't think cuda matters here.

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

No branches or pull requests

2 participants