Problem description: Steps to reproduce: 1. DISPLAY= libreoffice anyfile.ods # you get an error 2. libreoffice anyfile.ods # no error, but nothing starts 3. ps xa | grep libreoffice # you find stale process Current behavior: A process remains alive even if attempt to open the display failed, and presence of such process prevents any subsequent invocations of the executables from starting. Expected behavior: Error is fatal, cleans up and exits. Platform (if different from the browser): Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
Is this still an issue in the latest stable release of LibreOffice and Ubuntu?
The behavior is slightly different with 3.6.0.2 in that running with no DISPLAY set doesn't return control to the console but rather keeps the process in foreground thus making it easier to kill it (^C). Still, if you send the process to the background next invocation of libreoffice "hooks" on the pre-existing process and silently fails starting up anything. I think the correct behavior should be to error out and return to console if DISPLAY can't be connected to.
(In reply to comment #2) > The behavior is slightly different with 3.6.0.2 Well, as LibreOffice 3.6.x is nearing its EndOfLife (last 3.6.6 version will be released Week 15, Apr 8 - Apr 14, 2013, with code freeze Week 12, Mar 18 - Mar 24, 2013), it would be best to check latest 4.0.x version or master build (even better).
Dear Bug Submitter, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/FDO/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team
I just tried again, this time with LibreOffice 4.0.3.3 and the behavior is very similar, except that the first invocation doesn't go in the background, after the error, but rather sits there waiting for you to put the process on the background or kill it. If you put the process in the background the rest of the steps will keep silently failing. I think the expected behavior is still to make the error fatal so that the process cleansup and exits, rather than sitting there forever. What do you think ?
Can you let me know why you would run libreoffice with Display= ?
No reason to run with DISPLAY unset, is just an accident. Can happen (re-attaching a screen session created outside X from into an X environment), and when it happens it makes you unable to recover other than killing the stale process.
Remove comma from whiteboard
CONFIRMED on Ubuntu 12.04.3 + LO 4.2.0.4 (and LO 3.5.7, to see if this is a regression) (In reply to comment #7) > No reason to run with DISPLAY unset, is just an accident. Can happen > (re-attaching a screen session created outside X from into an X > environment), and when it happens it makes you unable to recover other than > killing the stale process. There are situations in which one wants to run a headless instance of LibreOffice -- e.g. when using it as a daemon for document conversion -- but it seems unlikely that one would want to run LibreOffice without passing-in parameters to directly convert a document, '--headless', or some other parameter(s) for making remote connection possible. cc'ing Thorsten on this one -- we'll talk about it later
(In reply to comment #9) > CONFIRMED on Ubuntu 12.04.3 + LO 4.2.0.4 (and LO 3.5.7, to see if this is a > regression) > Sorry, only getting back to this now - I *cannot* reproduce, neither with the distro-provided, nor with a self-built LibreOffice: This is what happens here: $ DISPLAY= libreoffice dummy.ods Failed to open display /usr/lib64/libreoffice/program/soffice.bin X11 error: Can't open display: Set DISPLAY environment variable, use -display option or check permissions of your X-Server (See "man X" resp. "man xhost" for details) , then LibO exits properly, no processes left hanging or something (4.1.4 and 4.2 alpha).
Confirmed again with LibreOffice 4.1.3.2 410m0(Build:2) provided by distro Ubuntu 13.10
@Thorsten - what additional information might be helpful to move this along?
(In reply to comment #12) > @Thorsten - what additional information might be helpful to move this along? Dunno - so this is confirmed to happen with even an upstream LibreOffice, on pretty much any Ubuntu? And this is in some terminal window (no screen, tmux, anything), and the 'libreoffice' command just sits there? Or is there some output meanwhile? Or does it cleanly exit (not even an error code)?
Just tried outside of screen(1), same problem. So now straight from GNOME Terminal 3.6.1 The only output is: Failed to open display Control not returned to prompt, libreoffice just sits there, stopped: 5640 pts/17 Sl 0:00 /usr/lib/libreoffice/program/oosplash /var/lib/gems/1.9.1/gems/roo-1.12.1/test/files/whitespace.ods 5660 pts/17 Sl 0:00 /usr/lib/libreoffice/program/soffice.bin /var/lib/gems/1.9.1/gems/roo-1.12.1/test/files/whitespace.ods
(In reply to comment #14) > Control not returned to prompt, libreoffice just sits there, stopped: > 5640 pts/17 Sl 0:00 /usr/lib/libreoffice/program/oosplash > /var/lib/gems/1.9.1/gems/roo-1.12.1/test/files/whitespace.ods > 5660 pts/17 Sl 0:00 /usr/lib/libreoffice/program/soffice.bin > /var/lib/gems/1.9.1/gems/roo-1.12.1/test/files/whitespace.ods > Thanks, that helps a bit to narrow it down: - ubuntu-built LibreOffice - possibly the splash screen hanging
(In reply to comment #14) > Just tried outside of screen(1), same problem. > Now for completeness, can you try an upstream version of LibreOffice (libreoffice.org/download)?
It took some time building, but here it goes: [strk:/usr/src/libreoffice/core(master)] DISPLAY= instdir/program/soffice /var/lib/gems/1.9.1/gems/roo-1.12.1/test/files/whitespace.ods Failed to open display ^C [strk:/usr/src/libreoffice/core(master)] This is master branch ec3c9a5f7fd04327697d50505ac56fcfbb71ca45
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.0.5 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-09-03
Still confirmed as of version 4.2.8.2
4.2.8.2 is pretty old still. Can you try with 5.0?
Not easily. Can you? It's pretty simple to reproduce
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.1.5 or 5.2.1 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20160920
Dear Sandro Santilli, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Very old and reported when there were problems starting LO, now we shouldn't have these problems. I close.