Error: GST_GL_API=gles2 gst-launch-1.0 videotestsrc ! glimagesink with NVIDIA driver
Describe your issue
I reported bug about the snapshot(Camera), I invite this project from https://gitlab.gnome.org/GNOME/snapshot/-/issues/162.
It does not work on Xorg as command bellow. It can play test movie on Wayland OK.
GST_GL_API=gles2 gst-launch-1.0 videotestsrc ! glimagesink
And glmark2-es2-wayland does not work.
Expected Behavior
GST_GL_API=gles2 gst-launch-1.0 videotestsrc ! glimagesink
and glmark2-es2-wayland
can work correctly.
And snapshot(Camera) work fine.
Observed Behavior
GST_GL_API=gles2 gst-launch-1.0 videotestsrc ! glimagesink
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink: Failed to create opengl context
Additional debug info:
../ext/gl/gstglimagesink.c(1131): _ensure_gl_setup (): /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...
Further information on wayland,glmark2-es2-wayland get errors.
glmark2-es2-wayland &
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce GTX 750 Ti/PCIe/SSE2
GL_VERSION: OpenGL ES 3.2 NVIDIA 550.67
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 5071 FrameTime: 0.197 ms
[build] use-vbo=true: FPS: 5135 FrameTime: 0.195 ms
[texture] texture-filter=nearest: FPS: 5025 FrameTime: 0.199 ms
[texture] texture-filter=linear: FPS: 5212 FrameTime: 0.192 ms
[texture] texture-filter=mipmap: FPS: 5199 FrameTime: 0.192 ms
[shading] shading=gouraud: FPS: 4324 FrameTime: 0.231 ms
[shading] shading=blinn-phong-inf: FPS: 4746 FrameTime: 0.211 ms
[shading] shading=phong: FPS: 4512 FrameTime: 0.222 ms
[shading] shading=cel: FPS: 4452 FrameTime: 0.225 ms
[bump] bump-render=high-poly: FPS: 3476 FrameTime: 0.288 ms
[bump] bump-render=normals: FPS: 5540 FrameTime: 0.181 ms
[bump] bump-render=height: FPS: 5365 FrameTime: 0.186 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 4136 FrameTime: 0.242 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 3102 FrameTime: 0.322 ms
[pulsar] light=false:quads=5:texture=false: FPS: 4881 FrameTime: 0.205 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 1910 FrameTime: 0.524 ms
[desktop] effect=shadow:windows=4: FPS: 2955 FrameTime: 0.338 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 1931 FrameTime: 0.518 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 1702 FrameTime: 0.588 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2643 FrameTime: 0.378 ms
[ideas] speed=duration: FPS: 3493 FrameTime: 0.286 ms
[jellyfish] <default>: FPS: 3498 FrameTime: 0.286 ms
[terrain] <default>: FPS: 592 FrameTime: 1.689 ms
[shadow] <default>: FPS: 3798 FrameTime: 0.263 ms
[refract] <default>: FPS: 1223 FrameTime: 0.818 ms
Error: Failed to add fragment shader from file None:
Error: 0(24) : error C7101: Macro HIGHP_OR_DEFAULT redefined
Error:
[conditionals] fragment-steps=0:vertex-steps=0: Set up failed
Error: Failed to add fragment shader from file None:
Error: 0(24) : error C7101: Macro HIGHP_OR_DEFAULT redefined
Error:
[conditionals] fragment-steps=5:vertex-steps=0: Set up failed
Error: Failed to add fragment shader from file None:
Error: 0(24) : error C7101: Macro HIGHP_OR_DEFAULT redefined
Error:
[conditionals] fragment-steps=0:vertex-steps=5: Set up failed
Error: Failed to add fragment shader from file None:
Error: 0(31) : error C7101: Macro HIGHP_OR_DEFAULT redefined
Error:
[function] fragment-complexity=low:fragment-steps=5: Set up failed
Error: Failed to add fragment shader from file None:
Error: 0(32) : error C7101: Macro HIGHP_OR_DEFAULT redefined
Error:
[function] fragment-complexity=medium:fragment-steps=5: Set up failed
Error: Failed to add fragment shader from file None:
Error: 0(25) : error C7101: Macro HIGHP_OR_DEFAULT redefined
Error:
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: Set up failed
Error: Failed to add fragment shader from file None:
Error: 0(25) : error C7101: Macro HIGHP_OR_DEFAULT redefined
Error:
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: Set up failed
Error: Failed to add fragment shader from file None:
Error: 0(25) : error C7101: Macro HIGHP_OR_DEFAULT redefined
Error:
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: Set up failed
=======================================================
glmark2 Score: 3755
=======================================================
However, glmark2-wayland
work on Wayland.
$ glmark2-wayland &
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce GTX 750 Ti/PCIe/SSE2
GL_VERSION: 4.6.0 NVIDIA 550.67
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 5170 FrameTime: 0.193 ms
[build] use-vbo=true: FPS: 5167 FrameTime: 0.194 ms
[texture] texture-filter=nearest: FPS: 5278 FrameTime: 0.189 ms
[texture] texture-filter=linear: FPS: 5226 FrameTime: 0.191 ms
[texture] texture-filter=mipmap: FPS: 5143 FrameTime: 0.194 ms
[shading] shading=gouraud: FPS: 4727 FrameTime: 0.212 ms
[shading] shading=blinn-phong-inf: FPS: 4707 FrameTime: 0.212 ms
[shading] shading=phong: FPS: 4465 FrameTime: 0.224 ms
[shading] shading=cel: FPS: 4531 FrameTime: 0.221 ms
[bump] bump-render=high-poly: FPS: 3496 FrameTime: 0.286 ms
[bump] bump-render=normals: FPS: 5360 FrameTime: 0.187 ms
[bump] bump-render=height: FPS: 5516 FrameTime: 0.181 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 4197 FrameTime: 0.238 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 3017 FrameTime: 0.332 ms
[pulsar] light=false:quads=5:texture=false: FPS: 4976 FrameTime: 0.201 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 1904 FrameTime: 0.525 ms
[desktop] effect=shadow:windows=4: FPS: 2908 FrameTime: 0.344 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 1964 FrameTime: 0.509 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 1701 FrameTime: 0.588 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2581 FrameTime: 0.387 ms
[ideas] speed=duration: FPS: 3562 FrameTime: 0.281 ms
[jellyfish] <default>: FPS: 3556 FrameTime: 0.281 ms
[terrain] <default>: FPS: 583 FrameTime: 1.716 ms
[shadow] <default>: FPS: 3874 FrameTime: 0.258 ms
[refract] <default>: FPS: 1228 FrameTime: 0.815 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 5057 FrameTime: 0.198 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 4898 FrameTime: 0.204 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 4920 FrameTime: 0.203 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 4808 FrameTime: 0.208 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 4630 FrameTime: 0.216 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 4901 FrameTime: 0.204 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 4868 FrameTime: 0.205 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 4772 FrameTime: 0.210 ms
=======================================================
glmark2 Score: 4050
=======================================================
Setup
My PC environment
- Operating System: Linux
- Linux Distribution: Fedora Linux 40 Workstation
- DE: GNOME 46
- Device: Computer
- Motherboad: B450m Steel Legend
- CPU: Ryzen 5 5500
- Graphic Card: NVIDIA GTX 750Ti
- NVIDIA Driver version: 550.67
- GStreamer Version: 1.22.9
- Command line: as above
Steps to reproduce the bug
- open terminal
- type
GST_GL_API=gles2 gst-launch-1.0 videotestsrc ! glimagesink
- type
glmark2-es2-wayland
How reproducible is the bug?
Simply command, always reproduce.
Solutions you have tried
none.
Related non-duplicate issues
I can't find.