After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796506 - qmlglsrc: Black frames with Mesa
qmlglsrc: Black frames with Mesa
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-06-06 04:55 UTC by Julien Isorce
Modified: 2018-11-03 15:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst debug logs for qt (81.15 KB, text/plain)
2018-06-06 05:01 UTC, Julien Isorce
Details
gst debug logs for gl (632.49 KB, text/plain)
2018-06-06 05:02 UTC, Julien Isorce
Details
dmesg (1.78 KB, text/plain)
2018-06-06 05:02 UTC, Julien Isorce
Details
gst logs when using a real machine with intel gpu (297.41 KB, text/plain)
2018-06-06 16:46 UTC, Julien Isorce
Details
snapshot result is the same in the VM or real machine (113.89 KB, image/png)
2018-06-06 16:47 UTC, Julien Isorce
Details

Description Julien Isorce 2018-06-06 04:55: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
Comment 1 Julien Isorce 2018-06-06 05:01:39 UTC
Created attachment 372566 [details]
gst debug logs for qt
Comment 2 Julien Isorce 2018-06-06 05:02:10 UTC
Created attachment 372567 [details]
gst debug logs for gl
Comment 3 Julien Isorce 2018-06-06 05:02:51 UTC
Created attachment 372568 [details]
dmesg
Comment 4 Julien Isorce 2018-06-06 05:11:34 UTC
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.
Comment 5 Julien Isorce 2018-06-06 16:46:16 UTC
Created attachment 372574 [details]
gst logs when using a real machine with intel gpu
Comment 6 Julien Isorce 2018-06-06 16:47:00 UTC
Created attachment 372575 [details]
snapshot result is the same in the VM or real machine
Comment 7 Julien Isorce 2018-06-06 16:50:38 UTC
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).
Comment 8 Julien Isorce 2018-06-06 16:54:49 UTC
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!
Comment 9 Haihua Hu 2018-06-07 01:32:56 UTC
(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.
Comment 10 Julien Isorce 2018-06-07 19:43:04 UTC
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!
Comment 11 Julien Isorce 2018-06-07 19:44:51 UTC
Maybe it works on wayland because is using egl. (I can try QT_XCB_GL_INTEGRATION=xcb_egl GST_GL_PLATFORM=egl on X)
Comment 12 GStreamer system administrator 2018-11-03 15:30:37 UTC
-- 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.