Bug 130699 - Assert on undo/redo table captions SwIndexReg::~SwIndexReg(
Summary: Assert on undo/redo table captions SwIndexReg::~SwIndexReg(
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: haveBacktrace
Depends on:
Blocks: Crash-Assert Undo-Redo
  Show dependency treegraph
Reported: 2020-02-16 08:19 UTC by Jim Raykowski
Modified: 2020-12-20 19:19 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

file to repro caption undo/redo assert (10.57 KB, application/vnd.oasis.opendocument.text)
2020-02-16 08:19 UTC, Jim Raykowski
bt with debug symbols (10.48 KB, text/plain)
2020-02-16 21:17 UTC, Julien Nabet
bt with debug symbols (8.12 KB, text/plain)
2020-12-20 19:19 UTC, Julien Nabet

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Raykowski 2020-02-16 08:19:32 UTC
Created attachment 157915 [details]
file to repro caption undo/redo assert

Assert is: sw/source/core/bastyp/index.cxx:226: virtual SwIndexReg::~SwIndexReg(): Assertion `!m_pFirst && !m_pLast && "There are still indices registered"' failed.

I noticed this in version 7.0 while working on an enhancement to insert captions from the Navigator Tables context menu.

I've also replicated in: 

Build ID: 7bfe30c2a1c67961777ff52f20eac30a164e8340
CPU threads: 4; OS: Linux 5.0; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

Attached file contains the steps to repro.
Comment 1 Julien Nabet 2020-02-16 21:17:22 UTC
Created attachment 157931 [details]
bt with debug symbols

On pc Debian x86-64 with master sources updated today, I could reproduce this.
Comment 2 Jim Raykowski 2020-02-16 22:22:50 UTC
This assert is easily seen with patch applied that adds insert caption menu item to Navigator table context menu. 

Comment 3 Telesto 2020-12-20 19:06:55 UTC
Lacking a debug build.. is this still present? I can't reproduce similar bug (which should cause a crash)... However lacking a debug build
Comment 4 Julien Nabet 2020-12-20 19:19:27 UTC
Created attachment 168359 [details]
bt with debug symbols

Just to give an update but I think it's similar to the previous bt.