Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#14 Arithmetic N-back crashes on two dots in a row

closed
nobody
None
5
2012-04-06
2010-04-29
Anonymous
No

This bug looks like it's reproductible. Open Arithmetic N-back, and type two dots as answer.

Here's the traceback:

Traceback (most recent call last):
File "/usr/share/brainworkshop/brainworkshop.pyw", line 4745, in <module>
pyglet.app.run()
File "/usr/share/brainworkshop/pyglet/app/__init__.py", line 264, in run
EventLoop().run()
File "/usr/share/brainworkshop/pyglet/app/xlib.py", line 83, in run
window.dispatch_platform_event(e)
File "/usr/share/brainworkshop/pyglet/window/xlib/__init__.py", line 1169, in dispatch_platform_event
event_handler(e)
File "/usr/share/brainworkshop/pyglet/window/xlib/__init__.py", line 1323, in _event_key
self.dispatch_event('on_key_press', symbol, modifiers)
File "/usr/share/brainworkshop/pyglet/window/__init__.py", line 1217, in dispatch_event
EventDispatcher.dispatch_event(self, *args)
File "/usr/share/brainworkshop/pyglet/event.py", line 340, in dispatch_event
if handler(*args):
File "/usr/share/brainworkshop/brainworkshop.pyw", line 4547, in on_key_press
arithmeticAnswerLabel.input('.')
File "/usr/share/brainworkshop/brainworkshop.pyw", line 2676, in input
self.update()
File "/usr/share/brainworkshop/brainworkshop.pyw", line 2641, in update
str_list.append(str(self.parse_answer()))
File "/usr/share/brainworkshop/brainworkshop.pyw", line 2661, in parse_answer
result = Decimal(chars)
File "/usr/lib/python2.6/decimal.py", line 545, in __new__
"Invalid literal for Decimal: %r" % value)
File "/usr/lib/python2.6/decimal.py", line 3719, in _raise_error
raise error(explanation)
decimal.InvalidOperation: Invalid literal for Decimal: '51..'

Discussion

  • Ashwin Menon
    Ashwin Menon
    2011-12-29

    I have written a possible fix to this, but am not able to attach the files. Where do I do that?

     
  • Ashwin Menon
    Ashwin Menon
    2012-04-06

    • status: open --> closed
     
  • Ashwin Menon
    Ashwin Menon
    2012-04-06

    Thanks for the error, it has been fixed now.