champ icon indicating copy to clipboard operation
champ copied to clipboard

OpenGL.error.GLError: GLError

Open InuyashaLee opened this issue 1 year ago • 2 comments

When I run python -m scripts.data_processors.smpl.generate_smpls --reference_imgs_folder reference_imgs --driving_video_path driving_videos/your_video_1 --device YOUR_GPU_ID,it reports an error:OpenGL.error.GLError: GLError( err = 12296,..... How to solve this problem?

InuyashaLee avatar Jul 31 '24 12:07 InuyashaLee

The error OpenGL.error.GLError: GLError( err = 12296) that you encountered while running the command typically relates to issues with OpenGL context initialization or EGL settings. Ensure that the PYOPENGL_PLATFORM environment variable is set correctly. if "PYOPENGL_PLATFORM" not in os.environ: os.environ["PYOPENGL_PLATFORM"] = "egl" If you are on Windows, you might want to change egl to wgl. For Linux, ensure you have the necessary EGL library support. Alternatively, you can follow this tutorial to set up the environment: https://github.com/fudan-generative-vision/champ/blob/master/docs/data_process.md. This should be helpful.

NinoNeumann avatar Oct 11 '24 06:10 NinoNeumann

I encountered the same problem, and os. environmental ["PYOPENGL-PLATFORM"]="egl" did not help. My environment is a remote Linux server, but I am a non root user. May I ask if there are any other solutions available.

HiouKaoru avatar Jan 19 '25 03:01 HiouKaoru