Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139427 - bmpx-0.20_beta1 fails with glib error
Summary: bmpx-0.20_beta1 fails with glib error
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Patrick McLean
URL: http://bugs.beep-media-player.org/vie...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 07:35 UTC by Richard Hering (misterjack)
Modified: 2006-07-07 03:54 UTC (History)
1 user (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 Richard Hering (misterjack) 2006-07-06 07:35:06 UTC
The problem is descripted in the Link. I emerged bmpx-0.20_beta1 and the prob still exists:

mrjack@misterjack ~ $ gdb /usr/libexec/beep-media-player-2-bin
(gdb) run
Starting program: /usr/libexec/beep-media-player-2-bin
(no debugging symbols found)
[..]
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1227016528 (LWP 4584)]
I/O warning : failed to load external entity "/home/mrjack/.config/bmpx/config.xml"
[New Thread -1229194320 (LWP 4588)]
[New Thread -1238074448 (LWP 4589)]

Program received signal SIG33, Real-time event 33.
[Switching to Thread -1229194320 (LWP 4588)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb756abf6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7c86336 in gst_system_clock_obtain () from /usr/lib/libgstreamer-0.10.so.0
#3  0x0840a030 in ?? ()
#4  0xb6fec1b4 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x08407db0 in ?? ()
#6  0xb6bbfbb0 in ?? ()
#7  0xb6bbf4e8 in ?? ()
#8  0xb6faccea in g_static_private_free () from /usr/lib/libglib-2.0.so.0
#9  0x08407db0 in ?? ()
#10 0x00000002 in ?? ()
#11 0x00000002 in ?? ()
#12 0x00000002 in ?? ()
#13 0xb6bbf4a0 in ?? ()
#14 0x00000000 in ?? ()

misterjack ~ # emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r1 i686)
=================================================================
System uname: 2.6.17-gentoo-r1 i686 AMD Sempron(tm)
Gentoo Base System version 1.6.15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.4.2-r1
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.intergenia.de"
LANG="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/local /usr/local/overlays/gentoo-de"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acl acpi alsa ao apm artworkextra audiofile avi bash-completion beagle berkdb bidi binfilter bitmap-fonts branding bzip2 cairo cdda cddb cdinstall cdio cdparanoia cdr cli cpudetection crypt ctype cups curl dba dbus dio disablexmb dmx dri dts dv dvd dvdr dvdread emboss encode esd expat fastbuild faxonly fbcon ffmpeg firefox flac font-server foomaticdb force-cgi-redirect fortran ftp fuse gd gdbm gif gimp gimpprint glitz glut gnome gpm gstreamer gtk gtk2 hal hbci icq idn imagemagick imap imlib ipv6 jack java jpeg lame lcms libg++ libwww lirc lm_sensors lzo mad memlimit mikmod mmx mmxext mng motif mp3 mpeg mplayer multiuser musepack mythtv nautilus ncurses network nls nocd nptl nptlonly nvidia offensive ogg openal opengl oscar oss pam pcre pdflib perl png portaudio posix ppds python quicktime readline real ruby samba scanner sdl sensord session simplexml skins soap sockets soundtouch spell spl sqlite sse ssl stream svg symlink tcltk tcpd theora threads tiff tokenizer transcode truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd videos vlm vorbis win32codecs wma wxwindows xcomposite xine xinerama xml xml2 xosd xpm xprint xscreensaver xsl xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de lirc_devices_livedrive_midi userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Richard Hering (misterjack) 2006-07-06 07:36:13 UTC
forgot the link: http://bugs.beep-media-player.org/view.php?id=238
Comment 2 Milosz Derezynski 2006-07-06 07:42:43 UTC
Please take a look at this:

http://bmpx.beep-media-player.org/site/Debugging#Crash_at_startup
Comment 3 Richard Hering (misterjack) 2006-07-06 07:48:36 UTC
misterjack sbin # ./check-libstdc++.sh

If the following output does not show EXACTLY the same library for EACH line, then you have a problem.

BMP..........: libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6 (0xb757d000)
GLIBMM.......: libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6 (0xb7dbf000)
GTKMM........: libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6 (0xb766e000)
PANGOMM......: libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6 (0xb7d27000)
Taglib.......: libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6 (0xb7e91000)
MusicBrainz..: libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6 (0xb7e68000)

misterjack sbin # ./check-deeper.sh
No libstdc++ problems detected
Comment 4 Richard Hering (misterjack) 2006-07-06 07:50:36 UTC
ah forgot something:

mrjack@misterjack ~ $ /usr/libexec/beep-media-player-2-bin --no-log
BMP2-Message: Transport plugin 'file' loaded.
BMP2-Message: Transport plugin 'http' loaded.
BMP2-Message: Container plugin 'M3U Playlist' loaded
BMP2-Message: Container plugin 'PLS Playlist' loaded
BMP2-Message: Container plugin 'XSPF Playlist' loaded
BMP2-Message: Container plugin 'MLQ Playlist' loaded
BMP2-Message: Container plugin 'Query Parser' loaded
I/O warning : failed to load external entity "/home/mrjack/.config/bmpx/config.xml"

(beep-media-player-2-bin:5774): BMP2-CRITICAL **: Unable to parse configuration file
BMP2-Message: loader.cpp:71: flow plugin: libflow_linear.so
BMP2-Message: loader.cpp:71: flow plugin: libflow_shuffle.so
BMP2-Message: sm.cpp:272: Connection opened, client id is 11c0a80003000115219778400000196420020
BMP2-Message: sm.cpp:55: XSMP Version: 1  Revision: 0
BMP2-Message: sm.cpp:58: Session manager: GnomeSM
BMP2-Message: sm.cpp:62: Release: 2.14.2
BMP2-Message: running: Monitor
BMP2-Message: running: BmpSystemControl
BMP2-Message: BmpSystemControl (DBus:org.beepmediaplayer.bmp)
BMP2-Message: Volume UDI [/org/freedesktop/Hal/devices/volume_uuid_70F0A5B5F0A581C8]
BMP2-Message:   Device UDI....: [/org/freedesktop/Hal/devices/storage_serial_WD_WCALL1301516]
BMP2-Message:   Mount Path....: [/mnt/windows]
BMP2-Message:   Device Serial.: [WD-WCALL1301516]
BMP2-Message:   Volume Name...: []
BMP2-Message:   Device File...: [/dev/hda1]
BMP2-Message:   Disc..........: [FALSE]
BMP2-Message:   Bus...........: [IDE]
BMP2-Message: Volume UDI [/org/freedesktop/Hal/devices/volume_uuid_01e9ca34_2f57_420b_bfd0_d1b089adf4bc]
BMP2-Message:   Device UDI....: [/org/freedesktop/Hal/devices/storage_serial_WD_WCALL1301516]
BMP2-Message:   Mount Path....: [/]
BMP2-Message:   Device Serial.: [WD-WCALL1301516]
BMP2-Message:   Volume Name...: []
BMP2-Message:   Device File...: [/dev/hda6]
BMP2-Message:   Disc..........: [FALSE]
BMP2-Message:   Bus...........: [IDE]
BMP2-INFO: play.cpp:756: neonhttpsrc not available, trying gnomevfssrc
terminate called after throwing an instance of 'Glib::FileError'
Abgebrochen
Comment 5 Milosz Derezynski 2006-07-06 07:53:07 UTC
BTW, Richard:

SIG33 is meaningless, it gets emitted all the time when gstreamer is playing something; whenever you encounter it you should just use "cont" inside gdb and wait until you get a SIGSEGV.

Comment 6 Milosz Derezynski 2006-07-06 07:56:27 UTC
All problems regarding to conversion from filename to uri and vice versa should be fixed now in SVN trunk HEAD. 

If i could get you to build it and test it again it would be very helpful and not the least insightful for this bug report; i know you guys love ebuilds and no one likes to "pollute" his system with a non-distro-built package, but this bug report has insofar little relevance for the final 0.20 release as we spent the time between beta1 release and now mostly with fixing bugs related to conversion from files to uris and back, taking the filesystem encoding (or G_FILENAME_ENCODING) into account, and avoiding usage of the Bmp::URI class which is unsuitable for certain tasks.
Comment 7 Richard Hering (misterjack) 2006-07-06 08:26:42 UTC
ok, I have build from SVN, Revision 5153

(gdb) run
Starting program: /usr/libexec/beep-media-player-2-bin
[Thread debugging using libthread_db enabled]
[New Thread -1226709328 (LWP 20709)]
I/O warning : failed to load external entity "/home/mrjack/.config/bmpx/config.xml"
[New Thread -1228895312 (LWP 20715)]
[New Thread -1237775440 (LWP 20716)]

Program received signal SIG33, Real-time event 33.
[Switching to Thread -1237775440 (LWP 20716)]
0xffffe410 in __kernel_vsyscall ()
(gdb) cont
Continuing.

Program received signal SIG33, Real-time event 33.
[Switching to Thread -1228895312 (LWP 20715)]
0xffffe410 in __kernel_vsyscall ()
(gdb) cont
Continuing.

after 5 min I typed ctrl-c


Program received signal SIGINT, Interrupt.
[Switching to Thread -1226709328 (LWP 20709)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb75b2de3 in __nptl_setxid () from /lib/libpthread.so.0
#2  0xb6ef791d in seteuid () from /lib/libc.so.6
#3  0xb5b40758 in gnome_vfs_method_init () from /usr/lib/libgnomevfs-2.so.0

(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/libexec/beep-media-player-2-bin
[Thread debugging using libthread_db enabled]
[New Thread -1227012432 (LWP 20732)]
I/O warning : failed to load external entity "/home/mrjack/.config/bmpx/config.xml"
[New Thread -1229198416 (LWP 20734)]
[New Thread -1238078544 (LWP 20735)]

Program received signal SIG33, Real-time event 33.
[Switching to Thread -1229198416 (LWP 20734)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb756bbf6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7c87336 in gst_system_clock_obtain () from /usr/lib/libgstreamer-0.10.so.0
#3  0x083d8830 in ?? ()
#4  0xb6fed1b4 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x083d5f68 in ?? ()
#6  0xb6bbebb0 in ?? ()
#7  0xb6bbe4e8 in ?? ()
#8  0xb6fadcea in g_static_private_free () from /usr/lib/libglib-2.0.so.0
#9  0x083d5f68 in ?? ()
#10 0x00000002 in ?? ()
#11 0x00000002 in ?? ()
#12 0x00000000 in ?? ()
(gdb)

/usr/libexec/beep-media-player-2-bin --no-log says again:

BMP-INFO: play.cpp:766: neonhttpsrc not available, trying gnomevfssrc
terminate called after throwing an instance of 'Glib::FileError'
Comment 8 Milosz Derezynski 2006-07-06 10:47:59 UTC
Please try the following steps. It's somewhat unusual, but gdb is a little silly so there's no clean way around it (that i have found, that is; i'm not a gdb expert user either).

- Run BMPx inside GDB with "run --no-log"
- During the startup sequence, somewhen before it's fully started, but in _any_ case before it actually crashes with the ConvertError, press CTRL+C. Don't worry, it will only interrupt the app inside gdb, it's actually still running
- Now enter "catch throw"
- GDB will give you a confirmation for that, and now type "cont"
- Use "cont" whenever you encounter a SIG33
- When it breaks with a __cxa_exception (or similar), use the normal "bt", and please attach the output to this bug report.

Comment 9 Milosz Derezynski 2006-07-06 10:49:40 UTC
I forgot in between here of course:

//- Use "cont" whenever you encounter a SIG33

- Make it crash again with the ConvertError

//- When it breaks with a __cxa_exception (or similar), use the normal "bt", and
please attach the output to this bug report.
Comment 10 Milosz Derezynski 2006-07-06 10:53:49 UTC
BTW what is your $LANG and $G_FILENAME_ENCODING ?
Comment 11 Milosz Derezynski 2006-07-06 10:59:48 UTC
Erm, i've changed the code again, avoid the usage of our Bmp::URI class in play.cpp (the playback engine), it should theoretically catch all ConvertErrors now (i hope), if not, please produce the backtrace as described in comment #8
Comment 12 Patrick McLean gentoo-dev 2006-07-06 11:09:47 UTC
I hate to be rude guys, but this discussion really should be taking place in the upstream bug, since it's not really related to the ebuild or a bug in the ebuild, but a known issue upstream.
Comment 13 Milosz Derezynski 2006-07-06 11:11:22 UTC
Erm yeah sorry you're right. Richard: please let's continue the discussion here: http://bugs.beep-media-player.org/view.php?id=238 (well you know the bug entry/number)
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2006-07-07 03:54:55 UTC
Known by upstream. Discussion in http://bugs.beep-media-player.org/view.php?id=238