Page 1 of 1

VLC Hangs on Open File dialog

Posted: 17 Dec 2010 16:06
by sandyd
Im currently using vlc 1.1.5 compiled on gentoo.
Running KDE 4.5.85 (KDE 4.6 Beta 2) with qt 4.7.1.

Each time I upgrade KDE higher than KDE 4.5, VLC hangs each time I click the "open file" menu item. The dialog itself appears after 1-2 minutes, however everything else works.

Output during startup and open file dialog

Code: Select all

sandy@sandyd-laptop ~/dev/chromiumos $ vlc VLC media player 1.1.5 The Luggage (revision exported) Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") Warning: call to signal(13, 0x1) [0x7f521fcaf160] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. Blocked: call to setlocale(6, "") Blocked: call to sigaction(17, 0x7f51dcc1db60, 0x7f51dcc1dac0) Blocked: call to setlocale(6, "") Warning: call to signal(13, 0x1) Blocked: call to putenv("LANGUAGE=") [b]KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work [/b] Warning: call to signal(13, 0x1) Warning: call to sigaction(13, 0x7f51dcc1a190, (nil))
Everything at and after the bold part is what shows up when I click the "open file" button

Re: VLC Hangs on Open File dialog

Posted: 18 Dec 2010 05:13
by Rémi Denis-Courmont
That must be a bug in the Qt4 plugins installed by KDE. The sad truth is, the KDE guys don't care about the consequences their Qt4 plugins have on pure Qt4 (non-KDE) applications like VLC.

In other words, we, VLC guys, cannot fix this bug. The KDE guys could fix it but probably won't because they have other priorities - their own software.

Re: VLC Hangs on Open File dialog

Posted: 29 Jan 2011 21:44
by Texstar
Oh no this is not good.

Re: VLC Hangs on Open File dialog

Posted: 29 Jan 2011 22:58
by Rémi Denis-Courmont
In the mean time, someone in KDE actually looked at the issue. It turns to be a longstanding known bug in the QProcess class from Qt4. That bug gets triggered by a new "feature" in KDE 4.6 relative to MIME types in the Open and Save dialogs, that happens to involve the QProcess class.

In the end, VLC is blaming KDE, KDE is blaming Qt, and Qt is blaming the kernel.

Re: VLC Hangs on Open File dialog

Posted: 31 Jan 2011 00:22
by cacophony
This is very annoying, since VLC is my goto media player!

The best work around I can find for this is to open VLC playlist, and manually drag and drop the files from your folder(s) into the playlist window. There's no hanging while doing this.

Re: VLC Hangs on Open File dialog

Posted: 31 Jan 2011 17:58
by Rémi Denis-Courmont
Sure it's annoying. But what do you expect? It's a KDE bug; we can't fix it.

Re: VLC Hangs on Open File dialog

Posted: 21 Feb 2011 16:10
by Maciej Puzio
I use KDE with QtCurve, and was able to revert VLC to standard Qt file open dialog. I went to System Settings, double-clicked on Application Appearance, clicked Configure button (that is located to the right of Widget Style: QtCurve). Then in the next window I clicked Applications on the left panel, and added vlc to the "Use Qt file dialog" field. If this field is empty, just type vlc. If there is something already in it, type comma, space and then vlc. OK and Apply.
This fixed the lag. As an additional benefit, the dialog is now much less cluttered.

Re: VLC Hangs on Open File dialog

Posted: 02 Mar 2011 11:33
by MySh
I cannot find a bug in KDE Bug tracker, does anyone know if there's one already? I'd like to vote for it.
I use KDE with QtCurve, and was able to revert VLC to standard Qt file open dialog. I went to System Settings, double-clicked on Application Appearance, clicked Configure button (that is located to the right of Widget Style: QtCurve). Then in the next window I clicked Applications on the left panel, and added vlc to the "Use Qt file dialog" field. If this field is empty, just type vlc. If there is something already in it, type comma, space and then vlc. OK and Apply.
Unfortunately, this doesn't work for me. :(

Re: VLC Hangs on Open File dialog

Posted: 02 Mar 2011 17:38
by Rémi Denis-Courmont

Re: VLC Hangs on Open File dialog

Posted: 05 Mar 2011 19:37
by MySh
Thanks a lot!
Followed the link and found, that the bug has been fixed already. Updated KDE from 4.6.0 to 4.6.1 and the problem has gone. 8)

Re: VLC Hangs on Open File dialog

Posted: 13 Mar 2011 12:58
by Jean-Baptiste Kempf
Thanks a lot!
Followed the link and found, that the bug has been fixed already. Updated KDE from 4.6.0 to 4.6.1 and the problem has gone. 8)
Cool :D

Re: VLC Hangs on Open File dialog

Posted: 14 Mar 2011 00:05
by Rinaldus
I have the same error with most of my MP3 files. But I have KDE 4.4.5 and Qt 4.7.2 (Debian Sid). Is this error not fixable for me too? Should I be patient and wait for KDE upgrade of my distro?

Re: VLC Hangs on Open File dialog

Posted: 14 Mar 2011 16:38
by Rémi Denis-Courmont
This bugs only happens with KDE 4.6.0 and before you can even select any file, MP3 or otherwise. You're mixing up with something else.

Re: VLC Hangs on Open File dialog

Posted: 26 Mar 2011 12:39
by lcn.mustard
I have the same problem. So I updgrade to kde 4.6.1. After installing kde4.6.1, the "open file dialog" still super slow