VLC stalls on 2nd load from file manager

*nix specific usage questions
lnx64
New Cone
New Cone
Posts: 2
Joined: 16 Nov 2014 23:44

VLC stalls on 2nd load from file manager

Postby lnx64 » 16 Nov 2014 23:49

I'm having a problem on my desktop. My laptop is not affected however. Both are using Ubuntu 14.10.

What happens is, when I open a video file from the file manager, it loads instantly and starts playing. When I close the current movie and go load another video file, it doesn't do anything. VLC loads in system monitor but just sits there and does nothing. At first I thought it wasn't doing anything at all and was just sitting there, but turns out if you wait around 30 seconds, the movie does in fact start playing.

If I load VLC and a video file directly from terminal, this doesn't happen at all, there is no stall, which is very weird.

I made a video demonstrating what it's doing, however I made this video before I realized that if you want 30 seconds, it does load something, but as you see, if you kill the process when frozen, and reload the video, it does open just fine then.

https://www.youtube.com/watch?v=OKYPb7sKzIo

quiller
New Cone
New Cone
Posts: 3
Joined: 18 Oct 2013 20:38

Re: VLC stalls on 2nd load from file manager

Postby quiller » 17 Nov 2014 13:22

Exactly, the same here. Haven't found a solution though, I tried turning off some features, even resetted VLC preferences, but no success. Any ideas?

lnx64
New Cone
New Cone
Posts: 2
Joined: 16 Nov 2014 23:44

Re: VLC stalls on 2nd load from file manager

Postby lnx64 » 17 Nov 2014 17:59

Exactly, the same here. Haven't found a solution though, I tried turning off some features, even resetted VLC preferences, but no success. Any ideas?
Only thing I noticed that seems to have worked is switching desktop environments. Which I know, not everyone wants to do, nor should they have to.

I was using Unity. I switched to Xfce, now all is fine.

dsg123
New Cone
New Cone
Posts: 3
Joined: 17 Dec 2014 18:28

Re: VLC stalls on 2nd load from file manager

Postby dsg123 » 17 Dec 2014 18:32

Same situation here.

When VLC is already open and I launch a file from the menu, however, there's no delay.

caleb666
New Cone
New Cone
Posts: 9
Joined: 11 May 2014 00:04

VLC stalls on 2nd load from file manager

Postby caleb666 » 31 Jan 2015 01:38

I'm using Unity on Ubuntu 14.10 as well and I'm being hit by this annoying bug very hard. I get the bug when launching VLC from the command line as well.

Here's an output of strace -fCrT: http://paste.ubuntu.com/9966130/
Note that the thread 10017 does a futex call with a 15 second timeout and it finally times out:

Code: Select all

10017 0.080832 <... futex resumed> ) = -1 ETIMEDOUT (Connection timed out) <0.500095> 10017 0.000029 futex(0x7fef50190440, FUTEX_WAIT, 0, {14, 999999596} <unfinished ...> 10016 0.001360 <... futex resumed> ) = -1 ETIMEDOUT (Connection timed out) <0.500118> 10016 0.000071 madvise(0x7fef4c6a9000, 8368128, MADV_DONTNEED) = 0 <0.000044> 10016 0.000085 _exit(0) = ? 10016 0.000049 +++ exited with 0 +++ 10017 14.998591 <... futex resumed> ) = -1 ETIMEDOUT (Connection timed out) <15.000145> 10017 0.000106 madvise(0x7fef477ff000, 8368128, MADV_DONTNEED) = 0 <0.000163> 10017 0.000281 _exit(0) = ? 10017 0.000079 +++ exited with 0 +++ 10011 4.806719 <... read resumed> "\0\1\0-\0\0\0\0", 8) = 8 <20.300156> 10011 0.000191 access("/home/caleb/.ICEauthority", R_OK) = 0 <0.000089> 10011 0.000256 open("/home/caleb/.ICEauthority", O_RDONLY) = 22 <0.000107>
I ran vlc with GDB as well, but I'm not seeing anything interesting there:

Code: Select all

VLC media player 2.2.0-pre2 Weatherwax (revision 2.2.0-pre1-15-g5178b24) [New Thread 0x7fffec0f1700 (LWP 11717)] [New Thread 0x7ffff7fcf700 (LWP 11718)] [New Thread 0x7fffed85b700 (LWP 11719)] [New Thread 0x7fffeb8f0700 (LWP 11720)] [0000000000605118] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [New Thread 0x7fffe8c2e700 (LWP 11721)] [Thread 0x7fffed85b700 (LWP 11719) exited] [New Thread 0x7fffed85b700 (LWP 11723)] [Thread 0x7fffe8c2e700 (LWP 11721) exited] [New Thread 0x7fffcd3b5700 (LWP 11724)] [New Thread 0x7fffccbb4700 (LWP 11725)] [New Thread 0x7fffc7934700 (LWP 11726)] [New Thread 0x7fffc7133700 (LWP 11727)] [New Thread 0x7fffc6932700 (LWP 11728)] [Thread 0x7fffc7133700 (LWP 11727) exited] ^Z Program received signal SIGTSTP, Stopped (user). sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 85 ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: No such file or directory. (gdb) thread apply all bt Thread 12 (Thread 0x7fffc6932700 (LWP 11728)): #0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38 #1 0x00007ffff13fd5e7 in g_cond_wait_until () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007ffff138da69 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007ffff138e08b in g_async_queue_timeout_pop () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007ffff13e037c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007ffff13df925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #6 0x00007ffff79a70a5 in start_thread (arg=0x7fffc6932700) at pthread_create.c:309 #7 0x00007ffff74d088d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 10 (Thread 0x7fffc7934700 (LWP 11726)): #0 0x00007ffff74c63dd in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007ffff13b8ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007ffff13b8ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007ffff13b9039 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007ffff13df925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007ffff79a70a5 in start_thread (arg=0x7fffc7934700) at pthread_create.c:309 #6 0x00007ffff74d088d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 9 (Thread 0x7fffccbb4700 (LWP 11725)): #0 0x00007ffff74c63dd in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007ffff13b8ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007ffff13b9272 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fffdd479ef6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 #4 0x00007ffff13df925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007ffff79a70a5 in start_thread (arg=0x7fffccbb4700) at pthread_create.c:309 #6 0x00007ffff74d088d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 8 (Thread 0x7fffcd3b5700 (LWP 11724)): #0 0x00007ffff74c63dd in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007ffff13b8ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007ffff13b8ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fffcd3bd27d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so #4 0x00007ffff13df925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007ffff79a70a5 in start_thread (arg=0x7fffcd3b5700) at pthread_create.c:309 #6 0x00007ffff74d088d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 7 (Thread 0x7fffed85b700 (LWP 11723)): #0 0x00007ffff79addbd in read () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007ffff061b8e7 in ?? () from /usr/lib/x86_64-linux-gnu/libICE.so.6 #2 0x00007ffff061fe48 in _IceRead () from /usr/lib/x86_64-linux-gnu/libICE.so.6 #3 0x00007ffff0623e60 in IceProcessMessages () from /usr/lib/x86_64-linux-gnu/libICE.so.6 #4 0x00007ffff0619734 in IceOpenConnection () from /usr/lib/x86_64-linux-gnu/libICE.so.6 #5 0x00007ffff082fdf0 in SmcOpenConnection () from /usr/lib/x86_64-linux-gnu/libSM.so.6 #6 0x00007ffff251f8ea in QSessionManager::QSessionManager(QApplication*, QString&, QString&) () ---Type <return> to continue, or q <return> to quit--- from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #7 0x00007ffff24bab3a in QApplicationPrivate::initialize() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #8 0x00007ffff24bad70 in QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #9 0x00007ffff24bb0f8 in QApplication::QApplication(int&, char**, bool, int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #10 0x00007ffff3028fc3 in ?? () from /usr/lib/vlc/plugins/gui/libqt4_plugin.so #11 0x00007ffff79a70a5 in start_thread (arg=0x7fffed85b700) at pthread_create.c:309 #12 0x00007ffff74d088d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 5 (Thread 0x7fffeb8f0700 (LWP 11720)): #0 0x00007ffff74c63dd in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fffe8e3b186 in ?? () from /usr/lib/vlc/plugins/control/libdbus_plugin.so #2 0x00007ffff79a70a5 in start_thread (arg=0x7fffeb8f0700) at pthread_create.c:309 #3 0x00007ffff74d088d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 3 (Thread 0x7ffff7fcf700 (LWP 11718)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007ffff710eb31 in ?? () from /usr/lib/libvlccore.so.8 #2 0x00007ffff79a70a5 in start_thread (arg=0x7ffff7fcf700) at pthread_create.c:309 #3 0x00007ffff74d088d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 2 (Thread 0x7fffec0f1700 (LWP 11717)): #0 0x00007ffff74c63dd in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007ffff550b461 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #2 0x00007ffff54fc8e1 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #3 0x00007ffff54fcf7e in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #4 0x00007ffff54fd030 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #5 0x00007ffff550b3f6 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #6 0x00007ffff50a8628 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so #7 0x00007ffff79a70a5 in start_thread (arg=0x7fffec0f1700) at pthread_create.c:309 #8 0x00007ffff74d088d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 1 (Thread 0x7ffff7fd0740 (LWP 11713)): #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 #1 0x00007ffff7180c4c in vlc_sem_wait () from /usr/lib/libvlccore.so.8 #2 0x00007ffff3028e4c in ?? () from /usr/lib/vlc/plugins/gui/libqt4_plugin.so #3 0x00007ffff7166d15 in ?? () from /usr/lib/libvlccore.so.8 #4 0x00007ffff71672ce in vlc_module_load () from /usr/lib/libvlccore.so.8 #5 0x00007ffff710d075 in intf_Create () from /usr/lib/libvlccore.so.8 #6 0x00007ffff710d3fb in libvlc_InternalAddIntf () from /usr/lib/libvlccore.so.8 #7 0x00007ffff7bc4e3c in libvlc_add_intf () from /usr/lib/libvlc.so.5 #8 0x00000000004012c2 in ?? () #9 0x00007ffff73f7ec5 in __libc_start_main (main=0x4010c0, argc=2, argv=0x7fffffffdc78, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdc68) at libc-start.c:287 #10 0x000000000040149c in ?? ()
I'm using the Intel IGPU:

Code: Select all

$ sudo lshw -c video *-display description: VGA compatible controller product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 06 width: 64 bits clock: 33MHz capabilities: msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:49 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)

Rémi Denis-Courmont
Developer
Developer
Posts: 15221
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

VLC stalls on 2nd load from file manager

Postby Rémi Denis-Courmont » 31 Jan 2015 07:17

On your GDB, Qt is stuck. This looks like a bug in your desktop session management, even more so considering that it works fine in Xfce (and for me, in KDE).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

caleb666
New Cone
New Cone
Posts: 9
Joined: 11 May 2014 00:04

VLC stalls on 2nd load from file manager

Postby caleb666 » 31 Jan 2015 17:06

Thanks. I'm not familiar with desktop session management.
Any idea what I could investigate further to find the root cause of this problem?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 2 guests