Bug 89400 - Crash When Updating Table of Contents w\ Additional Styles
Summary: Crash When Updating Table of Contents w\ Additional Styles
Status: RESOLVED DUPLICATE of bug 89520
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
: 89432 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-15 22:22 UTC by mike
Modified: 2015-06-17 13:05 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Test case (12.85 KB, application/vnd.oasis.opendocument.text)
2015-02-19 23:12 UTC, mike
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mike 2015-02-15 22:22:40 UTC
1. Create a new text document or open an existing one
2. Menu Insert > Indexes and tables > Indexes and tables
3. Check 'Additional Styles'
4. Click '...'
5. Assign Heading 1 AND Heading 2 using right arrow
5. Crash with fatal error 'invalid vector <T> subscript
Comment 1 Joel Madero 2015-02-19 03:36:16 UTC
Hi Mike,

Can you clarify step 5 please? does it matter what we assign to header 1 and 2? I assigned Heading to Header 1 and Index to Header 2, pushed okay, no crash.

LibreOffice 4.4.0.3
Ubuntu 14.10 x64

Thanks for any additional insight that you can provide. Leaving this open until we can get a Windows test.
Comment 2 mike 2015-02-19 23:12:05 UTC
Created attachment 113525 [details]
Test case
Comment 3 mike 2015-02-19 23:14:50 UTC
Hi,

It appears to be something to do with comments also, actually only having the trouble with one document (not new ones, was mistaken) but can't track down the problem exactly.

The document has a number of comments, so I went through and deleted each one at a time until there was no crash.

However, just deleting that single comment still caused a crash, so there must be comments further up the document also causing problems.

I've attached a document that has the issue.

In place of step 1, open the attached file 'libre-office_bug89400.odt' and follow steps 2 > 5 as before.

Hope that helps.
Comment 4 Buovjaga 2015-02-21 07:12:27 UTC
(In reply to mike from comment #0)
> 1. Create a new text document or open an existing one
> 2. Menu Insert > Indexes and tables > Indexes and tables
> 3. Check 'Additional Styles'
> 4. Click '...'
> 5. Assign Heading 1 AND Heading 2 using right arrow
> 5. Crash with fatal error 'invalid vector <T> subscript

Reproduced with attachment 113525 [details].
Could not get a backtrace in Win. Procdump and DebugView were useless, too.

Debug output in terminal from Linux:

warn:legacy.osl:3751:1:sw/source/core/doc/doclay.cxx:1563: Found a FlySection but not a Format!
warn:legacy.osl:3751:1:sw/source/core/txtnode/thints.cxx:3210: +SwpHints::Insert: invalid hint, end < start
warn:legacy.osl:3751:1:sw/source/core/txtnode/thints.cxx:3210: +SwpHints::Insert: invalid hint, end < start
warn:fwk:3751:1:framework/source/fwi/threadhelp/transactionmanager.cxx:265: TransactionManager...: Owner instance stand in close method. Call was rejected!

Win 7 Pro 64-bit, LibO Version: 4.4.0.3
Build ID: de093506bcdc5fafd9023ee680b8c60e3e0645d7
Locale: fi_FI

Version: 4.5.0.0.alpha0+
Build ID: b13534de022972131b46f93f5ada90af155eec9e
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-02-19_00:21:37
Locale: fi_FI

Ubuntu 14.10 64-bit Version: 4.5.0.0.alpha0+
Build ID: 6b3aa0fe4094e87290bd33a30bd6cd99ee78ce38
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2015-02-16_21:52:18
Locale: en_US
Comment 5 Matthew Francis 2015-02-21 07:51:13 UTC
*** Bug 89432 has been marked as a duplicate of this bug. ***
Comment 6 Matthew Francis 2015-02-21 07:54:14 UTC
As discussed on IRC, the crash on Linux noted in comment 4 is a combination of bug 89520 and bug 89521 - it's uncertain that those are the same as the "invalid vector" error observed on Windows. Either they are different expressions of the same issue, or (probably more likely) this bug is a separate Windows only issue.
Comment 7 Buovjaga 2015-02-21 09:41:57 UTC
No crash or error dialog on Win or Ubuntu 4.3.

Addition to my comment 4: on Ubuntu with LibO 4.5, the error dialog flashed quickly while LibO crashed. Didn't get the opportunity to click ok.

Now tested on Ubuntu LibO 4.4, the error dialog showed up without visible contents for a while longer, so that I could confirm it was indeed a Fatal Error.

Win:
Version: 4.3.0.1
Build ID: 67f5430184326974072b65403ef1d9d934fc4481

Ubuntu:
Version: 4.3.5.2
Build ID: 3a87456aaa6a95c63eea1c1b3201acedf0751bd5

Version: 4.4.0.3
Build ID: 40m0(Build:3)
Locale: en_US
Comment 8 Caolán McNamara 2015-06-17 13:05:18 UTC
Can't reproduce, this really sounds like bug 89520 to me.

*** This bug has been marked as a duplicate of bug 89520 ***