Bug 114458 - Can't finished the job. Application Just keep running
Summary: Can't finished the job. Application Just keep running
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-14 10:49 UTC by Leon
Modified: 2018-10-09 11:31 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 Leon 2017-12-14 10:49:03 UTC
I am web soft engineer. I use C# to develop software. I use LibreOffice to shift file. My program call the LibreOffice software to shift file. in the local everything is work,but when I release my program to Microsoft IIS the program Just keep running. The LibreOffice soft doesn't finish the shift . Just keep running. even Fresh branch or still Branch.

My environment:
Server OS: win Server2012
IIS:7

Please replay my problem, thanks.
Comment 1 Xisco Faulí 2018-01-24 10:08:16 UTC
Hi Leon,
Could you share how your program calls LibreOffice?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' once the question has been answered
Comment 2 Leon 2018-01-26 01:41:34 UTC
I'm very glad to receive your email. I really appreciate.
I post my brief main code. I use C# to call the LibreOffice.exe to  change my file. But just keep running and I didn't see the any error message.
Here is my code below.

// Just use C# Process to execute the  LibreOffice.exe
            startInfo.FileName = ConfigurationManager.AppSettings["LibreOfficeExePath"];
            startInfo.WorkingDirectory = outputDir;
            startInfo.WindowStyle = ProcessWindowStyle.Hidden;
            startInfo.Arguments = string.Format(" -headless -convert-to {1} 
                                  {0}", inputFilePath, extensionParameter);
            startInfo.RedirectStandardError = true;
            startInfo.RedirectStandardOutput = true;
            startInfo.Verb = "runas";

 using (Process exeProcess = Process.Start(startInfo))
            {
                var errorMessage = exeProcess.StandardError.ReadToEnd();
                var streamMessage = exeProcess.StandardOutput.ReadToEnd();
                File.AppendAllText(@"E:\BackUp\BackUpLog.txt", 
                $@"\r\n{errorMessage}\r\n{streamMessage}");
                exeProcess.WaitForExit();
            }

My program just keep waiting the LibreOffice.exe return some command. 
This code ====>  Process.Start(startInfo)  into the LibreOffice.exe to change file then never reach this code ====>  exeProcess.WaitForExit();
 I think my program doesn't receive any response, so just keep waiting for LibreOffice.exe return some information.

This my problem I posted in stackoverflow but no one can fix this problem. Please check this link. Hope you can get more information.
https://stackoverflow.com/questions/47824861/use-c-sharp-process-to-shift-the-file-to-odflibreoffice
Comment 3 Xisco Faulí 2018-01-26 11:47:27 UTC
Hi Leon,
Does it work if you call LibreOffice from the terminal ?
Comment 4 Leon 2018-01-29 03:22:51 UTC
Hello,

I'm not sure that what the terminal  mean is?
I can run normally in local when I develop the program. My program can call the LibreOffice work correctly in local. but I release my program to the server IIS.
I can see my program call the LibreOffice work normally. I can see the LibreOffice running in the task manager. but my program just keep run. because my program doesn't receive the LibreOffice  return a result or any error message.
Just keep running...

Best Regards,
Leon.
Comment 5 Aron Budea 2018-02-20 04:34:54 UTC
The problem is no one here has a setup like you, and won't be able to tell why it's working differently in IIS. The best chance for you is to build yourself a debug build from the current development branch, attach a debugger to it while it's running in IIS (if that's possible), and see where it stalls during exit, and what differs from normal execution.
Comment 6 QA Administrators 2018-09-03 14:50:06 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2018-10-09 11:31:46 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-20181009