Bug 142733 - Crash when deleting text with Outline folding
Summary: Crash when deleting text with Outline folding
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.0.beta1+
Hardware: All All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Outline-Folding
  Show dependency treegraph
 
Reported: 2021-06-09 12:27 UTC by Timur
Modified: 2021-08-12 08:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX (9.71 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-06-09 12:48 UTC, Timur
Details
DOCX with 10 pages (1.77 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-08-12 08:05 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2021-06-09 12:27:25 UTC
Steps (unless someone finds more general ones):
a. in Options-LO-Advanced turn on Experimental features to have Outline folding
b. check "Show outline-folding buttons" in Options-Writer-View 

1. Open atached DOCX, go to page 7
2. mark "a. Schéma avec dimensions physiques :" and copy it (it will not be copied to clipboard which is another bug) 
3. mark again and press Backspace 4 times, so that text is deleted and cursor goes to previous page
4. after few seconds, Writer crashes. 

Note for bug 80392:
Original compatibility DOCX attachment 115772 [details] opens with 56 pages in MSO, MSO saved DOCX (attached here) opens with 62 pages. 
Original DOCX opens with 64 pages in LO, same as for MSO saved DOCX. 
Comparing only MSO saved DOCX, one difference is page 7 (pages from MSO), where in LO picture goes to page 8 (small size difference?). Another difference is page 32, which is empty in LO (for no apparent reason). Again page 36, where in LO picture goes to next page (same as page 7). That could be bug itself, bug I report another issue here.
Comment 1 Timur 2021-06-09 12:48:28 UTC
Created attachment 172734 [details]
DOCX
Comment 2 j.a.swami 2021-06-09 13:46:20 UTC
This may be relevant: 
Bug 141388 - Crash in: libswlo.so
https://bugs.documentfoundation.org/show_bug.cgi?id=141388
Comment 3 Timur 2021-06-11 18:25:10 UTC Comment hidden (obsolete)
Comment 4 Jim Raykowski 2021-06-17 21:47:48 UTC
Hi Timur,

For me the document doesn't behave well when experimental features are enabled or not. Initially the total page count shows 54 but as I move the cursor down the document the page count increases and eventually a lockup occurs.

Testing with a build previous to the recent changes made to the outline folding feature also results in same lockup.

This may be related to Bug 142718.
Comment 5 Timur 2021-06-18 09:20:46 UTC
Thanks for looking into this.
For me file opens with 54 pages but soon goes to 65 and stay so, no pagination (Bug 142718).
I add Xisco to confirm.
Comment 6 geraldg 2021-06-29 05:56:16 UTC
Hi *.

2. mark "a. Schéma avec dimensions physiques :" and copy it (it will not be copied to clipboard which is another bug)

I can confirm this behavior.


4. after few seconds, Writer crashes.

I can't confirm this behavior.

LO 7.2.0.0beta1, Linux KDE neon
Comment 7 Timur 2021-07-15 08:28:34 UTC
Repro 7.3+. If not crashed in few seconds, crashes when clicked in Writer after that. Tested GEN, GTK, SKIA. Should be tested to see why not in comment 6.
Comment 8 Buovjaga 2021-07-15 09:22:24 UTC
I don't repro the copying problem or the crash

NixOS
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 7eacafd907e8ad3dd5511cdc56c6fbe225e1782a
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: x11
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 9 Timur 2021-08-12 08:05:06 UTC
Created attachment 174221 [details]
DOCX with 10 pages

Now that fix was reverted bug 80392 is open, original DOCX has pagination.
So I add MSO reduced DOCX of 10 pages. 

With this DOCX, I reproduce crash in LO 7.2 but not in 7.3+ with the fix from bug 143577. Not sure about this, but I'll close.