[Bugs] #461 UNSP: Sometimes an activity will not start

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Sun Apr 5 12:38:33 EDT 2009


#461: Sometimes an activity will not start
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  erikos           
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.84             
   Component:  sugar                      |        Version:  Git as of bugdate
    Severity:  Blocker                    |     Resolution:                   
    Keywords:  r?                         |   Distribution:  Unspecified      
Status_field:  New                        |  
------------------------------------------+---------------------------------

Comment(by tomeu):

 Replying to [comment:5 alsroot]:
 > there is a race condition between ActivateActivity()[1] invoking from
 sugar-toolkit/src/sugar/activity/activityfactory.py:_launch_activity() and
 add_launcher()[2] invoking from
 sugar/src/jarabe/view/palettes.py:__start_activate_cb():
 >
 > - [2] creates new launcher window
 > - this window could be(still) not-registered before invoking [1]

 Thanks for the analysis, seems to be right.

 Your patch fixes the race, but doesn't take into account switching to an
 existing instance. The one I'm attaching should work for that as well.

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/461#comment:6>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list