So, here's another weird one: I want to use VLC but it seems broken (at least with Budgie).
I'm probably going to file a bug report but first I thought I'd get some feedback in the forums.
The problem is like this:
- Open VLC
- Open a video file and let it play a bit
- Select File->Quit from the VLC menu
- Hooray, VLC stops.
Now repeat but do this:
- Open VLC
- Open a movie file and let it play a bit
- Press the window close button
- The window closes alright, but VLC is still running.
Any attempt to restart it will fail (it probably detects it's already running and won't restart?) and you can verify by checking:
$ ps -ef --forest | grep vlc
user 7669 4870 0 23:34 pts/2 00:00:00 | \_ grep vlc
user 7456 1 2 23:34 ? 00:00:00 /usr/bin/vlc --started-from-file
As you can see, the process is not a zombie, it's just sitting there stuck on something. It seems like when Budgie signals the window close something is not handled properly?
Does anyone use VLC and can confirm? It'd be interesting to see if it happens for other people and whether it only happens with Budgie or if it's happening for other WMs as well when closing the window...
I ran "strace vlc" to see if I can get any hint of what's happening when it's stuck and I got this:
futex(0x207a108, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x207a0b8, FUTEX_WAKE_PRIVATE, 1) = 1
rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT PIPE TERM], NULL, 8) = 0
rt_sigaction(SIGHUP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigtimedwait([HUP INT QUIT TERM], libva info: VA-API version 1.8.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
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!
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!
[ at this point the video is playing and I press the X on the window for Budgie to close it]
{si_signo=SIGTERM, si_code=SI_TKILL, si_pid=8038, si_uid=1000}, NULL, 8) = 15 (SIGTERM)
rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fd8816a4a40}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGALRM, {sa_handler=0x4016e0, sa_mask=[ALRM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fd8816a4a40}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [INT ALRM], NULL, 8) = 0
alarm(3) = 0
getpid() = 8038
tgkill(8038, 8038, SIGTERM) = 0
futex(0x207a108, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x207a0b8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fd864f349d0, FUTEX_WAIT, 8042, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fd8816a4a40}, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fd8816a4a40}, 8) = 0
rt_sigreturn({mask=[HUP QUIT PIPE TERM]}) = 202
futex(0x7fd864f349d0, FUTEX_WAIT, 8042, NULL
^Cstrace: Process 8038 detached
<detached ...>
Note that 8038 is the VLC process running under strace.
Any ideas what this is?