[apport] ontv crashed with AttributeError in do_prepare()

Bug #85208 reported by madden
4
Affects Status Importance Assigned to Milestone
ontv (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ontv

First bug while answering channels selection

ProblemType: Crash
Date: Wed Feb 14 22:20:44 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/lib/ontv/ontv
InterpreterPath: /usr/bin/python2.5
Package: ontv 2.4.0-0ubuntu1
ProcCmdline: python /usr/lib/ontv/ontv --oaf-activate-iid=OAFIID:GNOME_OnTVApplet_Factory --oaf-ior-fd=23
ProcCwd: /
ProcEnviron:
 LANG=fr_FR.UTF-8
 LANGUAGE=fr_FR:fr:en_GB:en
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 SHELL=/bin/bash
PythonArgs: ['/usr/lib/ontv/ontv', '--oaf-activate-iid=OAFIID:GNOME_OnTVApplet_Factory', '--oaf-ior-fd=23']
SourcePackage: ontv
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/ontv/XMLTVAssistant.py", line 244, in do_prepare
     font.set_size(10)
 AttributeError: 'NoneType' object has no attribute 'set_size'
Uname: Linux c400 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux

Revision history for this message
madden (linux-madfix) wrote :
Revision history for this message
Johan Svedberg (johan-svedberg-com) wrote :

Thanks for reporting this. I don't understand why it is happening though. The get_font() call (line 243 in XMLTVAssistant.py seems to return None for you for some reason.

Revision history for this message
madden (linux-madfix) wrote :

How could I help you in this particular case ?
May I send back results about a specific font config on my box ?

Revision history for this message
Johan Svedberg (johan-svedberg-com) wrote :

I've asked around and apparently it returns None if the font used is the default monospace font. You could try changing the default terminal font on the system and see if that helps.

Anyway, this was only used to set the font size to be really small. I'll commit a fix to only do this if the font is known.

Revision history for this message
Johan Svedberg (johan-svedberg-com) wrote :

This is fixed in 2.6.0.

Changed in ontv:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.