Bug 87663

Summary: CRASH when attempting to add ToC to document
Product: LibreOffice Reporter: Robinson Tryon (qubit) <qubit>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: major    
Priority: medium CC: gautier.sophie, qubit, serval2412
Version: 4.4.0.1 rc   
Hardware: Other   
OS: All   
Whiteboard: (target:4.4.0.1)
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 79641    
Attachments: GDBtrace.log from LibreOffice

Description Robinson Tryon (qubit) 2014-12-24 03:22:25 UTC
USING LO 4.4.0.1 + Ubuntu 14.04

I discovered this problem while trying to repro bug 87604.

REPRO Steps:
1) Open Writer
2) I initially wrote some text and converted it to Style 'Heading 1', but that doesn't seem to always be necessary for repro
3) Insert -> Indexes and Tables -> Indexes and Tables

RESULT: LO crashes

If the dialog for Indexes and Tables actually appears and LO doesn't immediately crash, close the dialog and try typing some more text. Then try to open the dialog again.
Comment 1 Robinson Tryon (qubit) 2014-12-24 03:26:04 UTC
(In reply to Robinson Tryon (qubit) from comment #0)
> REPRO Steps:
> 1) Open Writer
> 2) I initially wrote some text and converted it to Style 'Heading 1', but
> that doesn't seem to always be necessary for repro

Consistent repro: Type some text, then wait for the Updater notification to appear before trying to open the Indexes and Tables dialog.

I can't repro with a 4.5-build from the master branch, perhaps because there's no update notification?
Comment 2 Robinson Tryon (qubit) 2014-12-24 03:27:49 UTC
Created attachment 111255 [details]
GDBtrace.log from LibreOffice
Comment 3 Julien Nabet 2014-12-24 11:22:18 UTC
On pc Debian x86-64 with 4.4. sources updated yesterday + brand new file, I don't reproduce this.
Robinson: Could you attach the file so I could give it a try?
Comment 4 sophie 2014-12-24 14:26:10 UTC
Hi, confirmed using Version: 4.4.0.1
Build ID: 1ba9640ddd424f1f535c75bf2b86703770b8cf6f
Locale: fr_FR - Ubuntu 14.10
Julien: to reproduce, just write : New title, set it to Heading one, enter blabla below, then Insert > Index and tables > Index on a new line ==> crash. I can reproduce it each time I tried.
Set as New - Sophie
Comment 5 Julien Nabet 2014-12-24 14:37:15 UTC
Sophie: I failed to reproduce this :-( Perhaps is it because I use a build from 4.4 sources updated yesterday?
Comment 6 sophie 2014-12-24 14:48:40 UTC
Julien, I just tested with an old master I had at hand Version: 4.5.0.0.alpha0+
Build ID: 317b5bc5f801135b027e02d5acfc407cc2d05689
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-12-01_00:15:34
Locale: fr_FR 
I was not able to reproduce with this one, the TOC is created with no problem. I'll try with master 4.4. Sophie
Comment 7 sophie 2014-12-24 14:57:22 UTC
works great with this one Version: 4.4.0.1.0+
Build ID: a7f76a197900e7ece5d09fed2bf7920a42425e9c
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-4-4, Time: 2014-12-23_15:24:54
Locale: fr_FR - Sophie
Comment 8 Julien Nabet 2014-12-24 15:00:29 UTC
Thank you Sophie for your feedback, let's put this to WFM.
Comment 9 Robinson Tryon (qubit) 2014-12-24 20:22:08 UTC
(In reply to Robinson Tryon (qubit) from comment #1)
> Consistent repro: Type some text, then wait for the Updater notification to
> appear before trying to open the Indexes and Tables dialog.
> 
> I can't repro with a 4.5-build from the master branch, perhaps because
> there's no update notification?

Julien: I'm inclined to just toss this one on the 'done' heap, but is there any reason to suspect the updater?
Comment 10 Julien Nabet 2014-12-25 00:53:38 UTC
(In reply to Robinson Tryon (qubit) from comment #9)
> (In reply to Robinson Tryon (qubit) from comment #1)
> > Consistent repro: Type some text, then wait for the Updater notification to
> > appear before trying to open the Indexes and Tables dialog.
> > 
> > I can't repro with a 4.5-build from the master branch, perhaps because
> > there's no update notification?
> 
> Julien: I'm inclined to just toss this one on the 'done' heap, but is there
> any reason to suspect the updater?

I just realized that I had missed the "updater" part. I must recognize I don't know what's the "updater" in LO :-(
Comment 11 Robinson Tryon (qubit) 2014-12-25 06:40:51 UTC
(In reply to Julien Nabet from comment #10)
> I just realized that I had missed the "updater" part. I must recognize I
> don't know what's the "updater" in LO :-(

The updater is the tool that notifies users if an update is available for a given version:
https://wiki.documentfoundation.org/Updater


More Testing:

I deleted my UserProfile and disabled the network on my machine, and then tried to repro again:
- I added text
- I changed the styles of text
- etc..

Each time I tried to add ToC, the dialog opened without a crash. I then re-enabled the network and restarted LibreOffice (I waited for a while, but never got a prompt about an available update; it's possible that the program only checks once, shortly after startup).

I poked at text/styles, and was successful at opening the ToC dialog. Then the second I saw the updater message appear, I tried again and got the crash.

If there's some brittle code in LibreOffice that's crashing here, it might be worth it for us to track it down, especially if the bug might still be lurking in master.
Comment 12 Julien Nabet 2014-12-25 11:17:54 UTC
I can't use master sources for the moment since I can't build it anymore with dbgutil (which seems to me mandatory to find a bug), see http://nabble.documentfoundation.org/Build-fails-with-master-sources-td4133670.html .
I'll try to give a new try with 4.4 sources once it will be built with the last commits.
Comment 13 Per 2015-01-16 02:58:13 UTC
(In reply to Robinson Tryon (qubit) from comment #1)
> (In reply to Robinson Tryon (qubit) from comment #0)
> > REPRO Steps:
> > 1) Open Writer
> > 2) I initially wrote some text and converted it to Style 'Heading 1', but
> > that doesn't seem to always be necessary for repro
> 
> Consistent repro: Type some text, then wait for the Updater notification to
> appear before trying to open the Indexes and Tables dialog.
> 
> I can't repro with a 4.5-build from the master branch, perhaps because
> there's no update notification?

Nobody asked, but can confirm this bug also appears in win7 ultimate 64 bit (AMD) on 4.4.0.2. LO waits for a few secs then just dissappers without a trace. /Per
Comment 14 Robinson Tryon (qubit) 2015-01-16 08:56:44 UTC
(In reply to Per from comment #13)
> (In reply to Robinson Tryon (qubit) from comment #1)
> > (In reply to Robinson Tryon (qubit) from comment #0)
> > > REPRO Steps:
> > > 1) Open Writer
> > > 2) I initially wrote some text and converted it to Style 'Heading 1', but
> > > that doesn't seem to always be necessary for repro
> > 
> > Consistent repro: Type some text, then wait for the Updater notification to
> > appear before trying to open the Indexes and Tables dialog.
> > 
> > I can't repro with a 4.5-build from the master branch, perhaps because
> > there's no update notification?
> 
> Nobody asked, but can confirm this bug also appears in win7 ultimate 64 bit
> (AMD) on 4.4.0.2. LO waits for a few secs then just dissappers without a
> trace. /Per

Hmm, hmm... that's dangerous news, as my guess about the Updater was predicated on the (accidentally set) upgrade path from 4.4.0.1 -> 4.3.5.2 in the server-side of the Updater.

AFAIK, there's no upgrade path yet set for 4.4.0.2 rc, so maybe there's an underlying bug that *wasn't* fixed by 4.4.0.2?

(I TESTED with LO 4.4.0.2 + Ubuntu 14.04, but couldn't repro. There's no prompt from the updater to update the build, but I waited a minute or so after I wrote some text before I opened the Indexes and Tables dialog.)
Comment 15 Per 2015-01-16 15:55:35 UTC
(In reply to Robinson Tryon (qubit) from comment #14)
> (In reply to Per from comment #13)
> > (In reply to Robinson Tryon (qubit) from comment #1)
> > > (In reply to Robinson Tryon (qubit) from comment #0)
> > > > REPRO Steps:
> > > > 1) Open Writer
> > > > 2) I initially wrote some text and converted it to Style 'Heading 1', but
> > > > that doesn't seem to always be necessary for repro
> > > 
> > > Consistent repro: Type some text, then wait for the Updater notification to
> > > appear before trying to open the Indexes and Tables dialog.
> > > 
> > > I can't repro with a 4.5-build from the master branch, perhaps because
> > > there's no update notification?
> > 
> > Nobody asked, but can confirm this bug also appears in win7 ultimate 64 bit
> > (AMD) on 4.4.0.2. LO waits for a few secs then just dissappers without a
> > trace. /Per
> 
> Hmm, hmm... that's dangerous news, as my guess about the Updater was
> predicated on the (accidentally set) upgrade path from 4.4.0.1 -> 4.3.5.2 in
> the server-side of the Updater.
> 
> AFAIK, there's no upgrade path yet set for 4.4.0.2 rc, so maybe there's an
> underlying bug that *wasn't* fixed by 4.4.0.2?
> 
> (I TESTED with LO 4.4.0.2 + Ubuntu 14.04, but couldn't repro. There's no
> prompt from the updater to update the build, but I waited a minute or so
> after I wrote some text before I opened the Indexes and Tables dialog.)

I have tried to find a workaround (not a good one - just one that works) and if you do not add _anything_ into your document before insert-> index and tables, you get the dialog and are able to specify your details. If you after that add all of your paragraphs and headings it seems ok. so "nil" input data to the "indexer" works, but "any" data kills LO...

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.