MantisBT - Scoring Application Prototype
View Issue Details
0000002Scoring Application Prototype[All Projects] Generalpublic2014-05-10 11:292014-05-27 18:38
administrator 
ptrue 
normalmajorrandom
resolvedfixed 
 
Sprint #4Sprint #4 
0000002: StaffAddAboveActionGUITest execution is hanging somtimes
StaffAddAboveActionGUITest execution is hanging sporadically. There also might be an exception about concurrent changes. Something with synchronize?

This dosen't happen with other tests nor with the manual run.

As a result builds on jenkins also may hang.
No tags attached.
Issue History
2014-05-10 11:29administratorNew Issue
2014-05-10 11:29administratorStatusnew => assigned
2014-05-10 11:29administratorAssigned To => administrator
2014-05-10 11:37administratorSeverityminor => major
2014-05-10 11:37administratorDescription Updatedbug_revision_view_page.php?rev_id=2#r2
2014-05-11 02:58administratorNote Added: 0000002
2014-05-14 00:30ptrueAssigned Toadministrator => ptrue
2014-05-14 00:59ptrueNote Added: 0000004
2014-05-14 02:02administratorTarget Version => Sprint 0000004
2014-05-14 02:04administratorStatusassigned => new
2014-05-14 02:04administratorAssigned Toptrue =>
2014-05-14 02:04administratorStatusnew => assigned
2014-05-14 02:08administratorAssigned To => administrator
2014-05-14 02:10administratorAssigned Toadministrator => ptrue
2014-05-14 11:09ptrueNote Added: 0000005
2014-05-14 20:22ptrueNote Added: 0000006
2014-05-14 20:22ptrueStatusassigned => resolved
2014-05-14 20:22ptrueResolutionopen => fixed
2014-05-27 18:38administratorFixed in Version => Sprint 0000004

Notes
(0000002)
administrator   
2014-05-11 02:58   
There might be two problems:
1) Caret is blinking and redrawing the whole page in any moment, it could be after the new staff and bracket have already been added but recalculate() is not yet called;
2) Undo/Redo actions enablement is updated before recalculate is done but it calls repaint!
(0000004)
ptrue   
2014-05-14 00:59   
Both mentioned above are fixed, so there is some third reason which calls repaint before recalculation is done.
(0000005)
ptrue   
2014-05-14 11:09   
Solution: synchronize paint and commands (including recalculation and other changes). Put commands to the thread, add lock in the document, let command thread wait until paint thread finish and let paint thread wait until command thread finish.
(0000006)
ptrue   
2014-05-14 20:22   
Fixed in build #145 by synchronizing all document operations.