Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73303 - directfb error crashes mythtv frontend
Summary: directfb error crashes mythtv frontend
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-03 22:18 UTC by Ian Truelsen
Modified: 2010-09-22 11:09 UTC (History)
0 users

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 Ian Truelsen 2004-12-03 22:18:14 UTC
I have tried to get this resolved with the mythtv list, but with no luck, so here goes. I am running mythtv 0.16 and have set up the backend and the frontend with no problems. However, when I try to switch to tv, it crashes with the following:

ian@minion ~ $ mythfrontend
2004-12-03 15:43:04 mythfrontend version: 0.16.20040906-1 www.mythtv.org
2004-12-03 15:43:04 Enabled verbose msgs : important general
2004-12-03 15:43:05 Registering Internal as a media playback plugin.
Error loading image file: /usr/share/mythtv/themes/default/NOTHING.png
2004-12-03 15:43:12 Connecting to backend server: 127.0.0.1:6543 (try 1
of 5) 2004-12-03 15:43:12 Using protocol version 13
2004-12-03 15:43:12 Using protocol version 13
2004-12-03 15:43:12 Using protocol version 13
2004-12-03 15:43:12 Opening OSS audio device '/dev/dsp'.
2004-12-03 15:43:12 Audio fragment size: 4096

       ---------------------- DirectFB v0.9.20 ---------------------
             (c) 2000-2002  convergence integrated media GmbH  
             (c) 2002-2003  convergence GmbH                   
        -----------------------------------------------------------

(*) Single Application Core. (2004-11-08 20:01)
(*) DirectFB/misc/memcpy: using linux kernel memcpy()
(!) DirectFB/fbdev/vt: KD_GRAPHICS failed!
    --> Operation not permitted
(!) DirectFB/Core: Could not initialize 'system' core!
    --> General initialization failure!
(!) DirectFB/Core: Error during initialization (General initialization
failure!) videoout_directfb.cpp <324>:
        (#) DirectFBError [DirectFBCreate( &(data->dfb) )]: General
initialization failure! terminate called after throwing an instance of
'std::bad_alloc'  what():  St9bad_alloc
Killed

This looks like a permission error in directfb, but I don't know what the permissions are supposed to be.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r8 i686)
=================================================================
System uname: 2.6.9-gentoo-r8 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.6
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jul 20 2004, 23:33:36)]
distcc 2.18.2 i486-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.3, 1.8.5-r2, 1.5, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://dark-lord.ihtruelsen.dyndns.org/gentoo-portage"
USE="3dnow X aalib acpi aim alsa apm arts avi berkdb bitmap-fonts cdr crypt cups
dillo directfb dvd encode esd f77 fam fbcon flac flash foomaticdb fortran gdbm
gif gnome gnutls gpm gtk gtk2 icq imagemagick imap imlib jabber java jpeg junit
kde ldap libg++ libwww mad maildir mikmod motif moznocompose moznoirc moznomail
mpeg msn mysql ncurses nls oggvorbis opengl oscar oss pam pdflib perl png python
qt quicktime readline sdl slang slp spell ssl svga tcltk tcpd tetex tiff
truetype usb x86 xface xml xml2 xmms xv yahoo zlib video_cards_nvidia"
Comment 1 Greg 2004-12-22 09:35:45 UTC
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i486-pc-linux-gnu"

Your cflags and chost might be conflicting.  You should change CHOST to "i686-pc-linux-gnu".  That way it will jive better with the march=athlon-xp cflag.  Also try turning your -O3 down to -O2.  I've read in a few places that this combination of settings on an AMD XP can cause bad binaries
Comment 2 Evan Langlois 2005-01-12 14:38:31 UTC
Switching to TV, or trying to display any TV output on mine just gives a blank screen and I have to kill X to make it respond - it used to actually display a channel fine, but not respond to key presses, so I couldn't change the channel or exit it without killing X.  

If I start mythfrontend as any other user besides root, it crashes and then dies, but I've checked all the permissions and it should work.   This seems to be the same problem as the original bug reporter (did you have to turn off the lirc flag to get it to compile too?  lirc won't emerge for me, and I have other bugs to file for now).  Permissions shouldn't kill a program anyway, so I think there is another bug - it should just complain.

I'm curious what the directfb use flag does .. I have it on, but don't know what it does .. it doesn't seem to make the frontend use directfb instead of X.  Should I turn it off?

I also get the following errors on mythfrontend, although it runs - this is a brand new install of Gentoo!

mythfrontend: Symbol `_ZTI14BooleanSetting' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI19ConfigurationWizard' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI27TriggeredConfigurationGroup' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI15LineEditSetting' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI12Configurable' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI13SelectSetting' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI19ConfigurationDialog' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI26VerticalConfigurationGroup' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI28HorizontalConfigurationGroup' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI14IntegerSetting' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI7Setting' has different size in shared object, consider re-linking
mythfrontend: Symbol `_ZTI18ConfigurationGroup' has different size in shared object, consider re-linking


What is messed up here?   I also noticed that most themes don't work with myth-tv-0.16, so the myth-themes package shouldn't be installed with newer myth-tv installations (should this be reported as a seperate bug?)

CFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
USE flags:
[ebuild   R   ] media-tv/mythtv-0.16  +X +alsa -arts +cle266* -debug +directfb +dvb +lcd* -lirc +mmx -nls -nvidia +opengl +oss* +xv 0 kB

OSS, LCD, and CLE266 I've tried turning all off to see if it improves.  It doesn't.

I don't think its a CHOST or -O2 vs -O3 issue.  I've already got those set as specified since installation.

Note: I've intentionally compiled the entire system with the relatively meager set of compilation flags in hope of getting better stability by having fewer software bugs than with possibly other more aggressive sets of optimizations.  I haven't found a an improvement yet.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2005-02-12 09:09:43 UTC
DirectFB doesn't even appear to work upstream. Support for it has been removed from the 0.17. None of the maintainers with CVS access to MythTV can even say if it worked properly in 0.16. Until the upstream code gets fixed, directfb support is out.
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2010-09-22 11:09:15 UTC
The error <<has different size in shared object, consider re-linking>> can be fixed by remergint the package owning the file. See bug 338347 . The issue is not in the app, but in portage 2.2, or in revdep-rebuild.