Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598946 - =media-libs/mesa-13.0.0 causes video corruption in media-video/vlc
Summary: =media-libs/mesa-13.0.0 causes video corruption in media-video/vlc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 16:34 UTC by Dan Goodliffe
Modified: 2017-01-26 21:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot demonstrating problem (Screenshot_20161104_162000.png,421.26 KB, image/png)
2016-11-04 16:34 UTC, Dan Goodliffe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Goodliffe 2016-11-04 16:34:01 UTC
Created attachment 452386 [details]
Screenshot demonstrating problem

Problem has existed since the first mesa-13_rc.
Video is a recording from MythTV (affects all videos from what I can gather). Downgrading to mesa-12* fixes problem. Have tried all VLC video output options, frame buffer works fine, the rest produce the same garbled output.

$ sudo /usr/sbin/lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series]

Provided that as the problem doesn't occur on my laptop (nVidia something)

VLC version 2.2.4.

Willing to play around with various options etc if anyone can make suggestions (although I'm away most of this weekend)

Thanks.


Portage 2.3.2 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.23-r2, 4.8.6-gentoo x86_64)
=================================================================
System uname: Linux-4.8.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3820_CPU_@_3.60GHz-with-gentoo-2.3
KiB Mem:     8156896 total,   2688764 free
KiB Swap:    8388604 total,   8257056 free
Timestamp of repository gentoo: Fri, 04 Nov 2016 13:42:22 +0000
sh bash 4.4-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
ccache version 3.2.7 [enabled]
app-shells/bash:          4.4-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.7::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

RandomLAN
    location: /home/randomdan/dev/portage
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -pipe -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=native -pipe -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://defiant.random.lan/portage http://firebrand.random.lan/portage http://sys.randomdan.homeip.net/"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -O3 -march=native -pipe"
MAKEOPTS="-j6 -l6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="64bit X a52 aac accessibility acl acpi additions aim alsa amd64 apm apng audiofile automount autoservicerestart autoshutdown autoupdate bash-completion berkdb bluetooth branding browserplugin bzip2 c++0x cairo caps cdb cdda cddb cdparanoia cdr clang cli cracklib crypt cscope css ctype cups curl curlwrappers custom-cflags custom-march custom-optimization cxx dbus declarative device-mapper dhcpcd dio disable-sound disable-torrent disk-partition divx dlloader docbook dpms dri dts dv dvb dvd dvdr dvdread dynagraph ebook effects emerald encode evdev exif extensions extrafilters extras fam fame fastcgi ffmpeg firefox firmware flac fontconfig frei0r frontendonly ftp fts3 fuse gallium gdbm gegl gif gimp git glamor glib glitz glut glx gmail gmailtimestamps gmedia gnome-keyring gnutls grub gtk gtk3 h323 hardenedphp hpn http2 iconv icq icu id3 id3tag imagemagick imap imlib imlib2 innodb inotify ipv6 ithreads javascript jemalloc jemalloc3 jpeg jpeg2k json kde kdeenablefinal kipi kqemu lame lcms ldap legacy-systray libkms libnotify lightning lm_sensors logrotate lto lvm lvmboot lvmroot lzma lzo mad maildir man melt messenger minizip mmx mmxext modules mozcalendar mp3 mp4 mp4live mpeg mpeg2 mpeg4 mpm-prefork msn multithreaded mysql mysqli mythtv ncurses network network-cron networkmanager nls no-old-linux nocardbus nocd nohardenedkernel nptl nptlonly nscd nsplugin ntp nuv nvidia offensive ogg openexr opengl openmp optimize opus oscar pam pango pch pcre pcre16 pdf plasma plymouth png policykit portage postgres postproc ppds pvr python python3 qml qt3support qt4 qt5 rdesktop rdp readline real realmedia redland remote resolvconf rtmp savedconfig sblive screen seccomp secure-delete session sharedext shorten silc smp sndfile soap sockets soprano spell sql sqlite sse sse-filters sse2 ssl ssl2 startup-notification stats stencil-buffer stream svg symlink sysfs syslog system-cairo system-icu system-jpeg system-sqlite system-v8 systemd tcpd theora threads thumbnail tidy tiff transcode truetype udev udisks underscores unicode unittest unity-lobby unlock-notify upnp usb uuid v4l v4l2 vaapi vdpau vhosts vim vim-pager vim-syntax vim-with-x vlc vorbis vpnc widgets win32codecs wmf wmp wxwidgets x264 xa xattr xcb xcomposite xinerama xml xmms xmp xrandr xscreensaver xsl xslt xv xvfb xvid xvmc yahoo yvl2 zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="filter authz_host cgid mime_magic mime autoindex vhost_alias dav dir deflate log_config env rewrite cache mem_cache unixd socache authz_core authn_core socache_shmcb http2" CALLIGRA_FEATURES="braindump flow karbon stage tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DVB_CARDS="none" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="none" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="r600 radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 miro.rovis 2016-11-14 09:32:25 UTC
This is probably a duplicate of
media-libs/mesa-13.0.0_rc2: libGL crashes on hardened
https://bugs.gentoo.org/show_bug.cgi?id=598593
as is my report:
=www-client/firefox-49.0 segfaults with >=media-libs/mesa-13.0.0_rc1 on >=4.4.8-hardened-r1
https://bugs.gentoo.org/show_bug.cgi?id=598700
( 
which I messed up ommiting the first digit when copying the bug number:
https://bugs.gentoo.org/show_bug.cgi?id=598700#c6
see there bug 98946 instead of 598946 which is this bug I'm posting at; also wrong... but I mended that in the next comment there...

really sorry for that!
)
If anybody agrees that this is duplicate of 598593 pls. mark is as such (afraid to make another typo myself ;-) ).
Comment 2 Dan Goodliffe 2016-11-14 14:08:51 UTC
It's possibly a duplicate, although that bug refers to other upstream bugs which are hardware specific (Intel SNA) as opposed to the Radeon I have.
Comment 3 Jonathan Scruggs (RETIRED) gentoo-dev 2016-11-18 12:02:48 UTC
It also causes corruption when Blender is started. You need to move the window with the mouse to fix it. I haven't been able to track the issue yet.
Comment 4 Dan Goodliffe 2016-11-18 13:27:09 UTC
Never thought to try just moving the window... I try switching to full screen though, however that didn't fix it. Got the same corruption, just bigger. I'll give it a try when I get home.
Comment 5 Dan Goodliffe 2016-11-19 18:48:07 UTC
No such luck for me... played around with the window position and size, but no impact, problem remained.
Comment 6 Dan Goodliffe 2017-01-07 15:44:47 UTC
Just installed 13.0.3 to see if anything had changed... nothing. But I did have a play around to see if I could learn anything. Turns out, it's not the accelerated output as I'd originally figured, it's actually down to VDPAU. If I select "VA-API video decoder via DRM" instead of "automatic" or "VDPAU video decoder" all actually works just fine. I can provide further details of anything anyone might think is useful, I just don't know what that might be :)
Comment 7 Nick Andrade 2017-01-21 07:12:03 UTC
Dan, is this issue limited to VLC or do other media players (mpv, etc.) experience it?  Is this just limited to mpeg2 videos or are other codecs impacted (h264 would be a good test case)?

Based on your last comment, I actually think it may be related to: https://bugs.freedesktop.org/show_bug.cgi?id=98914  

I confirmed the Gentoo mesa-13.0.3 does not have the simple patch in that bug.  If this is the culprit, I'm betting that's the fix.  You should be able to take the patch attached to that bug, through it into /etc/portage/patches/media-libs/mesa, rebuild mesa, rebuild vlc (might not be necessary) to see if it works.  

Thanks,
Nick
Comment 8 Dan Goodliffe 2017-01-22 00:41:13 UTC
Skipped forward to the patch in the bug referred to because the description in there seemed like a good fit and I didn't have any other players installed..... and it works like a treat :)
I can go back and do a bit more testing if you like, but given the patch size and result, it seems a bit moot.
Thanks for looking into it... judging by the reported date, that bug hadn't been opened when I went looking.
Comment 9 Nick Andrade 2017-01-22 03:04:51 UTC
Thanks for confirming Dan.  I don't have any AMD hardware at the moment to test myself, but yeah, based on the description and timing, I agree that it's your bug.  I'll see if I can get a mesa Gentoo developer to pull in the fix.
Comment 10 Matt Turner gentoo-dev 2017-01-22 03:28:33 UTC
Thanks for tracking the fix down. It's tagged for the 13.0 stable branch, so it should be included in 13.0.4.
Comment 11 Dan Goodliffe 2017-01-26 21:10:45 UTC
Just tested in 17.0.0_rc2 and all seems well :)