Bug 153032 - Writer crashes after few hours of editing large DOCX file with some compatibility options on
Summary: Writer crashes after few hours of editing large DOCX file with some compatibi...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2023-01-15 19:45 UTC by Ziggy_N
Modified: 2023-08-02 03:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature: ["SwLayoutFrame::ContainsContent() const "]


Attachments
Options to unselect to prevent crashing (53.20 KB, image/png)
2023-07-30 20:20 UTC, Ziggy_N
Details
Default compatibility options (?) (44.79 KB, image/png)
2023-08-01 06:27 UTC, Ziggy_N
Details
Default compatibility options from the debug build (50.02 KB, image/png)
2023-08-01 17:33 UTC, Ziggy_N
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ziggy_N 2023-01-15 19:45:33 UTC
Hello. This is driving me mad. I have to work on a very large DOCX file. The file has nearly 3000 pages and nearly 20 MB size. It has a lot of tables, and a few images.

Way to reproduce:
1. Open the document in LibreOffice Writer.
2. Work on it for a few hours, this includes also keeping the document open and Writer in the background.
3. LibreOffice Writer will crash at some point.


I am using LibreOffice 7.4 (it was the same with 7.3) on Linux Mint.
Link to sample crash report: https://crashreport.libreoffice.org/stats/crash_details/1954d3ed-0e32-4698-9d7f-29d4184c98ea
Comment 3 Telesto 2023-01-19 21:05:17 UTC
Thanks for the report. The problem is caused by some table moving down/up while editing, I guess. Based on the crash report.

The crash needs to be reproducible for getting fixed. Having the file in question is already a big help. I assume the file containing private data. 

So maybe this being an option:
https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission
Comment 4 Ziggy_N 2023-01-20 17:18:05 UTC
Thank you. Indeed, I can't distribute the content of the file. I will try to sanitize the file and upload it.
Comment 5 Stéphane Guillou (stragu) 2023-03-30 12:38:19 UTC
Any luck sanitising the file to attach it here?
Please also:
- test with LO 7.4.6
- paste here the information copied from Help > About LibreOffice

You can set the bug back to "unconfirmed" once you have provided that info.
Thank you!
Comment 6 Ziggy_N 2023-07-25 19:03:09 UTC
As you probably already guessed, I failed with sanitizing the document, but I will try again.

The bug has been occurring all the time.

Most recent crash report https://crashreport.libreoffice.org/stats/crash_details/1413806f-a909-404d-9bdd-3099d1a340a2

As you can see it's still there, even in 7.5.5.2.
Comment 7 Ziggy_N 2023-07-25 19:06:13 UTC
(In reply to Stéphane Guillou (stragu) from comment #5)
> Any luck sanitising the file to attach it here?
> Please also:
> - test with LO 7.4.6
> - paste here the information copied from Help > About LibreOffice
> 
> You can set the bug back to "unconfirmed" once you have provided that info.
> Thank you!

Information from About LibreOffice:

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 36; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 8 QA Administrators 2023-07-26 03:13:56 UTC Comment hidden (obsolete)
Comment 9 Stéphane Guillou (stragu) 2023-07-26 10:29:08 UTC
Thanks for the version info.
Setting back to "need info" until we have an example file and/or more precise steps (possibly starting from empty document).

Noting that the crash reports show that the last actions are usually backspace and save.
Comment 10 Ziggy_N 2023-07-30 20:20:51 UTC
Created attachment 188665 [details]
Options to unselect to prevent crashing
Comment 11 Ziggy_N 2023-07-30 20:27:21 UTC
I would like to add that Writer has not crashed for the last few days, from the moment that I have decided to untick all the options in Tools/Options/LibreOffice Writer/Compatibility (see attached pic).

Hopefully I have found a workaround.

As to sanitization of the example file, still no luck. I can't publish the graphics included in the document, the file sanitized without graphics seems to work fine, and I haven't found a way to sanitize the graphics included in the file (I mean making the image content random while maintaining the same size/characteristics of the PNG/JPEG files included).
Comment 12 Stéphane Guillou (stragu) 2023-07-31 09:46:00 UTC
Thanks for that information!

Do you know which options were on originally? Did you ever touch those options before or you assume the default options we used?

What would be very useful is a backtrace. If you have the time, and can reliably reproduce the crash without needing to work on the file for "a few hours", it would be great to have a backtrace using a debug ("dbg") build from https://dev-builds.libreoffice.org/daily/master/current.html and these instructions: https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace
Comment 13 Ziggy_N 2023-08-01 06:27:25 UTC
Created attachment 188688 [details]
Default compatibility options (?)
Comment 14 Ziggy_N 2023-08-01 06:32:17 UTC
I did not change the defaults, but I don't remember what compatibility options were enabled previously (I did not expect the changes to have any effect on crashing, lol). From looking at other DOCX files in LibreOffice Writer I can assume three options were enabled:

"Add paragraph and table spacing at bottom of table cells"
"Consider wrapping style when positioning objects"
"Word-compatible trailing blanks"

(see attached pic).

But this is just a guess, because I have already set no-ticks as the new default.

I'll try to make the backtrace, thanks.
Comment 15 Ziggy_N 2023-08-01 17:33:19 UTC
Created attachment 188702 [details]
Default compatibility options from the debug build
Comment 16 Ziggy_N 2023-08-01 17:33:30 UTC
Update: it looks like the default options in the debug build are different. By default these are selected:

"Add paragraph and table spacing at tops of pages"
"Add paragraph and table spacing at bottom of table cells"
"Consider wrapping style when positioning objects"
"Word-compatible trailing blanks"
"Hide paragraphs of database fields (e.g., mail merge) with an empty value"

I will try to isolate the faulty option.

As to the debug build, I'm not sure I will achieve anything, because it works so slow that it's impossible to use it properly (saving file takes one hour).
Comment 17 QA Administrators 2023-08-02 03:13:57 UTC Comment hidden (obsolete)