Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201315 - media-gfx/fontypython traceback on startup
Summary: media-gfx/fontypython traceback on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL: http://savannah.nongnu.org/bugs/index...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-05 02:47 UTC by Ryan Hill (RETIRED)
Modified: 2010-01-04 18:05 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 Ryan Hill (RETIRED) gentoo-dev 2007-12-05 02:47:04 UTC
dirtyepic@tycho ~ $ fp
Traceback (most recent call last):
  File "/usr/bin/fp", line 27, in <module>
    import fontypython.start
  File "/usr/lib/python2.5/site-packages/fontypython/start.py", line 61, in <module>
    gui = __import__ ( "fontypython." + chosengui ) 
  File "/usr/lib/python2.5/site-packages/fontypython/wxgui.py", line 1278, in <module>
    app = App ( 0 ) 
  File "usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7755, in __init__
  File "usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7407, in _BootstrapApp
  File "/usr/lib/python2.5/site-packages/fontypython/wxgui.py", line 1271, in OnInit
    frame = MainFrame ( None, "Fonty Python: bring out your fonts!" ) 
  File "/usr/lib/python2.5/site-packages/fontypython/wxgui.py", line 1045, in __init__
    self.nb = NoteBook  ( self.panelNotebook )
  File "/usr/lib/python2.5/site-packages/fontypython/wxgui.py", line 891, in __init__
    self.listctrl = PogChooser ( pan2, select = s )
  File "/usr/lib/python2.5/site-packages/fontypython/wxgui.py", line 759, in __init__
    self.Select ( 0, False )
  File "usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_controls.py", line 4869, in Select
  File "usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_controls.py", line 4633, in SetItemState
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in /var/tmp/portage/x11-libs/wxGTK-2.6.4.0-r2/work/wxPython-src-2.6.4.0/src/generic/listctrl.cpp(3779): invalid list ctrl item index in SetItem


Portage 2.1.4_rc7 (default-linux/x86/2007.0, gcc-4.2.3-pre20071130, glibc-2.7-r0, 2.6.23.8 i686)
=================================================================
System uname: 2.6.23.8 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz
Timestamp of tree: Unknown
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1, 2.18.50.0.2, 2.18.50.0.3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -g -march=prescott -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -g -march=prescott -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests ccache collision-protect cvs digest distlocks fixpackages parallel-fetch sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS=" http://gentoo.chem.wisc.edu/gentoo http://gentoo.osuosl.org http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--as-needed"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dirtyepic/overlay /home/dirtyepic/svn/dirtyepic"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amazon ao audiofile bash-completion berkdb bitmap-fonts branding bzip2 cairo caps cddb cdio cli cracklib crypt curl dbus djbfft dri dts dvd dvdr expat fam ffmpeg fftw firefox flac fontconfig gdbm gif glib gmp gnutls gstreamer gtk hal iconv id3 ipw3945 isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility logitech-mouse mad mmap mmx mmxext moznopango mp3 mpeg music musicbrainz ncurses network-cron noflagstrip nptl nptlonly nsplugin odbc ogg opengl openmp pam pcre perl physfs pic png portage pppd python qa qt3 readline reflection regex rtc session sndfile spell spl sqlite sqlite3 sse sse2 ssl svg tcpd test threads threadsafe truetype truetype-fonts type1-fonts unicode urandom utempter utils vim-syntax vim-with-x visibility vorbis win32codecs wxwindows x86 xcb xml xorg xpm xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="joystick mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2007-12-24 00:27:38 UTC
looks like it only fails with wxpython linked to wxGTK built with USE="debug"
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2008-01-06 12:32:09 UTC
I've added fontypython-0.3.2 to tree.. dunno if this is fixed.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2008-01-06 12:46:39 UTC
New problem with 0.3.2,

Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/fontypythonmodules/wxgui.py", line 1383, in __onDirCtrlClick
    ps.pub(update_font_view)
  File "/usr/lib64/python2.5/site-packages/fontypythonmodules/pubsub.py", line 85, in pub
    globRetVal[topic] = function(args) #Pass the args only.
  File "/usr/lib64/python2.5/site-packages/fontypythonmodules/wxgui.py", line 1613, in UpdateFontViewPanel
    self.panelFontView.MainFontViewUpdate()
  File "/usr/lib64/python2.5/site-packages/fontypythonmodules/wxgui.py", line 817, in MainFontViewUpdate
    self.__filterAndPageThenCallCreateFitmaps()
  File "/usr/lib64/python2.5/site-packages/fontypythonmodules/wxgui.py", line 646, in __filterAndPageThenCallCreateFitmaps
    self.scrolledFontView.CreateFitmaps( sublist ) # Tell my child to draw the fonts
  File "/usr/lib64/python2.5/site-packages/fontypythonmodules/wxgui.py", line 447, in CreateFitmaps
    self.width = self.DoGetSize()[0] - sbwidth
AttributeError: 'ScrolledFontView' object has no attribute 'DoGetSize'

It doesn't crash, but it won't show fonts after this error until you restart.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-02-15 15:50:14 UTC
media-gfx/fontypython-0.3.6 (which is in tree now) looks to be worth for retest..
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2008-02-16 02:22:32 UTC
dirtyepic@tycho ~ $ fontypython
08:21:03 PM: Debug: /var/tmp/portage/x11-libs/wxGTK-2.8.7.1-r1/work/wxPython-src-2.8.7.1/src/common/stdpbase.cpp(51): assert "traits" failed in Get(): create wxApp before calling this
/var/tmp/portage/x11-libs/wxGTK-2.8.7.1-r1/work/wxPython-src-2.8.7.1/src/common/stdpbase.cpp(51): assert "traits" failed in Get(): create wxApp before calling this
08:21:03 PM: Debug: /var/tmp/portage/x11-libs/wxGTK-2.8.7.1-r1/work/wxPython-src-2.8.7.1/src/common/stdpbase.cpp(51): assert "traits" failed in Get(): create wxApp before calling this
/var/tmp/portage/x11-libs/wxGTK-2.8.7.1-r1/work/wxPython-src-2.8.7.1/src/common/stdpbase.cpp(51): assert "traits" failed in Get(): create wxApp before calling this
Trace/breakpoint trap


it probably works without wxGTK w/ USE=debug though.  I'm going to poke upstream.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2008-02-16 02:25:25 UTC
just noticed it's using wxpython-2.8 too.  easy enough to fix though.  i'll have a patch for you in a bit.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2008-06-09 12:28:24 UTC
dirtyepic, reported it upstream, http://savannah.nongnu.org/bugs/index.php?23528
if you have something to comment, attach etc. please do & thanks
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2009-09-27 00:59:46 UTC
i worked around this in 0.4.1 by depending on wxGTK[-debug].  not the greatest solution but upstream doesn't seem to be fixing it any time soon.