Bug 120358 - Long multi-layered numbered list in a table became mis-ordered after some editing
Summary: Long multi-layered numbered list in a table became mis-ordered after some edi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
Keywords: bibisectRequest, regression
Depends on:
Blocks: Writer-Tables Bullet-Number-Outline-Lists
  Show dependency treegraph
Reported: 2018-10-06 03:53 UTC by Franklin Weng
Modified: 2024-03-03 04:14 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

Problematic odt file (40.92 KB, application/vnd.oasis.opendocument.text)
2018-10-06 03:54 UTC, Franklin Weng
The original doc file (90.00 KB, application/msword)
2018-10-06 03:55 UTC, Franklin Weng
Desktop recording (2.95 MB, video/webm)
2018-10-06 03:57 UTC, Franklin Weng

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2018-10-06 03:53:18 UTC
I just experienced a series of Writer crashing, anonymous report starting from UUID: 27bd50d1-04d4-4b38-a70b-8f31ca3b6fa0, all the same system information:

Version	Version:
OS	linux
OS details	0.0.0 Linux 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64
Build Architecture	amd64
CPU Info	family 6 model 69 stepping 1
Crash Reason	SIGSEGV
Crash Address	0x621600004e9d
Crash Thread	0

All the crashes happened during I re-format the long multi-layered numbered list in the first column of the second table.

The display (rendering) "bumped" every time I changed a line, then after some time it crashes.

After trying hard to make things done, saved and reopened, and tried to re-organize the numbered item, the layer will become mis-ordered.

(Desktop recording attached later)

Steps to Reproduce:
1. Open the odt file.
2. In the second table, around item (八)、(九)、(十), put the cursor in front of (九), hit the Backspace to attached after the item (八), then hit Enter to go back.
3. Do the same to (十) to attached after the item (九), then you can see the numbered 7. (under (七)) became mis-ordered.

Actual Results:
Item (七) 7. became mis-ordered.

Expected Results:
Item (七) 7. should stay where it was.

Reproducible: Always

User Profile Reset: No

Additional Info:
It looks like something not handling well with long, multi-layer numbered list positioned in a table.

The original file is a .doc file, but I cleared all the format before re-formatting, set up the numbered list properties, then did the re-format.
Comment 1 Franklin Weng 2018-10-06 03:54:11 UTC
Created attachment 145425 [details]
Problematic odt file

Please try with this odt file.
Comment 2 Franklin Weng 2018-10-06 03:55:29 UTC
Created attachment 145426 [details]
The original doc file

For reference.  I opened this file with LibreOffice 6.1.1, cleared all the format, and then saved as odt file then re-formatted it.
Comment 3 Franklin Weng 2018-10-06 03:57:40 UTC
Created attachment 145427 [details]
Desktop recording
Comment 4 Buovjaga 2018-10-31 17:52:09 UTC
Repro while doing the same steps as in the video. In my case it was 6. that moved.

I cannot repro on Windows.
I did not repro with Linux 50max bibisect repo.

By the way, if you undo back to the beginning, do you get a crash?

In 6.2, having experimental features enabled, the document crashes on opening. I suspect it will be fixed with https://bugs.documentfoundation.org/show_bug.cgi?id=120991#c9

Arch Linux 64-bit
Build ID: 45d8fb0ba77396b7d5e02c2fc9a8ae5b233a02bc
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: fi-FI (fi_FI.UTF-8); Calc: threaded
Built on 31 October 2018
Comment 5 QA Administrators 2019-11-01 03:37:10 UTC Comment hidden (obsolete, spam)
Comment 6 Ezinne 2021-12-29 14:07:21 UTC
The original bug is not reproducible in:

Version: / LibreOffice Community
Build ID: 9e8c1da64fa8a520730ce0aea0f7199cd75c892f
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

However, after I press the backspace, and ENTER key, I do not get back the numbering.
I have to press the ENTER key twice to get the Chinese numbering, but this creates an empty line as well.
Comment 7 QA Administrators 2023-12-30 03:13:33 UTC Comment hidden (obsolete)
Comment 8 Tex2002ans 2024-03-03 04:14:24 UTC
I could not reproduce in:

Version: (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

I followed the steps in comment 3's video exactly.

I think the initial "crash" / "7. appearing" issue is fixed, but there ARE a few other oddities with attachment 145425 [details].

- - -


Like Ezinne in comment 6 said, you have to "press ENTER twice" to get the auto-numbering to show back up:

0. Open attachment 145425 [details].
1. In the second table, put the cursor right:
   - After "(九)"
      - The Chinese auto-numbering.
   - Before "廠商於協商後重行遞送之".
2. Press BACKSPACE once.
   - Auto-number disappears.
3. Press ENTER once.
   - Auto-number appears, but extra line added above too.

so the lines looks like this during Step 1:

> 之廠商,並作成協商紀錄。
> (九) 廠商於協商後重行遞送之

and this after Step 3:

> 之廠商,並作成協商紀錄。
> (九) 廠商於協商後重行遞送之

- - -

If you do:

2. Press BACKSPACE twice.
3. Press ENTER twice.

you get:

> 之廠商,並作成協商紀錄。
> (九) 廠商於協商後重行遞送之

and this after Step 3:

> 之廠商,並作成協商紀錄。
> (九)
>     廠商於協商後重行遞送之

- - -

In Step 3, you use UNDO (Ctrl+Z), everything resets fine:

0. Open attachment 145425 [details].
1. In the second table, put the cursor:
   - After "(九)"
      - The Chinese auto-numbering.
   - Before "廠商於協商後重行遞送之".
2. Press BACKSPACE once or twice.
3. Press Edit > Undo (Ctrl+Z) once or twice.

- - -


On page 6/7, I copied everything down from "6." down to the end of "(九)"... but it seems like LO pastes the wrong numbers!

For example, this is what it looks like in the ODT document:

>    7. 工作小組擬具初審意見及評選委員會審查、議決等評選作業,是否以記名方式秘密為之。
>(八) 是否善用協商程序,以避免價格不合理、浪費公帑之情形。協商時是否平等對待所有合於招標文件規定之廠商,並作成協商紀錄。
>(九) 廠商於協商後重行遞送之投標文件,其有與協商無關或不受影響之項目者,該項目是否不予評選,並是否以重行遞送前之內容為準。

but when I paste that into Notepad++, I get:

>     14. 工作小組擬具初審意見及評選委員會審查、議決等評選作業,是否以記名方式秘密為之。
>(十六) 是否善用協商程序,以避免價格不合理、浪費公帑之情形。協商時是否平等對待所有合於招標文件規定之廠商,並作成協商紀錄。
>(十八) 廠商於協商後重行遞送之投標文件,其有與協商無關或不受影響之項目者,該項目是否不予評選,並是否以重行遞送前之內容為準。

Notice the auto-numbers are all wrong:

- 7 -> 14
- 八 -> 十六
   - 8 vs. 16
- 九 -> 十八
   - 9 vs. 18

It *seems* like LO 24.2 is:

- visually "counting by 1s"
- accidentally "counting by 2s" underneath