Bug 145168 - Closing a document newly created from a template crashes LO (but no crash dump)
Summary: Closing a document newly created from a template crashes LO (but no crash dump)
Status: RESOLVED DUPLICATE of bug 145950
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL: https://drive.protonmail.com/urls/W66...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-16 11:44 UTC by Jon R Kibler
Modified: 2022-02-05 16:20 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Close new document from template crashes LO (9.67 MB, application/zip)
2021-10-16 11:44 UTC, Jon R Kibler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon R Kibler 2021-10-16 11:44:37 UTC
Created attachment 175782 [details]
Close new document from template crashes LO

First occurred on 7.2.1.2, then upgraded to 7.2.2.2 and still occurs
macOS 10.14.6 (18G9323)

Attached video shows issues, with one exception... it doesn't show the CMD-W which actually closes the template.

Steps to reproduce:
Open LO.
In startcenter, choose Templates, and click on a template to open.
Then close what you just opened (seen as close on Windows menu).
But, document doesn't actually close (you can't see from screen scrape, but LO menu becomes just "File Tools Windows" after the close attempt).
Since document didn't really close, do a CMD-W to close it and document closes.
Then try to create another document from templates and LO crashes.

At this point, any attempt to create from a template fails until LO quits and restarts (not shown in video).

Attaching the template used as URL
Comment 1 Jon R Kibler 2021-10-16 11:45:40 UTC
URL is zip of template used.
Comment 2 Jon R Kibler 2021-10-17 00:45:36 UTC
Note: I suspect that bugs 145167 https://bugs.documentfoundation.org/show_bug.cgi?id=145167 and 145168 https://bugs.documentfoundation.org/show_bug.cgi?id=145168 are related.
Comment 3 Julien Nabet 2021-10-17 08:47:07 UTC
Just for the record, on pc Debian x86-64 with master sources updated today, I don't reproduce this.
When I launched LO, after having opened a template for Writer, I got only 1 document, not 2 like you so I didn't continue the test.
Perhaps LO Macos only bug?
Comment 4 Jon R Kibler 2021-10-17 10:22:43 UTC
I think the video of the document is misleading because screencap does not show the title bar ("feature" of screen cap?).

What is actually happening is that it is only creating a single document. When I close the document (CMD-W or Window-->Close) it actually closes the document and the title bar reverts to "File Tools Window" and the document area shows a document. But, if you look at Windows, there is no document. You also can't do a "Close" from the Windows menu, because it thinks there is no document. You can't edit or manipulate what appears to be a document... but CMD-W will close it.

Also, trying to recover a non-existent document after LO crashes is another indicator that the "second document" never existed to begin with.

As I noted previously, I think there is a bug (macOS specific?) in the way that creating a document from a template works. This is the second of two bugs I filed regarding that issue (see above in bug flow).

Bottom line: Trying to create stuff as new documents from Templates is flaky, but creating by other paths (e.g., New document, then apply template) works flawlessly.


Now, a debugging question: When LO crashes, I get no crash dump. Why? How can I force it to generate a crash dump so there is something a little more substantial to work from to debug this?? Thanks!
Comment 5 Jon R Kibler 2021-11-29 15:44:06 UTC
I have found that this bug is caused by the Mac OS Extended Journaled File System. I have several other crashes apparently caused by the same or related problems.

These bugs have been consolidated into bug 145950.

Please let me know if you require additional information.
Comment 6 eisa01 2022-02-05 16:20:11 UTC
Setting as duplicate of the new master bug

*** This bug has been marked as a duplicate of bug 145950 ***