Bug 59484

Summary: : Dialog endExecute() crash libreoffice
Product: LibreOffice Reporter: Franco Pellegrini <francogpellegrini>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: major    
Priority: medium CC: bfo.bugmail, pasqual.milvaques
Version: 3.6.4.3 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard: BSA
i915 platform: i915 features:
Attachments: Example
Example
more robust tescase to reproduce the problem
backtrace of the error extracted with windbg
analisys of the backtrace done with windbg

Description Franco Pellegrini 2013-01-16 21:48:14 UTC
Problem description: 
When I use the method endExecute() in a Dialog (to close it with a specific condition) 90% libreofice crash.

Steps to reproduce:
1. create a dialog (GUI)
2. excecute it with a button with some macro like:

Dim oDlg As Object
Sub StartDialog
oDlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1 )
oDlg.execute()
End Sub 

3. finish the dialog excecution with a button in it, excecuting the macro:

Sub CloseDialog
oDlg.endExecute()
End Sub

Current behavior:
90% crash prob 

Expected behavior:
Close the Dialog
              
Operating System: Windows 8
Version: 3.6.4.3 release
Comment 1 Markus Mohrhard 2013-01-17 15:35:19 UTC
Not even close to a blocker bug.
Comment 2 bfoman 2013-01-25 12:07:57 UTC
Could you attach any example documents with needed macro, button etc. to allow others to check on different system/build simply by downloading and opening a file? Thanks.
Comment 3 Franco Pellegrini 2013-01-27 02:18:02 UTC
Created attachment 73706 [details]
Example

here it is the example. When you press the button, the dialog close and the libreoffice crash
Comment 4 Franco Pellegrini 2013-01-27 02:20:31 UTC
Created attachment 73707 [details]
Example

Here it is (example). When you press the close button, the dialog close an then libreoffice crash.
Comment 5 Franco Pellegrini 2013-01-27 07:43:00 UTC
In ubuntu works Fine, so its a Windows version bug
Comment 6 bfoman 2013-01-28 10:15:43 UTC
(In reply to comment #4)
> Here it is (example). When you press the close button, the dialog close an
> then libreoffice crash.

Checked with:
LO 4.0.0.2
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit

Could not reproduce. Dialog closed, no crash.
Comment 7 Franco Pellegrini 2013-01-28 12:31:28 UTC
I´m using Windows 8 pro 64bits when it crash. I try to remove all the appdata info and reinstalling again, but the problem continues. I can reproduce it in another machine with the same windows version.
Comment 8 pasqual milvaques 2013-04-14 13:04:44 UTC
*** Bug 63525 has been marked as a duplicate of this bug. ***
Comment 9 pasqual milvaques 2013-04-14 13:09:53 UTC
Created attachment 77948 [details]
more robust tescase to reproduce the problem

take a look to:
https://bugs.freedesktop.org/show_bug.cgi?id=63525

for more information
Comment 10 pasqual milvaques 2013-04-14 13:16:05 UTC
I have the same problem and I reported it in bug (closed as duplicate of this one):
https://bugs.freedesktop.org/show_bug.cgi?id=63525

I add here the tescase that I created for that bug report 

the problem seems to be windows specific and doesn't happens with all dialogs and not every time you use them, with complex dialogs it's easy to reproduce. 

please, use that latest tescase submitted to see if you can reproduce the problem as that one is more exhaustive to look for the problem

thanks
Comment 11 francogpellegrini 2013-07-06 12:32:25 UTC
This can be reproduced with Libreoffice 4.0.4.2
Comment 12 francogpellegrini 2013-07-06 12:34:50 UTC
(using dispose())
Comment 13 pasqual milvaques 2014-01-25 20:04:28 UTC
Comment on attachment 77948 [details]
more robust tescase to reproduce the problem

this testcase not longer gives error with libreoffice 4.1 (at least for me)
Comment 14 pasqual milvaques 2014-01-25 20:08:51 UTC
Created attachment 92781 [details]
backtrace of the error extracted with windbg

following the guide in:
https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg

I have extracted this minidump with libreoffice 4.2.0.3
Comment 15 pasqual milvaques 2014-01-25 20:11:23 UTC
Created attachment 92782 [details]
analisys of the backtrace done with windbg

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.