VLC issue - won't open another video, won't quit from tray

Manjaro Plasma KDE.

When I open some video with VLC, it works, but when I try to open another one
it does not work. VLC icon sits in tray, but when I right click on it and chose to quit,
nothing happens. I have to kill VLC from terminal to be able to run it again.

Once it is killed it works again, but for every new video I have to kill it.

Any ideas?

It is fully updated Manjaro KDE.Screenshot_20200602_184747

Disable tray icon in vlc-settings.

Hmm... opens few videos, but after it won't open anything, wont' start.

Starts form console, thou.. but not when I click on any video in Dolphin..

Here is output when started in console (it works, but has some output there):

[srdjan@Ryzen ~]$ vlc
VLC media player 3.0.10 Vetinari (revision 3.0.10-0-g7f145afa84)
[000055b5f5f49a80] main libvlc: Running vlc with the default interface. Use '
cvlc' to use vlc without interface.
[000055b5f5fdc8a0] main playlist: playlist is empty
kf5.kio.core: Invalid URL: QUrl("/home/srdjan")
kf5.kio.core: We got some errors while running testparm "Error loading servic
es."
kf5.kio.core: We got some errors while running 'net usershare info'
kf5.kio.core: "Can't load /etc/samba/smb.conf - run testparm to debug it\n"
mesa: for the --simplifycfg-sink-common option: may only occur zero or one ti
mes!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or on
e times!
[00007fc318006540] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed
[00007fc314001870] main video output error: video output creation failed
[00007fc31cc42960] main decoder error: failed to create video output
mesa: for the --simplifycfg-sink-common option: may only occur zero or one ti
mes!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or on
e times!
[00007fc31cc42960] avcodec decoder: Using G3DVL VDPAU Driver Shared Library v
ersion 1.0 for hardware decoding
[mpeg4 @ 0x7fc31cc47b40] Failed setup for format vdpau: hwaccel initialisatio
n returned error.                                                             
[00007fc31cc42960] avcodec decoder error: existing hardware acceleration cann
ot be reused                                                                  
[00007fc248045410] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed
[00007fc31813b270] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed
[00007fc314045660] main video output error: video output creation failed
[00007fc31cc42960] main decoder error: failed to create video output
[mpeg4 @ 0x7fc31cc47b40] get_buffer() failed
[mpeg4 @ 0x7fc31cc47b40] thread_get_buffer() failed                           
[mpeg4 @ 0x7fc31cc47b40] get_buffer() failed (-12 (nil))                      
QObject::~QObject: Timers cannot be stopped from another thread               
[srdjan@Ryzen ~]$
System Info
>>> inxi -Fxxxa                                                                                                                    [130]
System:    Host: Manjaro-PC Kernel: 5.6.15-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 
           parameters: root=UUID=79bf2773-3a7d-4e85-bbfc-b93cb4089a4b rw rootflags=subvol=@ quiet apparmor=1 security=apparmor 
           udev.log_priority=3 initrd=@\boot\initramfs-5.6-x86_64.img 
           Desktop: KDE Plasma 5.18.5 tk: Qt 5.14.2 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: Micro-Star model: MEG X570 ACE (MS-7C35) v: 1.0 serial: <root required> 
           UEFI: American Megatrends v: 1.80 date: 01/16/2020 
CPU:       Topology: 16-Core (2-Die) model: AMD Ryzen 9 3950X bits: 64 type: MT MCP MCM arch: Zen family: 17 (23) 
           model-id: 71 (113) stepping: N/A microcode: 8701013 L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 224085 
           Speed: 3729 MHz min/max: 2200/3500 MHz boost: enabled Core speeds (MHz): 1: 3729 2: 3629 3: 3702 4: 3708 5: 3553 
           6: 3619 7: 3663 8: 3224 9: 3715 10: 3641 11: 3702 12: 3716 13: 3641 14: 3716 15: 3716 16: 3716 17: 3716 18: 3709 
           19: 3431 20: 3747 21: 3747 22: 3637 23: 3607 24: 3688 25: 3570 26: 3130 27: 3723 28: 3721 29: 3722 30: 3749 
           31: 3680 32: 3690 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: conditional, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] driver: amdgpu 
           v: kernel bus ID: 2f:00.0 chip ID: 1002:731f 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu FAILED: ati unloaded: modesetting,radeon alternate: fbdev,vesa 
           compositor: kwin_x11 resolution: 3840x2160~120Hz 
           OpenGL: renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.36.0 5.6.15-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.0.7 
           direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 HDMI Audio driver: snd_hda_intel v: kernel bus ID: 2f:00.1 
           chip ID: 1002:ab38 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 31:00.4 chip ID: 1022:1487 
           Device-3: Oculus VR Rift S USB Hub type: USB driver: cdc_acm,hid-generic,snd-usb-audio,usbhid bus ID: 1-2.2:4 
           chip ID: 2833:0051 serial: 1WMGH520V49272 
           Sound Server: ALSA v: k5.6.15-1-MANJARO 
Network:   Device-1: Intel I211 Gigabit Network vendor: Micro-Star MSI driver: igb v: 5.6.0-k port: e000 bus ID: 26:00.0 
           chip ID: 8086:1539 
           IF: enp38s0 state: up speed: 1000 Mbps duplex: full mac: 00:d8:61:a7:48:65 
           Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169 v: kernel port: d000 bus ID: 27:00.0 
           chip ID: 10ec:8125 
           IF: enp39s0 state: down mac: 00:d8:61:a7:48:64 
Drives:    Local Storage: total: 1.34 TiB used: 439.63 GiB (32.1%) 
           ID-1: /dev/nvme0n1 vendor: Corsair model: Force MP600 size: 953.87 GiB block size: physical: 512 B logical: 512 B 
           speed: 63.2 Gb/s lanes: 4 serial: 19438229000128550007 rev: EGFM11.3 scheme: GPT 
           ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO 1TB size: 931.51 GiB block size: physical: 512 B 
           logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: S5H9NC0M909894X rev: 2B2QEXE7 scheme: GPT 
           ID-3: /dev/nvme2n1 vendor: Corsair model: Force MP510 size: 894.25 GiB block size: physical: 512 B logical: 512 B 
           speed: 31.6 Gb/s lanes: 4 serial: 19308207000127710183 rev: ECFM12.3 scheme: GPT 
           ID-4: /dev/sda vendor: SanDisk model: SDSSDH3 512G size: 476.94 GiB block size: physical: 512 B logical: 512 B 
           speed: 6.0 Gb/s serial: 191218483401 rev: 1000 scheme: GPT 
Partition: ID-1: / raw size: 953.57 GiB size: 953.57 GiB (100.00%) used: 88.95 GiB (9.3%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-2: /home raw size: 953.57 GiB size: 953.57 GiB (100.00%) used: 88.95 GiB (9.3%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-3: swap-1 size: 22.46 GiB used: 10.7 MiB (0.0%) fs: swap swappiness: 20 (default 60) 
           cache pressure: 100 (default) dev: /dev/nvme1n1p2 
Sensors:   System Temperatures: cpu: 55.1 C mobo: 37.0 C gpu: amdgpu temp: 46 C 
           Fan Speeds (RPM): fan-1: 0 fan-2: 0 fan-3: 787 fan-4: 0 fan-5: 767 fan-6: 0 fan-7: 971 gpu: amdgpu fan: 65535 
Info:      Processes: 552 Uptime: 2d 2h 05m Memory: 31.38 GiB used: 15.97 GiB (50.9%) Init: systemd v: 245 Compilers: 
           gcc: 10.1.0 Shell: zsh v: 5.8 running in: konsole inxi: 3.0.37 

I am also experiencing the same issue. My console output when I try to exit out of the program after playing a video file:




>>> vlc JE1.mov                                                                                                                         
VLC media player 3.0.10 Vetinari (revision 3.0.10-0-g7f145afa84)
[00005600125675b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Icon theme "elementary" not found.
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or one times!
[00007f07bc00a910] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed
[00007f07b807ec90] main video output error: video output creation failed
[00007f07c8c94970] main decoder error: failed to create video output
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or one times!
[00007f07c8c94970] avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu

Below is the same scenario tested in a VBox VM running Arch, which doesn't have any issues - closes perfectly fine:

>>> vlc Small_waterfall__SaveYouTube_com_.mp4                                                       
VLC media player 3.0.10 Vetinari (revision 3.0.10-0-g7f145afa84)
[00005607897825b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libEGL warning: DRI2: failed to authenticate
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
libEGL warning: DRI2: failed to authenticate
[h264 @ 0x7fdea8c4a980] get_buffer() failed
[h264 @ 0x7fdea8c4a980] thread_get_buffer() failed
[h264 @ 0x7fdea8c4a980] decode_slice_header error
[h264 @ 0x7fdea8c4a980] no frame!
[h264 @ 0x7fdea8c5a680] get_buffer() failed
[h264 @ 0x7fdea8c5a680] thread_get_buffer() failed
[h264 @ 0x7fdea8c5a680] decode_slice_header error
[h264 @ 0x7fdea8c5a680] no frame!
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
QObject::~QObject: Timers cannot be stopped from another thread

EDIT:
Turning on verbose logging yields this output.

Looking at the last 4 lines:

main debug: removing module "gl"
pulse debug: changing sink 12: alsa_output.pci-0000_2f_00.1.hdmi-stereo-extra2 (Navi 10 HDMI Audio Digital Stereo (HDMI 3))
pulse debug: changing sink 12: alsa_output.pci-0000_2f_00.1.hdmi-stereo-extra2 (Navi 10 HDMI Audio Digital Stereo (HDMI 3))
main debug: exiting

Line 1- 3 - occurs when closing VLC by clicking the "X" window button to close the window. However, the system tray icon is still present.
Line 4 - occurs when selecting "Quit" by right-clicking the VLC system tray icon. VLC does not quit, and must be killed manually.

EDIT #2:
It appears that closing VLC by only using the right-click tray icon > "Quit" will successfully quit VLC without hanging - i.e. don't use the "X" close window button. This seems to be reliable. The difference in the log file is below for a successful exit: the log snippet beginning at the same line where it previously hung:

main debug: removing module "gl"
main debug: removing module "glconv_vdpau"
pulse debug: changing sink 12: alsa_output.pci-0000_2f_00.1.hdmi-stereo-extra2 (Navi 10 HDMI Audio Digital Stereo (HDMI 3))
main debug: removing module "glx"
dbus_screensaver debug: got cookie 13132
main debug: removing module "dbus_screensaver"
qt debug: releasing video...
qt debug: Video is not needed anymore
main debug: removing module "freetype"
main debug: removing module "yuvp"
main debug: removing module "swscale"
main debug: removing module "pulse"
qt debug: requesting exit...
qt debug: waiting for UI thread...
main debug: exiting
qt debug: QApp exec() finished
qt debug: Video is not needed anymore
qt debug: Killing extension dialog provider
qt debug: ExtensionsDialogProvider is quitting...
main debug: removing module "lua"
main debug: removing module "xcb_hotkeys"
main debug: removing module "hotkeys"
main debug: removing module "dbus"
main debug: destroying
main debug: saving media library to file /home/yosuke/.local/share/vlc/ml.xspf.tmp127445
main debug: looking for playlist export module matching "export-xspf": 4 candidates
main debug: using playlist export module "export"
main debug: removing module "export"
main debug: deleting item `Media Library'
main debug: deleting item `JE1.mov'
main debug: deleting item `Playlist'
main debug: removing module "memory"
-- logger module stopped --

It's a known bug with VLC, it sometimes doesn't exit properly, so it's necessary to kill the process manually:

pkill -9 vlc

I don't think there is a simple fix for this, apart from using a different media player.

1 Like

Yes - I do believe MPV is king - gives me the cleanest video in a clean window. Celluloid if you must see the interface whilst watching a video (MPV is hidden until you mouse over it, or maybe it's best just use the keyboard...)

VLC is a complete heavyweight toolkit with millions of complicated options. A bit like buying a full toolkit to take out a screw.

1 Like

Personally, I use both SMPlayer and mpv, depending on whether I need a fancy GUI or not. They both use mplayer in the background, so it's the exact same playback quality.

I find VLC to be a glitchy, buggy, bloated mess. Maybe it was the best some 7-8 years ago when I was using Windows, but that time is long gone now, thankfully :smiley:

2 Likes
1 Like

It sometimes happens that some process/app gets stuck (the same kind of error plagues pdf apps).
Just open system manager, find the app on the list and kill the process. Open app again. Voila.

well... I prefer debugging :smiley:

1 Like

In my opinion it's a good course of action when the bug is happening all the time, so it behaves in consequent way. But if it shows up randomly and very, very rarely, it's not worth to spend time on it. So many random and variable things can influence it and it's hard to recognize.

Also, Arch packages are missing debug symbols making playing an IT detective so much harder.

VLC throws a lot of output when started from terminal, so someone who knows all of that
maybe could get a clue at least where to look at :slight_smile:

It is not the responsibility of Manjaro devs to debug third party applications. This is a known bug within vlc and has been known for years. When enough users report the bug to videolan, then maybe it will get fixed.

Until then, either close vlc by selecting "close" (not the x in the title bar), or run

sudo killall -9 vlc
1 Like

Using linked post I have found that most folks solve this one by adjusting the video output and codec settings. I can't even guess as to why. It's solved this issue permanently on two different xfce installs for me.

Note: it may not be VDPAU it would depend on your hardware setup

1 Like

Yes, that seems to solve... I just used to VLC from old days, but now I installed
mpv as an alternative, and I am pretty satisfied with it :slight_smile: Thanks to all

2 Likes

Does enabling "allow multiple instances" in settings help? Worked for me

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by