GNOME Bugzilla – Bug 796506
qmlglsrc: Black frames with Mesa
Last modified: 2018-11-03 15:30:37 UTC
I installed Ubuntu 18.04 in VM (virtual box) and the example https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/qt/qmlsrc renders black frames. I will attach logs that I can get while running the pipeline LIBGL_DEBUG=verbose MESA_DEBUG=1 MESA_XSYNC=1 SVGA_EXTRA_LOGGING=1 GST_GL_XINITTHREADS=1 ./grabqml
Created attachment 372566 [details] gst debug logs for qt
Created attachment 372567 [details] gst debug logs for gl
Created attachment 372568 [details] dmesg
It is with vmware, not virtual box and the error Mesa: User error: GL_INVALID_OPERATION in glReadBuffer(invalid buffer GL_COLOR_ATTACHMENT0) goes away if I set use-default-fbo=false. Also videotestsrc ! glimagesink and videotestsrc ! gstgtkglsink are working fine. The example qmlsink also works fine. And I wonder if we could use QOpenGLFramebufferObject::texture() to directly wrap the texture from qt instead of having this extra fbo copy.
Created attachment 372574 [details] gst logs when using a real machine with intel gpu
Created attachment 372575 [details] snapshot result is the same in the VM or real machine
Same result with a real machine that has an intel gpu and Ubuntu 16.04 with default Mesa (same result with latest Mesa from a custom build).
Hi Haihua, is your qmlglsrc example still working for you ? maybe there is a regression again related to https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=fa37e3588e42e34165b951b9f91af8c1fd2ee205 Thx!
(In reply to Julien Isorce from comment #8) > Hi Haihua, is your qmlglsrc example still working for you ? maybe there is a > regression again related to > https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/ > ?id=fa37e3588e42e34165b951b9f91af8c1fd2ee205 > > Thx! Seems no work on wayland.
Do you mean s/no/to/g ? Have you tried only on wayland or you tried on X too ? Or is it a regression ? Thx!
Maybe it works on wayland because is using egl. (I can try QT_XCB_GL_INTEGRATION=xcb_egl GST_GL_PLATFORM=egl on X)
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/479.