Discussion:
[Bug 789835] New: Video playback on some applications brings system to a halt
"GStreamer" (GNOME Bugzilla)
2017-11-02 20:11:03 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Bug ID: 789835
Summary: Video playback on some applications brings system to a
halt
Classification: Platform
Product: GStreamer
Version: 1.12.3
OS: Linux
Status: NEW
Severity: critical
Priority: Normal
Component: gstreamer (core)
Assignee: gstreamer-***@lists.freedesktop.org
Reporter: ***@gmail.com
QA Contact: gstreamer-***@lists.freedesktop.org
GNOME version: ---

Previously filed a bug @ https://bugs.kde.org/show_bug.cgi?id=386284

After update to Kubuntu 17.10 video playback is buggy. On most video files
Gwenview brings the whole system to a halt, just leaves some seconds to
interact and kill the application to rescue the system or a warm reboot is
necessary.

This happens elsewhere as well e.g. previewing video in Dolphin. In contrast
VLC plays the videos smoothly and the system functions as usual. I guess some
updated backends are at fault.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-02 21:48:42 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Mathieu Duponchelle <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.com

--- Comment #1 from Mathieu Duponchelle <***@gmail.com> ---
Can you share more specific steps to reproduce this issue, such as sample
files, gstreamer version in use, and more critically some way to reproduce your
problem that does not involve an external application? For example, have you
tested playing back one of these files with "gst-launch-1.0 playbin
uri=file:///path/to/file"?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-02 21:48:48 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Mathieu Duponchelle <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-03 00:00:58 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #2 from Hamid <***@gmail.com> ---
This is the output from playing the attached video sample. I had to ^C to send
signal since the system was in a state of trans: no key press worked, no click
captured, even the pointer froze intermittently for longer moments. If computer
got some time, it was killing and restarting plasmashell in a loop in that
window.

$ gst-launch-1.0 playbin uri=file:/media/hamid/Video/Loyverse/How\ to\ add\ an\
employee\ in\ Loyverse\ POS\ \[720p\].mp4
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vaapisink0': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx1";
Redistribute latency...
Got context from element 'playsink': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx1";
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock
WARNING: from element
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstVaapiSink:vaapisink0:
A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2901): gst_base_sink_is_too_late ():
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstVaapiSink:vaapisink0:
There may be a timestamping problem, or this computer is too slow.
Got EOS from element "playbin0".
Execution ended after 0:01:58.510736978
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-03 00:16:08 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #3 from Hamid <***@gmail.com> ---
Created attachment 362858
--> https://bugzilla.gnome.org/attachment.cgi?id=362858&action=edit
Sample video to show gstreamer computer lock down

This is a cut scene from the original intended sample. That exceeds the set
file size limit.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-03 02:24:07 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #4 from Mathieu Duponchelle <***@gmail.com> ---
Thanks! It would still be helpful if you could share the exact version of
gstreamer and its plugins that you are using.

For what it's worth on my end with git master nothing gets decoded and I get a
lot of libav errors, with 1.12.3 it plays just fine, I do not get any sort of
lockups but I also am not using vaapi.

Could you try if you get the same problems with a manually constructed pipeline
such as:

gst-launch-1.0 uridecodebin uri=file:///path/to/media ! video/x-raw !
videoconvert ! xvimagesink

And assuming you have gst-libav installed:

gst-launch-1.0 filesrc location=/path/to/media ! qtdemux ! queue ! avdec_h264 !
videoconvert ! xvimagesink
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-03 08:09:59 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Tim-Philipp Müller <***@zen.co.uk> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@zen.co.uk

--- Comment #5 from Tim-Philipp Müller <***@zen.co.uk> ---
Do the problems go away if you uninstall the gstreamer-vaapi package (and
install gst-libav/gst-ffmpeg instead?)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-03 13:24:22 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #6 from Hamid <***@gmail.com> ---
Just removed vaapi and all is OK. If required to troubleshoot gstreamer-vaapi,
I can reinstall and check results of Comment 4.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-03 13:37:28 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Tim-Philipp Müller <***@zen.co.uk> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.com,
| |***@igalia.com
Component|gstreamer (core) |gstreamer-vaapi
Summary|Video playback on some |vaapi: Video playback on
|applications brings system |some applications brings
|to a halt |system to a halt
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-03 13:46:26 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #7 from Mathieu Duponchelle <***@gmail.com> ---
(In reply to Hamid from comment #6)
Post by "GStreamer" (GNOME Bugzilla)
Just removed vaapi and all is OK. If required to troubleshoot
gstreamer-vaapi, I can reinstall and check results of Comment 4.
Well these comments were there to check whether vaapi was causing the issue, so
there's no need to now :)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-03 23:07:45 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #8 from sreerenj <***@gmail.com> ---
Hm, seems like the same issue here
https://bugzilla.gnome.org/show_bug.cgi?id=775698

Ubunut17.10 + vaapisink will not work if you use default display server (which
is wayland in Ubuntu 17.10). Issue seems to be in "mutter".

https://bugzilla.gnome.org/show_bug.cgi?id=775698#c14
https://bugzilla.gnome.org/show_bug.cgi?id=775698#c15
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-06 10:19:52 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #9 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
This looks like a very different problem, like if the decoding or rendering is
messing with the system.

Could you reinstall gstreamer-vaapi and try:

1\ gst-play-1.0 How\ to\ add\ an\ employee\ in\ Loyverse\ POS\ \[720p\].mp4
--videosink=fakesink

Is the audio played correctly?

2\ gst-play-1.0 How\ to\ add\ an\ employee\ in\ Loyverse\ POS\ \[720p\].mp4
--gst-debug=vaapi*:5 > out.log 2>&1

please upload the generated file out.log

3\ please post the output of the vainfo command
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-07 23:20:40 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #10 from Hamid <***@gmail.com> ---
Created attachment 363183
--> https://bugzilla.gnome.org/attachment.cgi?id=363183&action=edit
Output and errors as requested in Comment 9
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-07 23:25:47 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #11 from Hamid <***@gmail.com> ---
1\ Audio played correctly till the end without video play but there was
glitches and after it reached the end I had to Ctrl-C. It finished naturally
though, perhaps did not catch the signal.

2\ Uploaded attachment 363183.

3\ $ vainfo
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.40 (libva )
vainfo: Driver version: Intel i965 driver for Intel(R) Ironlake Mobile - 1.8.3
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-09 16:14:01 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #12 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
that log is quite strange. it is like all the frame were blocked until the
audio ends, as if they have a PTS in the future.

1\ Have you tried with a different video sink, such as glimagesink or
xvimagesink?

I don't see any error in the logs, perhaps the issue is somewhere else.

2\ Can I ask you for another log, the same pipeline with vaapisink, but *:5 (it
is going to be huge).
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-09 16:43:36 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #13 from Hamid <***@gmail.com> ---
No problem. What are the exact commands I enter in the prompt?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-09 18:09:19 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #14 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
(In reply to Hamid from comment #13)
Post by "GStreamer" (GNOME Bugzilla)
No problem. What are the exact commands I enter in the prompt?
1\ gst-play-1.0 How\ to\ add\ an\ employee\ in\ Loyverse\ POS\ \[720p\].mp4
--videosink=glimagesink

By the way, do you known which is the video sink used by Gwenview??

2\ gst-play-1.0 How\ to\ add\ an\ employee\ in\ Loyverse\ POS\ \[720p\].mp4
--gst-debug=*:4,vaapi*:5
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-09 20:54:32 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #15 from sreerenj <***@gmail.com> ---
Old IronLake hardware, Higher chance for some mess up in driver ;)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-10 20:51:36 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #16 from Hamid <***@gmail.com> ---
Created attachment 363374
--> https://bugzilla.gnome.org/attachment.cgi?id=363374&action=edit
Output and errors as requested in Comment 14
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-10 20:59:24 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #17 from Hamid <***@gmail.com> ---
1\ Plasmashell got shot and had to kstart it from the command prompt manually.
This is the output for glimagesink:
Press 'k' to see a list of keyboard shortcuts.
Now playing /home/hamid/Temp/How to add an employee in Loyverse POS [720p].mp4
Redistribute latency...
Redistribute latency...
WARNING A lot of buffers are being dropped.
WARNING debug information: gstbasesink.c(2901): gst_base_sink_is_too_late ():
/GstPlayBin:playbin/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink:
There may be a timestamping problem, or this computer is too slow.
WARNING A lot of buffers are being dropped.
WARNING debug information: gstbasesink.c(2901): gst_base_sink_is_too_late ():
/GstPlayBin:playbin/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink:
There may be a timestamping problem, or this computer is too slow.
WARNING A lot of buffers are being dropped.
WARNING debug information: gstbasesink.c(2901): gst_base_sink_is_too_late ():
/GstPlayBin:playbin/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink:
There may be a timestamping problem, or this computer is too slow.
WARNING A lot of buffers are being dropped.
WARNING debug information: gstbasesink.c(2901): gst_base_sink_is_too_late ():
/GstPlayBin:playbin/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink:
There may be a timestamping problem, or this computer is too slow.
0:00:15.6 / 0:00:15.6
Reached end of play list.

Output for xvimagesink:
gst-play-1.0 How\ to\ add\ an\ employee\ in\ Loyverse\ POS\ \[720p\].mp4
--videosink=xvimagesink
Press 'k' to see a list of keyboard shortcuts.
Now playing /home/hamid/Temp/How to add an employee in Loyverse POS [720p].mp4
Redistribute latency...
Redistribute latency...
0:00:15.6 / 0:00:15.6
Reached end of play list.

intel_do_flush_locked failed: Input/output error

2\ Uploaded attachment 363374 [details]

3\ Regarding driver mess up mentioned in comment 15, I once checked hardware
capabilities (3D rendering etc.) and followed some notes found on the Internet
to upgrade video drivers, but then rolled back the changes as far as I could.
More precisely it was about the OpenGL version supported on the system.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2017-11-15 12:02:44 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Víctor Manuel Jáquez Leal <***@igalia.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal

--- Comment #18 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
removing critical, since it applies to a specific CPU
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-05-04 08:56:11 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Víctor Manuel Jáquez Leal <***@igalia.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-05-04 09:17:27 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Víctor Manuel Jáquez Leal <***@igalia.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Priority|Normal |Low
Summary|vaapi: Video playback on |vaapi: intel driver issues
|some applications brings |with old chipsets
|system to a halt |
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-05-04 22:03:08 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

Hamid <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.com
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-05-04 23:17:13 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

--- Comment #19 from Hamid <***@gmail.com> ---
It's a bug which interferes with the system until it is unusable. That's
critical if not fixed. The code can propagate in downstream products and cause
undesirable main and side effects.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-03 15:52:01 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=789835

GStreamer system administrator <***@gstreamer.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |OBSOLETE

--- Comment #20 from GStreamer system administrator <***@gstreamer.net> ---
-- 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/gstreamer-vaapi/issues/73.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
Loading...