[Bug 759131] New: glimagesink compiled for GLES/EGL/dispmanx (without X) fails on RaspberryPi

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Dec 7 08:42:52 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=759131

            Bug ID: 759131
           Summary: glimagesink compiled for GLES/EGL/dispmanx (without X)
                    fails on RaspberryPi
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: florent.thiery at ubicast.eu
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

I compiled gst-plugins-bad from git using 1.6 branch using the following
options

./autogen.sh CFLAGS="-I/opt/vc/include -I
/opt/vc/include/interface/vcos/pthreads -I
/opt/vc/include/interface/vmcs_host/linux/" LDFLAGS="-L/opt/vc/lib"
--disable-gtk-doc --disable-opengl --enable-gles2 --enable-egl --disable-glx
--disable-x11 --disable-wayland --enable-dispmanx

My environment is (Arch ARM):
* gst-plugins-base-libs 1.6.1-1
* gst-plugins-good 1.6.1-2
* gstreamer 1.6.1-1
* linux-firmware 20150904.6ebf5d5-1
* raspberrypi-firmware 20151130-1
* raspberrypi-firmware-bootloader 20151130-1
* raspberrypi-firmware-bootloader-x 20151130-1
* raspberrypi-firmware-examples 20151130-1
* raspberrypi-firmware-tools 20151130-1

Running Linux 4.1.13-1-ARCH

When starting a test pipeline, i get a critical error: "glGetString not defined
or returned invalid value"

GST_GL_WINDOW=dispmanx GST_GL_API=gles2 GST_GL_PLATFORM=egl gst-launch-1.0
videotestsrc ! glimagesink
[root at rpitest ~]# GST_DEBUG=gl*:5 GST_GL_WINDOW=dispmanx GST_GL_API=gles2
GST_GL_PLATFORM=egl gst-launch-1.0 videotestsrc ! glimagesink
...
0:00:00.382713000 20964   0xac3a80 DEBUG            glimagesink
gstglimagesink.c:746:_ensure_gl_setup:<sink> No current context, creating one
for <gldisplayegl0>
0:00:00.383909000 20964   0xac3a80 DEBUG              gldisplay
gstgldisplay.c:478:gst_gl_display_get_gl_context_for_thread:<gldisplayegl0>
returning context (NULL) for thread (nil)
0:00:00.385433000 20964   0xac3a80 INFO               glcontext
gstglcontext.c:311:gst_gl_context_new: creating a context for display
<gldisplayegl0>, user choice:egl
0:00:00.387033000 20964   0xac3a80 DEBUG              glcontext
gstglcontext.c:346:gst_gl_context_new:<glcontextegl0> Done creating context for
display <gldisplayegl0> (user_choice:egl)
0:00:00.388236000 20964   0xac3a80 DEBUG              gldisplay
gstgldisplay.c:411:gst_gl_display_create_context:<gldisplayegl0> creating
context <glcontextegl0> from other context (NULL)
0:00:00.389662000 20964   0xac3a80 DEBUG              glcontext
gstglcontext.c:931:gst_gl_context_create:<glcontextegl0>  other_context:(NULL)
0:00:00.390847000 20964   0xac3a80 INFO                glwindow
gstglwindow.c:274:gst_gl_window_new: creating a window, user choice:dispmanx
0:00:00.391821000 20964   0xac3a80 DEBUG               glwindow
gstglwindow_dispmanx_egl.c:105:gst_gl_window_dispmanx_egl_new: creating
Dispmanx EGL window
0:00:00.395037000 20964   0xac3a80 DEBUG              glcontext
gstglcontext.c:836:gst_gl_context_set_window:<glcontextegl0>
window:<glwindowdispmanxegl0>
0:00:00.397161000 20964   0xac9860 DEBUG              glcontext
gstglcontext.c:1235:gst_gl_context_create_thread:<glcontextegl0> Creating
thread
0:00:00.398827000 20964   0xac9860 DEBUG               glwindow
gstglwindow_dispmanx_egl.c:140:gst_gl_window_dispmanx_egl_open: Got display
size: 1920x1080

0:00:00.400130000 20964   0xac9860 INFO               glcontext
gstglcontext.c:1293:gst_gl_context_create_thread:<glcontextegl0> Attempting to
create opengl context. user chosen api(s) (gles2), compiled api support (gles2)
display api (opengl opengl3 gles2)
0:00:00.401446000 20964   0xac9860 DEBUG              glcontext
gstglcontext_egl.c:242:gst_gl_context_egl_create_context:<glcontextegl0>
Creating EGL context
0:00:00.402607000 20964   0xac9860 INFO               glcontext
gstglcontext_egl.c:287:gst_gl_context_egl_create_context: egl initialized,
version: 1.4
0:00:00.403708000 20964   0xac9860 INFO               glcontext
gstglcontext_egl.c:336:gst_gl_context_egl_create_context: Using OpenGL|ES 2.0
0:00:00.404840000 20964   0xac9860 INFO               glcontext
gstglcontext_egl.c:209:gst_gl_context_egl_choose_config: config set: 4, 1
0:00:00.406107000 20964   0xac9860 DEBUG              glcontext
gstglcontext_egl.c:347:gst_gl_context_egl_create_context: about to create gl
context
0:00:00.407811000 20964   0xac9860 INFO               glcontext
gstglcontext_egl.c:384:gst_gl_context_egl_create_context: gl context created: 1
0:00:00.409358000 20964   0xac9860 DEBUG               glwindow
gstglwindow_dispmanx_egl.c:192:window_resize: resizing invisible window from
0x0 to 16x16
0:00:00.418794000 20964   0xac9860 DEBUG              glcontext
gstglcontext_egl.c:425:gst_gl_context_egl_create_context: Creating EGLSurface
from window_handle 0xaed168
0:00:00.420343000 20964   0xac9860 INFO               glcontext
gstglcontext_egl.c:457:gst_gl_context_egl_create_context: surface created
0:00:00.455736000 20964   0xac9860 INFO               glcontext
gstglcontext.c:1304:gst_gl_context_create_thread:<glcontextegl0> created
context
0:00:00.457011000 20964   0xac9860 DEBUG              glcontext
gstglcontext.c:692:gst_gl_context_activate:<glcontextegl0> activate:1
0:00:00.458223000 20964   0xac9860 INFO               glcontext
gstglcontext.c:1320:gst_gl_context_create_thread:<glcontextegl0> available GL
APIs: gles2
0:00:00.459332000 20964   0xac9860 DEBUG              glcontext
gstglcontext.c:1339:gst_gl_context_create_thread:<glcontextegl0> Filling info
0:00:00.460885000 20964   0xac3a80 INFO               glcontext
gstglcontext.c:952:gst_gl_context_create:<glcontextegl0> gl thread created
0:00:00.462051000 20964   0xac3a80 WARN             glimagesink
gstglimagesink.c:821:_ensure_gl_setup:<sink> error: glGetString not defined or
returned invalid value
...
Got context from element 'sink': gst.gl.GLDisplay=context,
gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayEGL\)\ gldisplayegl0";
ERROR: from element
/GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink:
glGetString not defined or returned invalid value

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list