Bug 63525

Summary: Macros: in macros with dialogs the use of the EndExecute function freezes libreoffice (in some circumstances)
Product: LibreOffice Reporter: pasqual milvaques <pasqual.milvaques>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: 4.0.2.2 release   
Hardware: Other   
OS: Windows (All)   
Whiteboard: BSA
i915 platform: i915 features:
Attachments: tescase to reproduce the problem

Description pasqual milvaques 2013-04-14 12:37:27 UTC
Created attachment 77947 [details]
tescase to reproduce the problem

Problem description: 
I program complex macros with complex dialogs in libreoffice. I have found that if you launch from a macro a complex dialog which has interaction with the document (changing values of the cells in a spreadsheet, for example) the invocation of the endExecute function to close dialogs is capable to hang LibreOffice. 
The probabibility for this to happen seems to be related to the complexity of the dialog, with small dialogs doesn't happen but as more big is the dialog more probable is the error to happen.
if the dialog doesn't interact with the document the problem doesn't appear (as far as I know)
I have seen the problem in Windows xp and Windows 8, I have not tested it in linux still
I have seen the problem in libreoffice 4.0.2 and 3.6.5
I attach a testcase which opens and closes a dialog 10 times. there is a button to do it with a simple dialog where the problem probably will not happen and a button for doing it with a complex dialog where the problem happen normally in the first iteration

Steps to reproduce:
1. open the testcase file
2. click the button "Launch TestCase (simple dialog)". the simple dialog will try to open and close 10 times and the cell of the left will show the iteration number
3. click the button "Launch TestCase (complex dialog)". the complex dialog will try to open and close 10 times and the cell of the left will show the iteration number

Current behavior:
Libreoffice freezes when trying to close the complex dialog programmatically in the step 3 (normally in the first try)

Expected behavior:
Libreoffice showing and closing the complex dialog 10 times. the tescase could be repeated and infinite number of times withot hanging
              
Operating System: Windows 8
Version: 4.0.2.2 release
Comment 1 pasqual milvaques 2013-04-14 13:02:05 UTC
tested in linux (fedora 18, libreoffice 3.6.5) and the problem doesn't reproduce. seems a windows specific issue
Comment 2 pasqual milvaques 2013-04-14 13:04:44 UTC

*** This bug has been marked as a duplicate of bug 59484 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.