Bug 85651 - Writer crashes when a MailMerge instance is created in C#
Summary: Writer crashes when a MailMerge instance is created in C#
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version: 4.3.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium major
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-30 14:06 UTC by APS
Modified: 2015-01-05 18:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description APS 2014-10-30 14:06:56 UTC
Writer crashes on close everytime I open a document, manually or programmatically, after having created an instance of a MailMerge object using CLI-uno.

Step to reproduce:
- Create a small C# app that does the following:

            XComponentContext context = Bootstrap.bootstrap();
            XMultiServiceFactory msf = (XMultiServiceFactory)context.getServiceManager();

            //Create the Mail Merge service
            object mailMerge = msf.createInstance("com.sun.star.text.MailMerge");
            ((XComponent)mailMerge).dispose();

            //Open document
            XComponentLoader componentLoader = (XComponentLoader)msf.createInstance("com.sun.star.frame.Desktop");
            componentLoader.loadComponentFromURL(new Uri(System.Environment.CurrentDirectory + @"/test/test1.odt").AbsoluteUri, "_blank", 0, new PropertyValue[] { });

- Close writer.
- You receive an error. Inside Event Viewer you find:

Faulting application name: soffice.bin, version: 4.3.1.2, time stamp: 0x53fc7a22
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x53159a86
Exception code: 0x00000000
Fault offset: 0x0000c42d
Faulting process id: 0x159c
Faulting application start time: 0x01cff446b33c683d
Faulting application path: C:\Program Files (x86)\LibreOffice 4\program\soffice.bin
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: f895de58-6039-11e4-b725-047d7b95035d

The same error is thrown even if you open a document manually, without using loadComponentFromURL but keeping the test program opened.
Comment 1 APS 2014-10-30 15:58:09 UTC
The problem is present also in version 4.3.2 and 4.3.3. With version 4.3.3 is possible to enable Quickstart and with this feature the error doesn't show up.
The strange thing is that I tested many PCs and configuration and only in a couple of PCs I'm not able to reproduce the error, maybe is related to some library installed there.
Comment 2 QA Administrators 2015-01-05 18:41:54 UTC
Hi APS - can you please attach a document and the small C# app that you describe. It's always easier to reproduce if you attach all relevant attachments and then provide simple steps on how to reproduce.

Also, do you happen to know if this was a problem prior to 4.1? 

Marking as NEEDINFO -once you provide the attachments please set to UNCONFIRMED. Thanks!


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.