Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132582 - vlc-0.8.5 seems to start but no window appears
Summary: vlc-0.8.5 seems to start but no window appears
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
: 139378 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-07 09:17 UTC by Peter J. de Vrijer
Modified: 2006-11-30 18:42 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter J. de Vrijer 2006-05-07 09:17:01 UTC
I emerged vlc-0.8.5 today succesfully, but when I start vlc from
the command line (with or without file to play) no window appears.
It consumes cpu time (almost 100% when running alone) and can be
interupted by pushing CTRL-C, but nothing else happens.

Output of the commandline is:
===
peter@pa3ebv ~/zoek $ vlc
VLC media player 0.8.5 Janus
signal 2 received, terminating vlc - do it again in case it gets stuck
user insisted too much, dying badly
Geannuleerd
===

Sorry for the sparse description, but at this moment I would not
now what to tell more. I will add emerge --info below. Please give
pointers how to determine what is going wrong.

===
pa3ebv ~ # emerge info
Portage 2203-svn (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 AMD Sempron(tm)   2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -g -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -g -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://194.117.143.71/mirrors/gentoo http://194.117.143.70"
LC_ALL="nl_NL@euro"
LINGUAS="us nl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext Gtk X Xaw3d a52 aac acl alsa apm arts artswrappersuid audiofile avi berkdb bitmap-fonts bonobo bzip2 cdparanoia cdr cli crypt cups curl debug divx4linux dri dts dvd dvdr dvdread eds emboss encode esd exif expat fam ffmpeg flac font-server foomaticdb fortran gd gdbm ggi gif glut gnome gpm gstreamer gtk gtk2 gtkhtml guile howl idn imagemagick imlib isdnlog jack java javascript jikes jpeg jpeg2k junit kde kig-scripting lcms ldap libg++ libwww logitech-mouse lzo mad matroska mikmod mjpeg mmx mmx2 mng motif mozilla mp3 mpeg ncurses nls odbc ogg oggvorbis openal opengl oss pam pcre pda pdflib perl plotutils png ppds pppd python qt quicktime readline reflection samba scanner sdk sdl session slang spell spl sse ssl svga tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis wmf xine xml xml2 xmms xorg xprint xv xvid zlib linguas_us linguas_nl userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Comment 1 Conrad Kostecki gentoo-dev 2006-05-07 12:19:04 UTC
Did you set all USE Flags?

->

http://www.videolan.org/vlc/download-gentoo.html
Comment 2 Peter J. de Vrijer 2006-05-07 12:56:13 UTC
Basically I set the USE flags mentioned on the home page
of vlc for gentoo.

Here is the output of emerge -pv vlc

===
Calculating dependencies ...done!
[ebuild   R   ] media-video/vlc-0.8.5  -3dfx +X +a52 +aac -aalib +alsa (-altivec) +arts -avahi +bidi +cdda -cddb -corba -daap +debug -directfb +dts -dvb +dvd +esd -fbcon +ffmpeg +flac +ggi +gnutls -hal +httpd -libcaca -lirc +live +matroska -mod +mp3 +mpeg +ncurses +nls -nsplugin +ogg +opengl +oss +png -rtsp +samba -screen +sdl -shout +skins -speex +stream -svg +svga +theora +truetype -upnp -v4l +vcd +vlm +vorbis -win32codecs +wxwindows -xinerama +xml -xosd +xv 0 kB
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-07 14:51:15 UTC
qlist vlc | grep wx

what does that shows you? (qlist is in portage-utils)
Comment 4 Peter J. de Vrijer 2006-05-07 15:37:34 UTC
After emerging portage-utils I got

====
pa3ebv ~ # qlist vlc | grep wx
/usr/bin/wxvlc
/usr/lib/vlc/gui/libwxwidgets_plugin.so
Comment 5 MAL 2006-05-08 09:51:56 UTC
I just got this again when I emerged 0.8.5 (I got it when moving to 0.8.4a too).

Just remerge wxGTK followed by vlc and it'll be solved.  Supposedly this bug was fixed, see bug 105189
Comment 6 MAL 2006-05-08 09:55:00 UTC
I delved deeper and found that, on my system anyway, the failing was the recent DirectFB update.

Run:

vlc -v --reset-plugins-cache

You should see the reason various components aren't loaded.

I suggest remerging DirectFB.
Comment 7 MAL 2006-05-08 09:58:11 UTC
Sorry to have jumped the gun.
It looks like DirectFB is used by libsdl, which is used by VLC.

DirectFB lib update breaks libsdl, which doesn't get picked up by revdep-rebuild on my system for some reason.

Final suggestion: remerge libsdl

I hope :)
Comment 8 MAL 2006-05-08 10:04:16 UTC
Confirmed (though I had to run vlc --reset-plugins-cache after rebuilding libsdl to get the GUI back).
Comment 9 Peter J. de Vrijer 2006-05-08 10:15:53 UTC
First of all I do not use directfb. I want vlc to run and display
in a window. It always did until now.

vlc -v --reset-plugins-cache gave the following output

===
peter@pa3ebv ~ $ vlc -v --reset-plugins-cache
VLC media player 0.8.5 Janus
[00000001] main vlc warning: config file /home/peter/.vlc/vlcrc does not exist yet
[00000001] main vlc warning: cannot load module `/usr/lib/vlc/stream_out/libstream_out_switcher_plugin.so' (/usr/lib/vlc/stream_out/libstream_out_switcher_plugin.so: undefined symbol: avcodec_init)
[00000001] main vlc warning: config file /home/peter/.vlc/vlcrc does not exist yet
====
Comment 10 Peter J. de Vrijer 2006-05-08 14:07:50 UTC
The undefined symbol avcodec_init is in ffmpeg's libavcodec.so.
It is where it is supposed to be in /usr/lib, so why can't 
vlc find it?
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-09 16:09:13 UTC
The avcodec error is probably a faulty link, I'll investigate that but it's another problem.

Try rebuilding wxGTK and then rebuild vlc, it might be a problem with g++ upgrade.
Comment 12 Peter J. de Vrijer 2006-05-10 00:26:02 UTC
I re-emerged wxGTK-2.6.3.2 and vlc, but the behaviour did not change.
It hangs at the same point while eating all the available cpu time.

BTW in the proces list I see 5 instances of vlc at that moment of which
one is doing all the eating.
Comment 13 Peter J. de Vrijer 2006-05-10 01:08:10 UTC
I miscounted the number of instances. In Top view I only saw 5 but in
alphabetical view there are 7 instances. One originating parent, one
child which again has five children. The originating parent is the one
that eats all the cpu time.
Comment 14 Nathan Adams 2006-05-11 00:23:33 UTC
# emerge -v libsdl
# vlc --reset-plugins-cache

fixed this problem for me.
Comment 15 Peter J. de Vrijer 2006-05-11 00:59:02 UTC
Ok emerged libsdl again, but it did not help.
Comment 16 Aurelien Minet 2006-05-14 08:34:21 UTC
Hi,
I have got the same kind problem with 0.8.4a (no gui, just cmd line) 
As directfb is in my uses flags, as it was recently updated, as previous post  mention it.  I decided to emerge -v libsdl wxGTK vlc
and vlc works like before.
( wxGTK depends on libsdl)
Comment 17 Peter J. de Vrijer 2006-05-14 15:49:07 UTC
Well, sorry to say. But that just does'nt work for me.
Comment 18 Matthieu AUBRY 2006-05-14 22:41:17 UTC
Used to have the same problem.
This problem (for me) came after the re-emerging of libdc.
To fix the problem I needed to link manually libdc1394_control.so to libdc1394_control.so.11
I don't know why but vlc wants libdc1394_control.so.11 and in new version of libdc, the name is libdc1394_control.so.12

Hope it will help you.

PS: it always fixed xine :)
Comment 19 GeekDog 2006-05-24 13:29:45 UTC
I am having a problem with vlc that I think might be related to this bug. When I initially set up my system, I emerged vlc-0.8.2-r2, which worked fine. After upgrading, the wxwidgets interface stopped appearing. I think this happened when I first emerged vlc-0.84a. At present I have vlc-0.85 and the problem persists. The behaviour is as follows:

luser@localhost ~ $ vlc
VLC media player 0.8.5 Janus
Remote control interface initialized. Type `help' for help.

At this point, the terminal stays where it is (i.e. it does not return to the prompt). The only way I've found to get out of it is to press Ctrl-C, which produces the following output:

signal 2 received, terminating vlc - do it again in case it gets stuck
status change: ( stop state: 0 )
status change: ( quit )

At this point the vlc process quits and I get the prompt back. Behaviour is similar when I issue a command like

luser@localhost ~ $ vlc video.mpg &

The video appears in an X window and plays. However the window doesn't contain any buttons or anything, just a title bar, a frame and the video. When the video reaches the end, the window disappears and vlc is left as a stopped process which I have to kill via fg followed by Ctrl-C.

Obviously I was a little confused about the problem and tried to fix it. I found this bug report and tried some of the suggestions made.

localhost ~ # emerge --pretend --verbose vlc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-video/vlc-0.8.5  -3dfx +X +a52 +aac -aalib +alsa (-altivec) +arts -avahi +bidi +cdda -cddb -corba -daap -debug -directfb +dts -dvb +dvd +esd +fbcon +ffmpeg +flac -ggi +gnutls +hal +httpd -libcaca -lirc +live +matroska -mod +mp3 +mpeg +ncurses +nls +nsplugin +ogg +opengl -oss +png -rtsp +samba -screen +sdl -shout -skins -speex +stream -svg +svga +theora +truetype -upnp -v4l +vcd +vlm +vorbis +win32codecs +wxwindows -xinerama -xml -xosd +xv 0 kB

As you can see, I have the recommended use flags set.

luser@localhost ~ $ qlist vlc | grep wx
/usr/bin/wxvlc
/usr/lib/vlc/gui/libwxwidgets_plugin.so

I tried remerging libsdl and wxGTK, with no change in behaviour. I even tried downgrading back to vlc-0.8.2-r2, but even that didn't fix the problem. The final thing I tried was

luser@localhost ~ $ vlc -v --reset-plugins-cache
VLC media player 0.8.5 Janus
[00000001] main vlc warning: config file /home/luser/.vlc/vlcrc does not exist yet
[00000001] main vlc warning: cannot load module `/usr/lib/vlc/gui/libwxwidgets_plugin.so' (/usr/lib/libwx_baseu_net-2.6.so.0: undefined symbol: _ZNK11wxClassInfo8IsKindOfEPKS_)
[00000001] main vlc warning: cannot load module `/usr/lib/vlc/codec/libquicktime_plugin.so' (/usr/lib/vlc/codec/libquicktime_plugin.so: undefined symbol: NewHandleClear)
[00000001] main vlc warning: cannot load module `/usr/lib/vlc/stream_out/libstream_out_switcher_plugin.so' (/usr/lib/vlc/stream_out/libstream_out_switcher_plugin.so: undefined symbol: avcodec_init)
[00000001] main vlc warning: config file /home/luser/.vlc/vlcrc does not exist yet

So I can see that there is an undefined symbol in the module that is preventing it from loading, but I have absolutely no idea where to go from there. I'm guessing the other two errors are not related but I don't know for sure. The behaviour I get from vlc is not identical to that listed by Peter J. de Vrijer, as the vlc process uses very little CPU according to top - when I call it without a video file, it doesn't appear in top at all. If I call it with a video file it uses about 2% CPU, which disappears from top when the video finishes and its window closes.

I have no idea what Matthieu AUBRY's comment is getting at, I ran updatedb and then used locate to search for the plugins he mentioned, but 'locate libdc1394_control.so', 'locate libdc1394_control.so.11' or 'locate libdc1394_control.so.12' all return nothing, even when run as root. Maybe it is something to do with xine, which I don't have installed.

I am totally stumped. Hope some of this info is of some use in fixing the problem!

luser@localhost ~ $ emerge --info
Portage 2.0.54-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -fno-ident -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa arts audiofile avi berkdb bitmap-fonts bzip2 cli crypt curl divx4linux dri dts dvd eds emacs emboss encode esd exif expat fam fbcon ffmpeg flac fortran gd gdbm gif glut gmp gpm gstreamer gtk gtk2 guile hal idn imagemagick imlib ipv6 isdnlog java jpeg kde kdeenablefinal lcms libg++ libwww mad matroska mikmod mng motif mp3 mpeg msn ncurses nls nptl nsplugin offensive ogg oggvorbis opengl pam pcre pdflib perl png pppd python qt quicktime readline reflection samba sdl session spell spl ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vorbis xml2 xmms xorg xv xvid zlib linguas_en_GB linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Comment 20 Colin Carle 2006-06-11 11:50:42 UTC
Hi GeekDog, I think your problem come from the -fvisibility-inlines-hidden CXXFlag. I experienced the same bug and I use this workaround :
- I have compiled the testing version wxGTK-2.6.3.2 without this CXXFlag
- I run vlc -v --reset-plugins-cache
Now it's working fine
I noticed the same bug with amule, it seems to be a wxWidget bug 
Comment 21 GeekDog 2006-06-13 14:26:21 UTC
Thanks Colin, that seems to have done the trick.

Does anyone know if this has been submitted as a bug in wxwidgets? I can't find it on this bugzilla. If no-one thinks it's been submitted yet, I'll submit it.
Comment 22 Colin Carle 2006-06-16 12:09:07 UTC
> it on this bugzilla. If no-one thinks it's been submitted yet, I'll submit it.

I was waiting for your confirmation I have just submited it :
http://bugs.gentoo.org/show_bug.cgi?id=137005

Comment 23 GeekDog 2006-06-21 07:24:31 UTC
Sorry, I'd already submitted it too, forgot to post on this page. Apparently the wxWidgets bug is a duplicate of https://bugs.gentoo.org/show_bug.cgi?id=127020

To sum up for everyone: don't use -fvisibility-inlines-hidden unless you know what you're doing. The vast majority of packages don't support it at the moment. You can read a bit more on the link, see comment #8.

None of this seems to be related to the original bug posted by Peter J de Vrijer.
Comment 24 Peter J. de Vrijer 2006-06-21 08:24:57 UTC
And alas, the bug is still there for me. 
Comment 25 Peter J. de Vrijer 2006-06-27 03:46:16 UTC
Hmm, somehow vlc starts up again. Still get some complains about
missing wxWidgets plugin, see below

Most recent re-emerges (updates) are of
the packages ffmpeg (which did not help I believe)
and libmp4v2. And now it works again.

Hope this helps to find what was wrong. But vlc works
again for me and perhaps this bug should be closed.

====
VLC media player 0.8.5 Janus
[00000271] main dialogs provider error: no dialogs provider module matched "any"
[00000268] skins2 interface error: no suitable dialogs provider found (hint: compile the wxWidgets plugin, and make sure it is loaded properly)
[00000268] skins2 interface: skin: VLC 0.8.5 Default Skin  author: aLtgLasS
[00000262] main playlist: stopping playback
====
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2006-07-06 01:02:58 UTC
*** Bug 139378 has been marked as a duplicate of this bug. ***
Comment 27 Nathan Adams 2006-07-15 18:25:51 UTC
I just emerged vlc-0.8.4a-r1 and ran into the same problem (again). This solved it for me (again):

# emerge -v --oneshot libsdl wxGTK vlc
# vlc -v --reset-plugins-cache

By the way, if you run vlc and your prompt doesn't return, vlc isn't hung; its in command-line a.k.a non-gui mode. You can type in commands and play videos at that point, or type 'quit' to exit. This might help:

# vlc --help
Comment 28 Johannes Köster 2006-07-16 02:27:59 UTC
You simply have to delete .vlc in your home-folder.
Then vlc should appear normally.
Comment 29 Dennis Brendel 2006-08-16 08:45:56 UTC
That was my first idea, too, but it didn't help. I will try the other solutions later.
Comment 30 Peter J. de Vrijer 2006-09-03 19:42:41 UTC
Hmm, after upgrading to gcc-4.1.1 and doing a 'emerge -e world'
I tried vlc again. No succes it just does not create a gui.

vlc -I ncurses works normally btw.

As last resort I tried downgrading to 0.8.4a-r1. This seems to work ok.
A gui appears and video's can be played. 

Is there anyone with new ideas how to get 0.8.5 work?
Comment 31 Nathan Adams 2006-09-19 05:29:44 UTC
Re: Comment #30

I had a similiar problem after upgrading GCC. The root cause seems to be dependencies of wxGTK and/or vlc itself getting recompiled *after* wxGTK or vlc. In my case, I did this:

$ vlc -v --reset-plugins-cache

vlc complained about a pango/cairo symbol eeeded by the wxgtk plugin. So in my case, this fixed vlc:

emerge -v --oneshot pango cairo libsdl wxGTK vlc

So use the "--reset-plugins-cache" to figure out what is broken, use "emerge -s" to find the associated library ebuild, re-emerge the library (or libraries) FIRST, and then re-emerge vlc.

A revdep-rebuild is probably in order once you are done.
Comment 32 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-30 18:42:07 UTC
Please give a try to 0.8.6_rc1 and if it's still an issue report upstream.