#12108 NORM 4-softw: Activity crashes on launch of B1 prebuild
Zarro Boogs per Child
bugtracker at laptop.org
Mon Sep 17 23:10:13 EDT 2012
#12108: Activity crashes on launch of B1 prebuild
--------------------+-------------------------------------------------------
Reporter: cjb | Owner: erikos
Type: defect | Status: new
Priority: normal | Milestone: 4-software
Component: sugar | Version: not specified
Keywords: | Next_action: diagnose
Verified: 0 | Deployment_affected:
Blockedby: | Blocking:
--------------------+-------------------------------------------------------
Hi,
We received this log from Gary Su:
{{{
1347936348.000600 WARNING root: No Gtk.AccelGroup in the top level window.
Traceback (most recent call last):
File "/usr/bin/sugar-activity", line 154, in <module>
main()
File "/usr/bin/sugar-activity", line 149, in main
instance = create_activity_instance(activity_constructor,
activity_handle)
File "/usr/bin/sugar-activity", line 36, in create_activity_instance
activity = constructor(handle)
File "/home/olpc/Activities/Paint.activity/OficinaActivity.py", line
106, in __init__
toolbar_box = DrawToolbarBox(self)
File "/home/olpc/Activities/Paint.activity/toolbox.py", line 110, in
__init__
tools_builder = ToolsToolbarBuilder(self.toolbar, self._activity)
File "/home/olpc/Activities/Paint.activity/toolbox.py", line 256, in
__init__
self._stroke_color = ButtonStrokeColor(activity)
File "/home/olpc/Activities/Paint.activity/widgets.py", line 218, in
__init__
self.create_palette()
File "/home/olpc/Activities/Paint.activity/widgets.py", line 239, in
create_palette
self._palette = self.get_child().create_palette()
File "/usr/lib/python2.7/site-packages/sugar3/graphics/colorbutton.py",
line 92, in create_palette
primary_text=self._title)
File "/usr/lib/python2.7/site-packages/sugar3/graphics/colorbutton.py",
line 284, in __init__
self._build_swatches()
File "/usr/lib/python2.7/site-packages/sugar3/graphics/colorbutton.py",
line 329, in _build_swatches
icon_size=Gtk.IconSize.LARGE_TOOLBAR)
File "/usr/lib/python2.7/site-packages/sugar3/graphics/colorbutton.py",
line 72, in __init__
self.drag_source_set(Gdk.EventMask.BUTTON1_MASK |
Gdk.EventMask.BUTTON3_MASK,
AttributeError: type object 'GdkEventMask' has no attribute 'BUTTON1_MASK'
Exited with status 1, pid 1651 data (None, <open file '<fdopen>', mode 'w'
at 0xf9d808>, 'ff466b335533a741af91a0c5bc637a4bbaf5d0f2')
}}}
When this happens, the activity fails to launch. Gary says it is
reproducable by opening and closing activities (even the same activity)
for a while. This crash was from Paint.
I can't think why GdkEventMask would suddenly be missing BUTTON1_MASK.
Could it be related to the touchscreen?
--
Ticket URL: <http://dev.laptop.org/ticket/12108>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list