Bug 152002 - LibreOffice process fails to get destroyed
Summary: LibreOffice process fails to get destroyed
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-11 09:41 UTC by Chinmay Totekar
Modified: 2022-11-11 21:36 UTC (History)
2 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 Chinmay Totekar 2022-11-11 09:41:23 UTC
Description:
We recently upgraded to LibreOffice 7.4.2 from 7.0.4 
We use following code to convert an excel to pdf/html

   ProcessBuilder   pb =
          new ProcessBuilder(
              installDir,
              "--accept=socket,host=localhost,port="
                  + port.getPort()
                  + ";urp;StarOffice.ServiceManager",
              "--invisible",
              "--headless",
              "--nologo",
              "--nofirststartwizard",
              "-env:UserInstallation=file:///C:/OpenOfficeTemp/8200);

final Process process = pb.start();

OpenOfficeConnection connection = new com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection(port.getPort());
connection.connect();
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);

//Finally destroy process
process.destroy();

sometimes process keeps running on port 8200 and does not get killed. So the next process fails to start. It worked perfectly fine when using LibreOffice 7.0.4  for more than 3 years without any issues. 

Steps to Reproduce:
1. Keep the above code running on a windows machine for 30-40 times a day for converting an excel to pdf/html.
2. once the issue starts occurring , you can see it happening for next few days.
3. We have this process running on multiple nodes, and every day it will be seen on a new node and will be seen for next few days on that node almost 80%of the times.

Actual Results:
It fails 60-80% of the time.

Expected Results:
It should work 100% of the times.


Reproducible: Sometimes


User Profile Reset: No

Additional Info:
It's happenning on windows machines running JDK 11.0.6 and windows server 2012 R2
Comment 1 Telesto 2022-11-11 21:36:26 UTC
Well I'm aware of this kind of issue after a second crash. So LibreOffice crashes. You restart LibreOffice again. On the next crash soffice.bin keeps running..

Timeframe of introduction matches with my experiences. I reported it a couple of times. However the direct cause of crash gets fixed...