Bug 163517 - Writer crashes when inserting or editing a table of contents if the template is not Default
Summary: Writer crashes when inserting or editing a table of contents if the template ...
Status: RESOLVED DUPLICATE of bug 163325
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.1.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2024-10-18 20:32 UTC by John.m.astell
Modified: 2024-12-27 12:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature: 3343d109-dae1-4ae3-93f8-59e555f56a3d


Attachments
Sample file using Simple template. Writer crashes when trying to insert Table of Contents (26.46 KB, application/vnd.oasis.opendocument.text)
2024-10-18 20:34 UTC, John.m.astell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John.m.astell 2024-10-18 20:32:32 UTC
Description:
1. Using Version: 24.8.2.1, Create a Writer document with the “Simple” template or with a user-custom template. Do not use the Default template.

2. Add some text with headings using styles.

3. Attempt to insert a Table of Contents: Insert → Table of Contents and Index → Table of Contents, Index or Bibliography.

Writer crashes while trying to open the dialog.

If reopened in Safe Mode, the TOC can be inserted without problem.
Once the TOC is inserted and saved, and LO is run in Normal Mode, Writer crashes for the document when the Edit Index option is selected.
If reopened in Safe Mode, the TOC can be edited without problem.

Finally, if the document has the Default template, LO Writer does not crash in Normal mode when inserting or editing the TOC.

This issue did not occur in v7.6. v24.8.2.1 is the first time I have used any v24, so I do not not if the issue is present in earlier versions of v24.


Steps to Reproduce:
1. Using Version: 24.8.2.1, Create a Writer document with the “Simple” template or with a user-custom template. Do not use the Default template.

2. Add some text with headings using styles.

3. Attempt to insert a Table of Contents: Insert → Table of Contents and Index → Table of Contents, Index or Bibliography.

Actual Results:
Writer crashes.

Expected Results:
Table of contents should be inserted.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 20; OS: Windows 11 X86_64 (10.0 build 22631); UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 John.m.astell 2024-10-18 20:34:22 UTC
Created attachment 197138 [details]
Sample file using Simple template. Writer crashes when trying to insert Table of Contents
Comment 2 m_a_riosv 2024-10-18 21:09:50 UTC
Crash with attached file, but seems solved for the next release 24.8.3
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

But not reproducible with
Version: 24.8.3.0.0+ (X86_64) / LibreOffice Community
Build ID: f7b102bc705d3bd98f7d2efa52c24eb6e2573642
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
neither
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b4faa1775dfd90e781ac2f94a7ae1ada31b9d49f
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: threaded

Release plan 24.3
https://wiki.documentfoundation.org/ReleasePlan/24.8#24.8.3_release

Maybe you can find a workaround, up to 24.8.3 release, or download dev version from
https://dev-builds.libreoffice.org/daily/libreoffice-24-8/
It must be installed on parallel.
Comment 3 John.m.astell 2024-11-23 22:05:12 UTC
I have installed 24.8.3.2 and the problem still occurs and is now even worse. The comment by m_a_riosv that the problem would be solved in 24.8.3 release appears to be incorrect.

As before, trying to EDIT a table of contents in a document that does not use the Default template crashes LO. Now, trying to EDIT a table of contents in a document that does use the Default template also crashes LO. 

Additionally, now, trying to INSERT a table of contents or index crashes LO, even if the document's template is Default. The crash occurs when Insert -> Table of Contents and Index is selected.

I have attempted these actions multiple times on 23 Nov. 2024 and had LO send in crash reports each time, in case you have access to them.

These problems do not occur in safe mode.

I am running:
Version: 24.8.3.2 (X86_64) / LibreOffice Community
Build ID: 48a6bac9e7e268aeb4c3483fcf825c94556d9f92
CPU threads: 20; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 4 Takenori Yasuda 2024-11-30 08:24:22 UTC
I faced the same problem.
And in my verification (mainly with my own files), I found the following.

- Crash on insertion:
    - Default template
    - Non-default but originally included templates in LibreOffice
    - Templates created in 24.8.3.2
    - Files created in 24.8.3.2
    - Files created in 24.2.3, saved in 24.8.0.3
    - Files saved by OTHERS in 7.2.0.0
    - Files created in Safe Mode of 24.8.3.2

- Do not occur (able to insert or edit):
    - Templates created in versions prior to 24.8
    - Files created in versions prior to 24.8, saved in 24.8.3.2
    - Files created in versions prior to 7.5, saved in 24.8.2.1

These problems do not occur in Safe Mode.


Version: 24.8.3.2 (X86_64) / LibreOffice Community
Build ID: 48a6bac9e7e268aeb4c3483fcf825c94556d9f92
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded Jumbo
Comment 5 MonsieurLune 2024-12-26 22:48:14 UTC
Hello,

Following instructions found in https://ask.libreoffice.org/t/insert-edit-table-of-contents-causes-crash/113195 the crash does not occur when the Preview option is unticked.
It is possible to untick it because (in my situation) the TOC edit/create window is still open after the crash and before the file autosave. It seems that the issue is somehow related to the preview.

Version: 24.8.3.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 8; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
24.8.3-2
Calc: threaded
Comment 6 BogdanB 2024-12-27 01:57:39 UTC

*** This bug has been marked as a duplicate of bug 163325 ***
Comment 7 BogdanB 2024-12-27 01:59:43 UTC
Please test 24.8.4. This release solved this bug.
Comment 8 John.m.astell 2024-12-27 12:49:50 UTC
I confirm that version 24.8.4 has resolved the bug. I can now insert tables of content and edit them without crashes.
Comment 9 BogdanB 2024-12-27 12:52:24 UTC
Nice, great. Anyway, thanks for reporting.