GNOME Bugzilla – Bug 751003
glimagesink: Windows are sharing their events
Last modified: 2015-06-23 14:47:18 UTC
env GST_GL_XINITTHREADS=1 gst-launch-1.0 videotestsrc ! glimagesink videotestsrc ! glimagesink This usually crashes, but when it doesn't both windows are handling the events from each other. Resize one of the windows and observe the video inside the other one to shrink too (but the window size stays the same).
The windows sharing happens because of the below commit.. http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/gst-libs/gst/gl/x11/gstglwindow_x11.c?id=5697b6b89b4b2a15c45bd47be940a17f4412ea11 If we revert this the resize happens properly... But this does not help in solving the crashes which is happening quite frequently.. Noticed that the crashes are happening even in quite old versions as well
i just observed something weird.. The frequent crash happens only with mesa driver. If i change my driver to NVidia the crash disappears. With Nvidia driver "OpenGL version string: 4.4.0 NVIDIA 331.113" it doesnt crash at all But with Mesa driver "OpenGL version string: 3.0 Mesa 10.3.2" it crashes very frequently. PS: the event sharing issue does get fixed on reverting the above changes.
This whole scenario seems to be caused by a broken Mesa. I just tried mesa master on my i965 card and everything works reverting the above commit. Vineeth: Are you running nouveau on a nvidia chip with Mesa 10.3.2? If so what generation?
Matthew: yes i am running Nouveau display driver on nvidia chip. did not get what do you mean by generation!
http://nouveau.freedesktop.org/wiki/CodeNames/ what nvXX where XX is a number. Can be retrieved with lspci. Also, Mesa 10.3 is at least a year old now. You should consider upgrading, especially for nouveau usage.
lspci gives 01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M] (rev a1) How to proceed about the window sharing issue? is it ok to revert the change or will there be a better way to fix it?
So this is a mesa bug? Or... ?
from my understanding, the crashes seem to be mesa bug. But the window sharing is related to the above mentioned patch, as the same issue happens with nvidia driver as well
So that patch should be fixed then at least, and things be reported to the mesa people ;) The problem with that patch is then that we now have the same X11 connection for all windows, but don't properly send events only to the window for which they are?
Patch should be reverted. Mesa master is already fixed it seems.
Ok, let's do that then. Thanks! commit cb01fbfc2743fefbaafcaab60f3f7e66de9d379c Author: Sebastian Dröge <sebastian@centricular.com> Date: Tue Jun 23 16:46:39 2015 +0200 Revert "gl/window/x11: don't create our own X11 display" This reverts commit 5697b6b89b4b2a15c45bd47be940a17f4412ea11. https://bugzilla.gnome.org/show_bug.cgi?id=751003