#10016 LOW 1.5-sof: os109 -- Icon in Frame did not have session associated with it
Zarro Boogs per Child
bugtracker at laptop.org
Tue Feb 9 23:43:21 EST 2010
#10016: os109 -- Icon in Frame did not have session associated with it
--------------------------------+-------------------------------------------
Reporter: mikus | Owner: dsd
Type: defect | Status: new
Priority: low | Milestone: 1.5-software-later
Component: sugar | Version: Development build as of this date
Resolution: | Keywords:
Next_action: diagnose | Verified: 0
Deployment_affected: | Blockedby:
Blocking: |
--------------------------------+-------------------------------------------
Comment(by Quozl):
I've a different understanding of the race condition now.
The ''sugar-session'' process is accepting X events for user actions as
well as D-Bus events.
The logic that avoids resuming the same activity twice is built on the
shell's list of active activities: shell._activities[]
This list is added to when the shell receives a D-Bus NotifyLaunch method
call event from the activity factory. (It is also added to when a
launcher or activity window with an activity id property is created, but
the NotifyLaunch would normally happen first).
Now, the activity factory executes in the context of the same ''sugar-
session'' process ... as a result of the user clicking on an icon.
The race is between processing the D-Bus NotifyLaunch event and the X
events from the touchpad buttons. If the X events arrive before the D-Bus
event queue is checked, then the same journal entry will be resumed more
than once.
The race is only relevant for resumed activities, since these are given
the same activity id.
--
Ticket URL: <http://dev.laptop.org/ticket/10016#comment:9>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list