Bug 156142 - Updating TOC leads to assertion failure (debug)
Summary: Updating TOC leads to assertion failure (debug)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Crash-Assert
  Show dependency treegraph
 
Reported: 2023-07-03 13:05 UTC by Hossein
Modified: 2023-09-12 07:02 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Backtrace using Visual Studio 2022 (13.85 KB, text/plain)
2023-07-10 18:37 UTC, Hossein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2023-07-03 13:05:17 UTC
Description:
Updating table of contents in attachment 187817 [details] leads to crash.

Steps to Reproduce:
1. Open the attachment 187817 [details] from tdf#155764
2. Go to page 7 of 15 (actually 4th page)
3. Right click, then choose "Update Index"
4. Press ctrl+z to undo
5. Again right click, then choose "Update Index"

Actual Results:
Assertion failure, showing a dialog box stating "abort() has been called".

In the command line, one may see:

Assertion failed: !m_pFirst && !m_pLast && "There are still indices registered", file C:/cygwin64/home/user/lode/dev/core/sw/source/core/bastyp/index.cxx, line 234

Expected Results:
No crash.

Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a225b4dbd46897903b217969da5f97f2660022c9
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-US (en_DE); UI: en-US
Calc: CL threaded
Comment 1 MW 2023-07-10 15:45:14 UTC
I couldn't reproduce on current build.
Comment 2 Hossein 2023-07-10 16:50:37 UTC
(In reply to MW from comment #1)
> I couldn't reproduce on current build.
This is a debug-only problem. You need a debug build to reproduce it. I have tested with the latest LO 24.2 dev master, and the problem is still there:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7db3c6b25a8c57beab7dae4e0e1497e7b06f3662
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_DE); UI: en-US
Calc: CL threaded
Comment 3 Hossein 2023-07-10 18:22:09 UTC Comment hidden (obsolete)
Comment 4 Hossein 2023-07-10 18:37:46 UTC
Created attachment 188299 [details]
Backtrace using Visual Studio 2022
Comment 5 Ezinne 2023-07-29 15:34:33 UTC
Not reproducible in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e26aeb882dd236adf19679d5df9b7ba5da1ed226
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 6 Hossein 2023-08-11 10:57:30 UTC
Still reproducible with the latest LO 24.2 dev master:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5484657d2b1677b7e385ab6ef87ad64dcb9934e4
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_DE); UI: en-US
Calc: CL threaded

Note that you have to right click on one of the TOC lines that fall outside the borders. Otherwise, it won't lead to assertion failure.

Also, could you please test this on Windows?
Comment 7 Buovjaga 2023-09-12 07:02:17 UTC
Repro

Arch Linux 64-bit, X11
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f5bcc34580d02f92af01963155f2d54776a5249b
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 12 September 2023