Bug 147597 - File crashed when using "Toggle Print Preview"
Summary: File crashed when using "Toggle Print Preview"
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-22 17:28 UTC by Sion
Modified: 2022-12-21 03:20 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 Sion 2022-02-22 17:28:50 UTC
Description:
Sorry for long text, but too much information might be better than too little?
Also, i don't know why it crashed, so I don't know what parts are relevant, so i add all of them.
I added HEADINGS for easier read & search.


ERROR DESCRIPTION OVERVIEW:
I created a ("normal") file that crashed Libre Office Writer to desktop when I used "Toggle Print Preview" & it repeatedly failed to recover the file (infinite loop?), until the 3'rd attempt, after a successful "hard"-save (not just working with a temp file). 


FILE ACCESS:
I was hoping I could attach that file to here, but i don't see how to do it?

The best I can do is a Google Drive link then.
The file will be removed in a few weeks, make sure to copy what you all need to this bug report, or solve the file access in some way.

FILE LINK:
https://drive.google.com/drive/folders/11aSb71dWDu0EI4P-XruR3cBrvLg0N_gQ?usp=sharing


CRASH REPORTS:

https://crashreport.libreoffice.org/stats/crash_details/69677273-fdab-4233-9420-30777c037a86

https://crashreport.libreoffice.org/stats/crash_details/a726c2af-5bec-4f75-90ca-1a931dfa63c9


DATA:
Versions:
Libre Office Writer & Calk: 7.0.3.1 
Libre Office Writer & Calk Build: 
https://git.libreoffice.org/core/+log/d7547858d014d4cf69878db179d326fc3483e082
OS: Windows 7 Home Premium, 64-bit


ERROR DESCRIPTION DETAILED:
The crash occurred when I used "Toggle Print Preview" on this file.
I'm not sure if this is repeatable with this file (don't want to try right now), or if the file has to be re-created as an unsaved temp-file.

When the file crashed, there were 3 processes running in each other (forgot the names, but they seamed related to the file-restoration process), one was running continuously, I think it used like 1% CPU or something, not much.

When i tried to restart Libre Office Writer, I got a message about it needing to restore the files, i pressed Ok & it just Started & crashed & restarted & crashed infinitely, so I killed that process tree (it was running as a separate file different from the files described above), and also killed the previously mentioned process tree.

Then I restarted Writer again, got the restore question, yes, then it managed to restore the Calc file that I used to generate the letters with, but it could save the Writer file to the hard-drive this time as "Unnamed".

I tried open the "Unnamed" file, it wanted to restore, yes, and this time it actually worked, so I saved the file with a real name, and that's the file I share in drive.


FILE CREATION QUIRKS:
The most strange things I did to this file was generating the alphabet with Libre Office Calk, I generated the alphabet by flowing the answer here from the user: dajare
https://ask.libreoffice.org/t/can-calc-auto-increment-letters/17842/2

I changed the top & bottom "borders"(?) (made the writing area as large as possible, at the expense of header & footer that I don't plan on using) to only be

The Font Size for all rows outside the tables are only 6pt high (minimum option), just so it's possible to move the tables around, in future.


DETAILED FILE CREATION DESCRIPTION:
First I creates the top table_1 (1x20) and used LibreOffice Calk to generate the numbers by writing a 1 then select-drag to the right until I got 20, then I copied that row & pasted it at position 1x1 in the text document table.

Then I generated the big table_2 (3x29), generated the alphabet (as described in: "FILE CREATION QUIRKS" section 1), added an extra row above for the headings & adjusted the table sizes.

Then I selected the entire table_2 and Right Click > Size > Row Height, messed about with sizes until I found 0,90 cm to be a good size.

Select entire table_2, Right click > Table Properties > Click in the middle of the GUI to display all the "inner" lines in the table (both vertical & horizontal), Ok. 

Then I changed the "borders"(?) (see: "FILE CREATION QUIRKS" section 2) to fit the entire table on one page (only 0.5 cm "borders" on top & bottom).

Then I changed the Font Size to 6pt for all rows outside the table (individually selected rows, not Ctrl+A).

THEN FINALLY I pressed "Toggle Print Preview" & everything crashed.

Good luck.
Sorry for long text.

Steps to Reproduce:
Unsure.
Either download the file, open it & press "Toggle Print Preview".

Otherwise you have to re-create the file according to the instructions in Description > "DETAILED FILE CREATION DESCRIPTION:"

Actual Results:
Details: See: Description > "ERROR DESCRIPTION DETAILED:"

In short: Crashing, file restoration fails several times, restoration gets stuck in an infinite loop or something.
Restarting Writer, tries to recreate the file but crashes & restarts continuously.

Eventually successful restoration.

Expected Results:
A preview of how the document would look when printed.


Reproducible: Didn't try


User Profile Reset: No



Additional Info:
See description.

(I realize some of the description would fit better here, but that requires a lot of re-writing, I feel like I have written enough for today, don't want more).
Comment 1 Telesto 2022-02-23 15:48:46 UTC
No crash for me
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2bb10a827ac13d0caf009e8526ccd9f17dc71653
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL Jumbo
Comment 2 Buovjaga 2022-05-23 06:26:59 UTC
Sion: could you test with version 7.3? If you don't want to upgrade your stable version yet, you can get Win-x86_64@tb77-TDF from https://dev-builds.libreoffice.org/daily/master/current.html It is an unstable build which installs separately and will not mess with your stable one.
Comment 3 QA Administrators 2022-11-20 03:34:43 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2022-12-21 03:20:32 UTC
Dear Sion,

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-FollowUp