Created attachment 162503 [details] Screenshot of "empty" crash dialog How to reproduce: 1. Invoke LibreOffice via the command line specifying a document that makes LibreOffice crash. 2. Observe how the "LibreOffice Document Recovery" dialog appears, even though no document has been nominally opened. 3. In particular note how the "The following files will be recovered" list is empty. I cannot reproduce this directly any longer, since the original issue (of LibreOffice choking on a presentation) has been fixed. In terms of pseudo code, the patch probably should look something like the following: - openDocumentRecoveryDialog(); + if ( globalstate.documentList.size() > 0 ) { + openDocumentRecoveryDialog(); + }
Has nothing to do with Base, the database-component of LO. Have set the component to LibreOffice.
@Heiko, @Caolán, any opinion on this issue ?
Sure, would be nice to suppress the recovery dialog in case of no documents. However, IIRC there is an empty entry in the list, perhaps when the document wasn't explicitly saved.
(In reply to Heiko Tietze from comment #3) > Sure, would be nice to suppress the recovery dialog in case of no documents. > However, IIRC there is an empty entry in the list, perhaps when the document > wasn't explicitly saved. Yes, in my case LibreOffice crashed trying to open a certain document when invoked from the command-line: libreoffice trouble.pptx So indeed nothing was ever saved in that session (nor successfully opened). When then invoking LibreOffice again the next time, the recovery dialog with an empty list of documents appears. That is what I suggest to avoid.
indeed yes, and besides, the recovery doesn't really works
Hello Gerald, Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
(In reply to Xisco Faulí from comment #6) > Hello Gerald, > Could you please try to reproduce it with the latest version of LibreOffice > from https://www.libreoffice.org/download/libreoffice-fresh/ ? > I have set the bug's status to 'NEEDINFO'. Please change it back to > 'UNCONFIRMED' if the bug is still present in the latest version. So far I could not reproduce which, alas, does not confirm the issue is gone. I just am lacking the prerequisite for step 1 of my original reproducer: "1. Invoke LibreOffice via the command line specifying a document that makes LibreOffice crash." Do you have a document that makes LibreOffice (head) crash upon start-up?
"Thanks" to bug #148735 I can confirm this is still an issue. The dialog in this case does not appear on the next startup, rather LibreOffice is shown in the same invocation, after the crash. Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: e4243a140345a4bcd800217115b42667e277c6a3 CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
I'm not sure this should "go away". It is the only indication of "why did LibreOffice quit/restart?". Suggest WONTFIX What is happening here is that some kind of error (that doesn't affect the UI) bAllowRecoveryAndSessionManagement, and so is triggering a doPrepareEmergencySave. To avoid the dialog: svx/source/unodraw/recoveryui.cxx impl_doEmergencySave() - short nRet = xDialog->run(); + short nRet = DLG_RET_OK; // no restart request + if (pCore->getURLListAccess().size()) + nRet = xDialog->run(); + return (nRet==DLG_RET_OK_AUTOLUNCH);
(In reply to Justin L from comment #9) > I'm not sure this should "go away". nRet could default to two possibilities: -DLG_RET_OK: LibreOffice will just return to the command prompt, with no indication of why it failed to start. -DLG_RET_OK_AUTOLAUNCH: it will restart to a start center (or perhaps continually restart if the crash is caused by something in the init process.) I don't like either choice. I like the current dialog that informs the user that some kind of nasty error has occurred and waits for an ACK.
(In reply to Justin L from comment #10) > I don't like either choice. I like the current dialog that informs the user > that some kind of nasty error has occurred and waits for an ACK. Could there be a different dialog, maybe just a simple message box, in case there is not a single file to recover? A dialog with a list labeled "The following files will be recovered" which, alas is empty, is confusing for users. (Or the same dialog, just saying "no documents available for recovery"?)
(In reply to Gerald Pfeifer from comment #11) > A dialog with a list labeled "The following files will be recovered" > which, alas is empty, is confusing for users. I don't find it confusing at all. There was a crash, but no files will be recovered. Plus, this apparently only occurs with command-line starts, so approximately nobody will encounter this. WONTFIX.
Dear Gerald Pfeifer, 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://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug