Issue 111047

Summary: toolkit/qa/unoapi VCLXAccessibleMenuItem::doAccessibleAction deadlock
Product: gsl Reporter: Stephan Bergmann <stephan.bergmann.secondary>
Component: codeAssignee: philipp.lohmann
Status: CLOSED FIXED QA Contact: issues@gsl <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: DEV300m76   
Target Milestone: 3.4.0   
Hardware: Mac   
OS: Mac OS X, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
deadlocking stacks none

Description Stephan Bergmann 2010-04-21 15:08:08 UTC
At least on CWS sb120 (mainly making changes to the testing framework),
executing the toolkit/qa/unoapi tests repeatedly deadlocks at least under
unxmacxi non-pro with the attached stacks.txt when doing

checking:
[toolkit.AccessibleMenu::com::sun::star::accessibility::XAccessibleEventBroadcaster]
is iface: [com.sun.star.accessibility.XAccessibleEventBroadcaster] testcode:
[ifc.accessibility._XAccessibleEventBroadcaster]
LOG> Execute: addEventListener()
LOG> adding listener
LOG> fire event
Comment 1 Stephan Bergmann 2010-04-21 15:08:46 UTC
Created attachment 69031 [details]
deadlocking stacks
Comment 2 Stephan Bergmann 2010-04-21 15:28:59 UTC
worked around for now by disabling the affected tests in
toolkit/qa/unoapi/toolkit.sce, see
<http://hg.services.openoffice.org/cws/sb120/rev/e8b5766f7e32>; please revert
when fixing this issue
Comment 3 philipp.lohmann 2010-06-04 13:47:52 UTC
target
Comment 4 philipp.lohmann 2010-07-26 12:20:37 UTC
The reason for this is that vcl's menus can be popped up without modality
whereas mac's naitve menus cannot. The resulting deadlock from the original
report could be worked around by executing the native menu only in the solar
thread; but that is not a fix for the issue at hand: now the menu runs until the
user closes it (selecting an entry or clicking outside), which also brings the
test to a halt.

The workaround now is to not use the native menus in this case; instead using
normal vcl menus. This does not test the actual product anymore, but actually
the testtool needs to do the same for similar reasons (actually testtool's case
is more involved, but I digress). I don't know however whether there will be
further side effects in this case given that now vcl popups are used without a
vcl menubar. Some testing did not result in immediate problems however and the
test at least runs through.

fixed in CWS pl07
Comment 5 Stephan Bergmann 2010-07-28 09:05:00 UTC
see issue 113489 for a follow-up problem
Comment 6 Stephan Bergmann 2010-08-13 09:22:23 UTC
verified (fix was transplanted to CWS sb127, which was run many times on many
machines to check subsequenttests status)
Comment 7 philipp.lohmann 2010-08-30 17:44:03 UTC
seen in DEV300m87, closing