Bug 106441 - Totem video playback stuttering and graphical artifacts
Summary: Totem video playback stuttering and graphical artifacts
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: 18.0
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-08 15:32 UTC by kaspar.tint
Modified: 2018-07-24 07:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Totem log (1.32 KB, text/plain)
2018-05-08 15:32 UTC, kaspar.tint
Details

Description kaspar.tint 2018-05-08 15:32:49 UTC
Created attachment 139426 [details]
Totem log

Hello!

With the update to Mesa 18, I have been having issues with Gnome's Totem player. The issue also appears with Cheese and Maps.

After updating Gnome to 3.28.X, Totem got some update that made the software completely unusable for me. 

1) Seeking does not work
2) Pause button does not respond
3) Next/Previos does not respond
4) Seeking menu does not work when clicking on a time frame to jump to
5) Full screen creates strange red visual artifacts
6) The video timer looks strange. Some visual artifacts are present
7) Playback of a video is very slow. There is some serious lag

I have made an illustrative video of the problem hosted here: https://webmshare.com/rarKQ

I have some logs by using GST_DEBUG_NO_COLOR=1 GST_DEBUG=*:2 totem 2> log
These logs are attached here.

Totem version: totem 3.26.0+37+g84700147-1
Gstreamer version: gstreamer 1.14.0-1

My system information:

System Information


  PROCESSOR:          Intel Core i5-4570 @ 3.60GHz
    Core Count:       4
    Extensions:       SSE 4.2 + AVX2 + AVX + RDRAND + FSGSBASE
    Cache Size:       6144 KB
    Microcode:        0x24
    Scaling Driver:   intel_pstate powersave

  GRAPHICS:           MSI AMD Radeon RX 470/480/570/580
    Display Driver:   modesetting 1.19.1
    Monitor:          BenQ xl2411t
    Screen:           1920x1080

  MOTHERBOARD:        ASUS B85-PLUS
    Memory:           16384MB
    Chipset:          Intel 4th Gen Core DRAM
    Network:          Realtek RTL8111/8168/8411

  DISK:               128GB Samsung SSD 840 + 1000GB Seagate ST1000DM010-2DM1 + 1000GB Seagate ST1000DM003-1CH1
    File-System:      btrfs
    Mount Options:    relatime rw space_cache ssd subvol=/ subvolid=5
    Disk Scheduler:   CFQ

  OPERATING SYSTEM:   Arch rolling
    Kernel:           4.16.3-1-ARCH (x86_64)
    Desktop:          GNOME Shell 3.28.1
    Compiler:         GCC 7.3.1 20180312



The Totem developers told me to refer to Meas. I opened a bug in their tracker: https://bugzilla.gnome.org/show_bug.cgi?id=795514

Let me know how I can give more information to you if needed. I have no idea my self what else to look for.
Comment 1 Richard B. Kreckel 2018-05-18 21:46:01 UTC
I can reproduce this: Totem 3.26 is basically unable to play MPEG-4 or H.264 Videos on AMD graphics cards using Mesa 18.0.3. It hangs, lags, and uses almost all available CPU resources. I'm using X11 (Debian/testing) and tried any combination of Mesa 17 or 18, Linux 4.15 or 4.16, amdgpu.dc=0 or amdgpu.dc=1. I've tried various AMD graphics cards: GCN 1 (Tahiti), GCN 2 (Bonaire) and GCN 4 (Polaris11).
Comment 2 kaspar.tint 2018-05-19 18:21:40 UTC
Can verify that this issue has resolved it self for me after the upgrade of these components:

gnome -> 3.28.1
mesa -> 18.0.3
linux -> 4.16.9
xorg -> 1.20

Might have been the mesa update but could be the combination of them? I don't know...
Comment 3 Richard B. Kreckel 2018-05-21 21:27:22 UTC
(In reply to kaspar.tint from comment #2)
> Can verify that this issue has resolved it self for me after the upgrade of
> these components:
> 
> gnome -> 3.28.1
> mesa -> 18.0.3
> linux -> 4.16.9
> xorg -> 1.20
> 
> Might have been the mesa update but could be the combination of them? I
> don't know...

What distro are you using? I'm experiencing this on gnome 3.28.1, mesa 18.0.3, linux 4.16.5, xorg 1.19 (all from Debian/testing). Could this be an xorg issue?
Comment 4 kaspar.tint 2018-05-22 07:09:03 UTC
Xorg or Linux then or a combination or all of them? I use Arch Linux - I think right when I updated Xorg.. the issue got fixed actually. But the same update also contained upgrades for Mesa and Linux kernel... So it's hard to say
Comment 5 Richard B. Kreckel 2018-05-24 21:49:50 UTC
It must be Xorg.

I've upgradee to Xorg 1.20 (without upgrading anything else) from Debian/experimental and this problem has disappeared for good.
Comment 6 Richard B. Kreckel 2018-07-23 19:40:07 UTC
(In reply to Richard B. Kreckel from comment #5)
> It must be Xorg.
> 
> I've upgradee to Xorg 1.20 (without upgrading anything else) from
> Debian/experimental and this problem has disappeared for good.

...which is not to say that things work, now.
In a way it's worse than before but this seems to be another problem: <https://gitlab.gnome.org/GNOME/totem/issues/241>.
(I'm posting this here for the record.)
Comment 7 Michel Dänzer 2018-07-24 07:56:30 UTC
Resolving per comments #2 & #5, thanks for the report and follow-ups.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.