Bug 94046 - UNO API LibreOffice Writer Process hang / freeze C#
Summary: UNO API LibreOffice Writer Process hang / freeze C#
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: x86-64 (AMD64) Windows (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 06:48 UTC by Tahir Nazir
Modified: 2018-03-02 10:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tahir Nazir 2015-09-09 06:48:23 UTC
I have an appication in which I fill the OpenOffice text document using bookmarks and then save them as PDF (C#, .NET 4.0, VS 2010). The problem is that when the document filled first time then everything works fine but after closing the document using API and open new document and try to fill ( Automatically using Uno API) then Uno API process won't get response from LibreOffice.

Mean second time LibreOffice process won't response on writng bookmarks and my application process wait for the response of LibreOffice. This results in hang in my application, as my process wait indefinitely response from Uno API (and may be Uno API wait for response from running LibreOffice process).

The file is loaded from a template and bookmarks are filled. Program is started using 

soffice -accept=pipe,name=myPipeName;urp;StarOffice.ServiceManager -nodefault -nologo -nofirststartwizard -norestore

using UnoUrlResolver I have connected to running office instance. It is may be some bug in Uno API thread or what can be the reason?
Comment 1 Tahir Nazir 2015-09-10 14:26:32 UTC
I have an appication in which I fill the OpenOffice text document using bookmarks and then save them as PDF (C#, .NET 4.0, VS 2010). The problem is that when the document filled first time then everything works fine but after closing the document using API and open new document and try to fill ( Automatically using Uno API) then Uno API process won't get response from LibreOffice.

Mean second time LibreOffice process won't response on writng bookmarks and my application process wait for the response of LibreOffice. This results in hang in my application, as my process wait indefinitely response from Uno API (and may be Uno API wait for response from running LibreOffice process).

The file is loaded from a template and bookmarks are filled. Program is started using 

soffice -accept=pipe,name=myPipeName;urp;StarOffice.ServiceManager -nodefault -nologo -nofirststartwizard -norestore

using UnoUrlResolver I have connected to running office instance. It is may be some bug in Uno API thread or what can be the reason?

As in Apache OpenOffice this bug solving procedure is written 
https://bz.apache.org/ooo/show_bug.cgi?id=32051 using "Negotiate=0,ForceSynchronous=1". I have tested my code with Apache OpenOffice program and there was no problem. But with LibreOffice I have started the process by including these two parameters but still it hang.
Comment 2 QA Administrators 2016-11-08 10:42:52 UTC Comment hidden (obsolete)
Comment 3 Xisco Faulí 2017-07-27 10:16:15 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2018-01-29 10:27:58 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2018-03-02 10:06:24 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20180302