bugchildsplay - Bugs: bug #42250, Childsplay raises an Exception...

 
 

bug #42250: Childsplay raises an Exception when trying to improve difficulty in billard

Submitted by:  shirish <shirish>
Submitted on:  Wed 30 Apr 2014 11:46:44 PM UTC  
 
Category: NoneSeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Stas Zytkiewicz <childsplay>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 01 May 2014 08:42:08 AM UTC, comment #1:

Fixed in GIT.
New release follows

Stas Zytkiewicz <childsplay>
Project AdministratorIn charge of this item.
Wed 30 Apr 2014 11:46:44 PM UTC, original submission:

Hi all,
I was trying to improve the difficulty of the billard game by manually manipulating the star system above when the below exception and traceback occured :-

2014-05-01 04:31:18,867 - childsplay.SPSpriteUtils_lgpl.SPSprite - ERROR - Callback function <bound method StarButton._start_dlg of <StarButton sprite(in 0 groups)>> failed
Traceback (most recent call last):
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPSpriteUtils.py", line 297, in update
cb = apply(self._callback, (self, event, self._args))
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPWidgets/buttons.py", line 699, in _start_dlg
self.cbf(sprite, event, result - (self.minimallevel - 1))
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 902, in menubar_dice_cbf
self.activity_level_end(nextlevel=data, score_audit=False)
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1108, in activity_level_end
sc = self.activity.get_score(stime)
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/lib/billiard.py", line 354, in get_score
score = max(1,10 *(float(self.n_balls)/self.tries)-(seconds/100.0))
ZeroDivisionError: float division by zero
2014-05-01 04:31:18,869 - childsplay.SPSpriteUtils_lgpl.SPSprite - ERROR - float division by zero
2014-05-01 04:31:18,869 - childsplay.childsplay - ERROR - unhandled exception in toplevel, traceback follows:
Traceback (most recent call last):
File "childsplay.py", line 219, in <module>
mcgui.start()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 512, in start
self.start_main_loop()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1364, in start_main_loop
self.start_pre_level_loop()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1442, in start_pre_level_loop
self.start_activity_loop()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1478, in start_activity_loop
self._main_loop()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1505, in _main_loop
self.activity.loop(events)
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMenu.py", line 415, in loop
self.actives.update(event)
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPSpriteUtils.py", line 634, in update
v = a(s.update, args)
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPSpriteUtils.py", line 297, in update
cb = apply(self._callback, (self, event, self._args))
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMenu.py", line 312, in menu_callback
self.SPG._menu_activity_userchoice(data[0])
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1308, in _menu_activity_userchoice
self.load_activity(activity)
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 609, in load_activity
self.start_main_loop()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1364, in start_main_loop
self.start_pre_level_loop()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1442, in start_pre_level_loop
self.start_activity_loop()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1478, in start_activity_loop
self._main_loop()
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPMainCore.py", line 1499, in _main_loop
self.actives_group.update(event)
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPSpriteUtils.py", line 634, in update
v = a(s.update, args)
File "/data/shirish/Games/debian-packaging-dir/childsplay-2.6/SPSpriteUtils.py", line 301, in update
raise Exception
Exception

Sharing below my configuration :-

$ python childsplay.py --version
['childsplay.py', '--version']
No binary
------------------------------------------------------------
Childsplay version: 2.6
Platform :linux2
Python version: 2.7.6 (default, Mar 22 2014, 15:40:47)
Pygame version: 1.9.1release
SDL version: 1.2.15
Sqlalchemy version: 0.9.4
------------------------------------------------------------

Hopefully this will be helpful in understanding where it went wrong.

shirish <shirish>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by childsplay (Updated the item)
  • -unavailable- added by shirish (Submitted the item)
  • -unavailable- added by shirish
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 May 2014 08:42:08 AM UTCchildsplayStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Thu 01 May 2014 06:21:10 AM UTCchildsplaySeverity3 - Normal=>4 - Important
      StatusNone=>In Progress
      Assigned toNone=>childsplay
    Wed 30 Apr 2014 11:46:44 PM UTCshirishCarbon-Copy-=>Added shirish

    Back to the top


    Powered by Savane 3.1-cleanup1