lightyears crashed with AttributeError in Set()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lightyears (Ubuntu) |
Fix Released
|
Medium
|
Siegfried Gevatter |
Bug Description
Binary package hint: lightyears
Just during playing the game building some pipes it crashed as in like stopped working and I saw my desktop again. Sometime in level 6.
ProblemType: Crash
Architecture: i386
Date: Fri Feb 22 00:57:21 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/games/
InterpreterPath: /usr/bin/python2.5
Package: lightyears 1.3a-2
PackageArchitec
ProcCmdline: /usr/bin/python /usr/games/
ProcCwd: /home/jan
ProcEnviron:
LANGUAGE=
PATH=/
LANG=de_DE.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: lightyears
Title: lightyears crashed with AttributeError in Set()
Uname: Linux jan-x61 2.6.24-8-generic #1 SMP Thu Feb 14 20:40:45 UTC 2008 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev sambashare scanner video
Related branches
Changed in lightyears: | |
importance: | Undecided → Medium |
Hi,
A quick look at the code shows that the None comes from
self.schan = self.sobj.play()
and the doc of the self.sobj.play() method says:
/*DOC*/ "Sound.play([loops, [maxtime]]) -> Channel\n"
/*DOC*/ "play sound\n"
/*DOC*/ "\n"
/*DOC*/ "Starts playing a song on an available channel. If no channels are\n"
/*DOC*/ "available, it will not play and return None.
so I guess that is the case that was hit, and the None value
is not tested for.
Thanks,
James