You are not logged in.

#1 2020-10-29 00:03:21

buzuddha
Member
Registered: 2020-10-02
Posts: 72

VLC runs only from command line, not from gnome

I can get VLC to run from the terminal just fine despite all the errors you'll see below.

[hugh@Squarch ~]$ vlc
VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[000055d468d315b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000055d468dce0f0] main playlist: playlist is empty
[000055d468e043e0] main audio output error: too low audio sample frequency (0)
[00007f9878c2ec50] main decoder error: failed to create audio output
[000055d468e043e0] vlcpulse audio output error: digital pass-through stream connection failure: Not supported
[000055d468e043e0] main audio output error: module not functional
[00007f9878c2ec50] main decoder error: failed to create audio output
[00007f98580062c0] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
[00007f98580062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[00007f98580062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007f98580062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007f98580062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[000055d468dce0f0] main playlist: playlist is empty

This works fine. Video and audio. Yay.

Double clicking files in the file browser or the gnome launcher will not open vlc. It's all up to date.

Any help?

Last edited by buzuddha (2020-10-29 00:06:46)

Offline

#2 2020-10-29 12:44:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,353

Re: VLC runs only from command line, not from gnome

Anything in the journal when launching from the app launcher fails? How  do you log into gnome? What's your output for

loginctl session-status $XDG_SESSION_ID
printenv | grep DBUS

Offline

#3 2020-10-30 17:39:54

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

I'll have to check. I set it up before once and forgot how. I think it was gdm.service, but

systemctl status gdm.service gives
● gdm.service - GNOME Display Manager
     Loaded: loaded (/usr/lib/systemd/system/gdm.service; disabled; vendor preset: disabled)
     Active: inactive (dead)

so maybe it's something else...

loginctl session-status $XDG_SESSION_ID

gives:
http://ix.io/2Cvu

and

[hugh@Squarch ~]$ printenv | grep DBUS
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus

Offline

#4 2020-10-30 21:18:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: VLC runs only from command line, not from gnome

Double clicking files in the file browser or the gnome launcher

Are you only talking about A/V files or also the vlc desktop icon (that just starts vlc, no file)?
Can you

xdg-open somevideo.mp4

?
Whats the output of

strace xdg-open somevideo.mp4 2>&1 | grep desktop

?

Offline

#5 2020-10-30 21:54:30

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

So usually it's both files in the browser, the gnome launcher icon and the icon in the dock. Weirdly right now it is working, but I've had it work for a little bit and then stop. Usually if I want to open vlc, i just open a terminal, type

vlc

and then open the file from within vlc.

HA! in the middle of this post I got it to break. All I did was play a video, then close the window, this leaves the playlist open, which I can also close. Now all the launcher buttons are broken.

xdg-open gives:

[hugh@Squarch ~]$ xdg-open ~/Videos/FUNDAMENTALS/FUNDAMENTALS_t01.mkv 
[hugh@Squarch ~]$ VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)

but no window.

The second command

strace xdg-open somevideo.mp4 2>&1 | grep desktop

gives nothing in the terminal.

I've also noticed, when this happens, if I restart/log out of gnome, I get a pop-up saying "some applications are busy or have unsaved work" then VLC is listed with "playing some media" next to it. However, there's no option to close it if I right click the dock launcher and it doesn't have the little pin of light underneath it, which denotes an open window.

Not sure if it makes a difference, but the video that broke it was playing via NFS

Last edited by buzuddha (2020-10-30 22:04:23)

Offline

#6 2020-10-30 22:14:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: VLC runs only from command line, not from gnome

All I did was play a video, then close the window, this leaves the playlist open, which I can also close.

I've also noticed, when this happens, if I restart/log out of gnome, I get a pop-up saying "some applications are busy or have unsaved work" then VLC is listed with "playing some media" next to it.

When it's "broken", run

ps aux | grep -i vlc

VLC doesn't properly terminate and there's likely a lingering process.
Killing it will probably "fix"  it for the moment, but you want to figure why vlc doesn't terminate.
Running it from the terminal and "breaking" it the way you described might get you some debug output.

strace xdg-open somevideo.mp4 2>&1 | grep desktop

Did you literally use "somevideo.mp4"?

Offline

#7 2020-10-31 15:14:16

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

lol, no. I do have a ways to go on my linux journey, but here's the terminal:

[hugh@Squarch ~]$ xdg-open ~/Videos/FUNDAMENTALS/FUNDAMENTALS_t01.mkv 
[hugh@Squarch ~]$ VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
^C^C
[hugh@Squarch ~]$ strace xdg-open ~/Videos/FUNDAMENTALS/FUNDAMENTALS_t01.mkv 2>&1 | grep desktop
[hugh@Squarch ~]$ ps aux | grep -i vlc
hugh        7576  0.0  2.4 4059068 397696 ?      Sl   Oct31   0:40 /usr/bin/vlc --started-from-file /home/hugh/bigraid/Video Library/Movies/Thunderball (1965).mkv
hugh        9464  0.0  0.0   6324  2260 pts/0    S+   06:04   0:00 grep -i vlc
[hugh@Squarch ~]$ 

so yes, lingering process... good to know about ps aux (I'll keep that one in my back pocket).

Still unclear as to how to proceed. Fix it by killing the process.

kill -9 7576

fixes things
Run

strace xdg-open ~/Videos/FUNDAMENTALS/FUNDAMENTALS_t01.mkv 2>&1 | grep desktop

Break it.
Run

strace xdg-open ~/Videos/FUNDAMENTALS/FUNDAMENTALS_t01.mkv 2>&1 | grep desktop

again?

Last edited by buzuddha (2020-10-31 15:19:10)

Offline

#8 2020-10-31 15:18:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: VLC runs only from command line, not from gnome

hugh        7576  0.0  2.4 4059068 397696 ?      Sl   Oct31   0:40 /usr/bin/vlc --started-from-file /home/hugh/bigraid/Video Library/Movies/Thunderball (1965).mkv

sad

First kill the lingering process, then start vlc from the terminal (eg. /usr/bin/vlc --started-from-file "/home/hugh/bigraid/Video Library/Movies/Thunderball (1965).mkv") and break it again (windows closed but process remains)
Do you get some error messages?
Is the "bigraid/Video Library" maybe on a NAS or other remote storage?

Offline

#9 2020-10-31 15:20:22

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

Yes. the raid is NFS storage. So perhaps there's an issue?

No errors if I just run VLC from command line...

VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[0000560e073bf5b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000560e0745c0f0] main playlist: playlist is empty

if I run it with a movie (despite the A/V codec errors reported the audio and video play fine):

[hugh@Squarch ~]$ vlc /home/hugh/bigraid/Video\ Library/Movies/Thunderball\ \(1965\).mkv 
VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[000055a0430315b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000055a0430fb720] vlcpulse audio output error: digital pass-through stream connection failure: Not supported
[000055a0430fb720] main audio output error: module not functional
[00007f0a98dbf850] main decoder error: failed to create audio output
[00007f0a880062c0] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
[00007f0a880062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[00007f0a880062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007f0a880062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007f0a880062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[00007f0a98dbf850] main decoder error: buffer deadlock prevented
[000055a0430fb720] vlcpulse audio output error: digital pass-through stream connection failure: Not supported
[000055a0430fb720] main audio output error: module not functional
[00007f0a98dbf850] main decoder error: failed to create audio output
^CQObject::~QObject: Timers cannot be stopped from another thread
[hugh@Squarch ~]$

Last edited by buzuddha (2020-10-31 15:24:25)

Offline

#10 2020-10-31 15:24:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: VLC runs only from command line, not from gnome

No errors if I just run VLC from command line...

With that file?

Try to cause the problem w/ a local file, I assume there's an issue w/ closing the remote file handle.
Output of "mount"? (The NFS mounts are the interesting bits)

Offline

#11 2020-10-31 15:29:01

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

Hmm i can try, haven't noticed it from local files, mostly because I don't keep them locally very long.

Here's the mount output:

http://ix.io/2CB6

Last edited by buzuddha (2020-10-31 15:29:44)

Offline

#12 2020-10-31 15:39:12

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

Yeah I can't break it with local files.

Thanks for all the help so far!

Last edited by buzuddha (2020-10-31 15:42:48)

Offline

#13 2020-10-31 15:56:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: VLC runs only from command line, not from gnome

Did you get some error output?

Offline

#14 2020-10-31 16:10:53

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

Running vlc with a local file:

[hugh@Squarch ~]$ vlc ~/Videos/FUNDAMENTALS/FUNDAMENTALS_t01.mkv 
VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[000055732032b5b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000557320405c10] main audio output error: too low audio sample frequency (0)
[00007f5864c54950] main decoder error: failed to create audio output
[0000557320405c10] vlcpulse audio output error: digital pass-through stream connection failure: Not supported
[0000557320405c10] main audio output error: module not functional
[00007f5864c54950] main decoder error: failed to create audio output
[00007f584c0062c0] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
[00007f584c0062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[00007f584c0062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007f584c0062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007f584c0062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[mpeg2video @ 0x7f585800b6c0] get_buffer() failed
[mpeg2video @ 0x7f585800b6c0] thread_get_buffer() failed
[mpeg2video @ 0x7f585800b6c0] get_buffer() failed (-12 (nil))
QObject::~QObject: Timers cannot be stopped from another thread

doesn't appear to give anything besides the usual codec errors

Last edited by buzuddha (2020-10-31 16:11:22)

Offline

#15 2020-10-31 16:24:17

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

ok also:

[hugh@Squarch ~]$ xdg-open /home/hugh/bigraid/Video\ Library/Movies/Thunderball\ \(1965\).mkv 
[hugh@Squarch ~]$ VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[00005567f5d7e5b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00005567f5e590a0] vlcpulse audio output error: digital pass-through stream connection failure: Not supported
[00005567f5e590a0] main audio output error: module not functional
[00007fbf9cdc0770] main decoder error: failed to create audio output
[00007fbf840062c0] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
[00007fbf840062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[00007fbf840062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007fbf840062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007fbf840062c0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[00007fbf9cdc0770] main decoder error: buffer deadlock prevented
[00005567f5e590a0] vlcpulse audio output error: digital pass-through stream connection failure: Not supported
[00005567f5e590a0] main audio output error: module not functional
[00007fbf9cdc0770] main decoder error: failed to create audio output
^C
[hugh@Squarch ~]$ strace xdg-open /home/hugh/bigraid/Video\ Library/Movies/Thunderball\ \(1965\).mkv 2>&1 | grep desktop
[hugh@Squarch ~]$ ps aux | grep vlc
hugh       16891 17.3  2.2 4039208 360772 pts/3  Sl   07:21   0:36 /usr/bin/vlc --started-from-file /home/hugh/bigraid/Video Library/Movies/Thunderball (1965).mkv
hugh       17336  0.0  0.0   6324  2268 pts/3    S+   07:24   0:00 grep vlc

behavior:
1 - xdg opens vlc opens playing the movie
2 - I hit Ctrl+C to stop the job
3 - VLC keeps playing
4 - strace xdg-open gives no output
5 - lingering process

Last edited by buzuddha (2020-10-31 16:25:56)

Offline

#16 2020-10-31 16:29:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: VLC runs only from command line, not from gnome

You can ignore xdg-open, the problem is the lingering vlc process.
Were any of the above errors *after* you closed the window, but had the process remaining?

Offline

#17 2020-10-31 16:41:23

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: VLC runs only from command line, not from gnome

Only this one:

QObject::~QObject: Timers cannot be stopped from another thread

I think is the one that shows up when you close the window (you can see it in some of the outputs above). I don't know why I didn't show in that last example.

Thanks again for helping me out. I have to step out, but will do some digging and see what I can find!

Offline

Board footer

Powered by FluxBB