Opened 13 years ago

Closed 13 years ago

#2895 closed defect (fixed)

Moon activity may crash during an eclipse due to failure to cast float->int

Reported by: greenfeld Owned by: garycmartin
Priority: High Milestone: Unspecified
Component: Moon Version: 0.92.x
Severity: Major Keywords:
Cc: Distribution/OS: OLPC
Bug Status: Assigned


Depending on the version of pyGTK you have installed, the Moon activity may crash during an eclipse due to failure to cast float->int.

This has been a pretty common issue that other Sugar activities have run into, so the world is not ending (yet).

Seen with Moon version 11, OLPC 11.2.0 build 22, time set to June 15 20:00:00 GMT.

Change History (3)

comment:1 Changed 13 years ago by greenfeld

Traceback (most recent call last):
  File "/usr/bin/sugar-activity", line 21, in <module>
  File "/usr/lib/python2.7/site-packages/sugar/activity/", line 158, in main
    create_activity_instance(activity_constructor, activity_handle)
  File "/usr/lib/python2.7/site-packages/sugar/activity/", line 37, in create_activity_instance
    activity = constructor(handle)
  File "/home/olpc/Activities/Moon.activity/", line 170, in __init__
  File "/home/olpc/Activities/Moon.activity/", line 339, in update_moon_image_view
    moon_pixbuf.composite(dark_pixbuf, 0, 0, IMAGE_SIZE, IMAGE_SIZE, 0, 0, 1, 1, gtk.gdk.INTERP_BILINEAR, 196 - eclipse_alpha / 2)
TypeError: integer argument expected, got float
Exited with status 1, pid 1548 data (None, <open file '<fdopen>', mode 'w' at 0xa100bd0>, 'a7a4ad2837656aad3839cb6c51642504c1b7c17b')

comment:2 Changed 13 years ago by garycmartin

  • Bug Status changed from Unconfirmed to Assigned
  • Priority changed from Unspecified by Maintainer to High
  • Severity changed from Unspecified to Major

Beat you to it :( but thanks for the ticket here. I have a fix for this but have a couple of othersI would like to land as well.

comment:3 Changed 13 years ago by garycmartin

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.