Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797436 - media-video/vlc: regression? 3.0.12-r100 is fine, but 3.0.15 black screen no sound, doesn't exit
Summary: media-video/vlc: regression? 3.0.12-r100 is fine, but 3.0.15 black screen no ...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 812839
  Show dependency tree
 
Reported: 2021-06-22 06:05 UTC by Davyd McColl
Modified: 2021-09-15 06:04 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Davyd McColl 2021-06-22 06:05:02 UTC
VLC has started doing something odd, as of 3.0.14, but included in 3.0.15, where launching with a video on the cli (or double-clicking a video from my file manager) starts up VLC where the screen / video output is blank, but sound is playing.

Having seen reports of similar behavior from some people, I switched from automatic output to try other outputs:
- opengl reproduces the issue
- xvideo / x11 work - mostly

I say "mostly" because what I started to see was that I could switch to one of the other outputs and an initial launch with a file would work fine, but stopping that instance via hotkey or closing the window and trying to launch again would result in the black screen again - where the workflow was: double-click a file in dolphin, quit, double-click the next file in the list.

It must also be noted that if I specifically choose the opengl output and start up to get the black screen, my "quit" hotkey doesn't work - I have to close from the window decoration, and then vlc is left running in the background. This background process won't respond to a regular `kill` (ie SIGTERM) and has to be killed with SIGKILL. Whilst this is running, double-clicking another video in my file manager will result in a quick launch-feedback, and then nothing (ie, appears not to play, but this is probably because the new vlc instance is trying to defer to the backgrounded / zombie one, I assume)

If I select "automatic" video output, 3.0.14 and 3.0.15 always behave as above.

If I revert to 3.0.12-r100, then none of these issues arise - I can select video outputs: automatic, opengl, xvideo, x11 - all with no issues, repeated restart of the application. So this _appears_ to be a regression of some kind.

On a whim, I rebuilt my entire system, "just to be sure", and vlc 3.0.14/3.0.15 still behave like this, where 3.0.12-r100 does not.

Through all of this, mplayer / smplayer work flawlessly.

Marking as "critical" _only_ because the software hangs. I don't lose data or anything super-drastic.

Reproducible: Always

Steps to Reproduce:
1. Upgrade vlc to 3.0.15, leave video output as automatic or opengl (though I've seen this happen with xvideo and x11 too)
2. Attempt to play a file - it may work the first time, but a subsequent re-open (or opening another file) will result in the issue
3. Black screen, sound usually plays.
4. Can't quit with the hotkey
5. Quitting by shutting down the window leaves vlc running in the background
6. Backgrounded VLC must be killed with SIGKILL to stop it.
Actual Results:  
Black screen and sound, vlc doesn't shut down properly when the window is closed & doesn't respond to the quit hotkey

Expected Results:  
To be able to play all videos as was the case with 3.0.12-r100

`cat /etc/portage/package.use/vlc`

media-video/vlc dvd ffmpeg mpeg mad aac dts a52 ogg flac theora oggvorbis matroska freetype bidi xv svga gnutls stream vlm cdda vcd cdio live libass fontconfig truetype upnp opus speex vpx faad

`emerge --info`

Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.3.0, glibc-2.33, 5.10.27-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-glibc2.33
KiB Mem:    16346220 total,   5285852 free
KiB Swap:    6428500 total,   6064724 free
Head commit of repository gentoo: 2165aeaeb5da99007497d355546b7f326ee4cb1b
Head commit of repository dotnet: f7ffb0ea0ed418c5224587baa38325274b816175

Head commit of repository jorgicio: 82319d9db6cee4369da62b2b70c4fd4312f87f53

Head commit of repository bobwya: 21da80f6b8a0c73f790699fd69d2177906e7366a

Timestamp of repository cg: Fri, 18 Jun 2021 23:20:28 +0000
Head commit of repository cg: 5e8e5f58f83b246503377ce5d9a4e16459e39a70

Head commit of repository flatpak-overlay: 4bf9a7815ca9361f86459c8a8e9bc403e3721704

Timestamp of repository slyfox: Tue, 15 Jun 2021 08:05:03 +0000
Head commit of repository slyfox: c2b9495d07bdf36003c62299398de57d63c62079

Head commit of repository steam-overlay: c93a9167c9251ceceb6e7ee35cdf636cb59be6f4

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
ccache version 4.3 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.9.5_p2::gentoo
dev-lang/rust-bin:        1.52.1::gentoo
dev-util/ccache:          4.3::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

dotnet
    location: /var/db/repos/dotnet
    sync-type: git
    sync-uri: https://github.com/gentoo/dotnet.git
    masters: gentoo

jorgicio
    location: /var/db/repos/jorgicio
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/jorgicio.git
    masters: gentoo

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/bobwya/bobwya.git
    masters: gentoo
    priority: 50

cg
    location: /var/db/repos/cg
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/cg.git
    masters: gentoo
    priority: 50

flatpak-overlay
    location: /var/db/repos/flatpak
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay
    masters: gentoo
    priority: 50

slyfox
    location: /var/db/repos/slyfox
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/slyfox.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
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="-march=native -O2"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ rsync://ftp-stud.hs-esslingen.de/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l4"
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="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

System: AMD64 (i7 3770k), GPU: AMD 5600
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-22 18:02:25 UTC
We likely need to report this upstream, but can you try .16?
Comment 2 Davyd McColl 2021-06-22 18:55:07 UTC
Yes, the problem persists with 3.0.16

In addition, it seems like the common denominator for files that cause the failure is that they are HD (1920x1080), which matches my screen resolution.

WORKAROUND: If I enable the flag to start fullscreen (video settings), then the files play fine. I can come out of fullscreen after playback has started.

although, oddly enough, if I start up a file which is 1280x720, even if I set my system resolution to 1280x720, or lower, I don't trigger the issue.
Comment 3 Pacho Ramos gentoo-dev 2021-07-18 14:14:26 UTC
The problem I see in my case is that, sometimes, two windows are opened. One window shows all the controls and vlc menus, the other shows the video. In my case I *sometimes* get it fixed switching some options from the "view" menu... :/
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-13 00:25:04 UTC
(In reply to Davyd McColl from comment #2)
> Yes, the problem persists with 3.0.16
> 

Could you report it upstream please?
Comment 5 Davyd McColl 2021-09-13 06:33:41 UTC
I've attempted to repro with 3.0.16-r6 (current ~amd64) and it looks like the problem isn't there any more, whether I choose automatic video output or opengl (which used to trigger the issue quite reliably).
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-15 06:04:09 UTC
(In reply to Davyd McColl from comment #5)
> I've attempted to repro with 3.0.16-r6 (current ~amd64) and it looks like
> the problem isn't there any more, whether I choose automatic video output or
> opengl (which used to trigger the issue quite reliably).

Thanks for the update!