Bug 119626

Summary: Assert when clicking Expand Formula Bar
Product: LibreOffice Reporter: Julien Nabet <serval2412>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aron.budea, caolan.mcnamara, glogow, m.weghorn, xiscofauli
Priority: medium    
Version: 6.2.0.0.alpha0+   
Hardware: All   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=119472
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 105537    
Attachments: bt with debug symbols
bt with debug symbols

Description Julien Nabet 2018-08-31 19:30:18 UTC
Description:
On pc Debian x86-64 with master sources updated today + enable-dbgutil + gtk3, I got an assert in Notebook bar layout when clicking Expand Formula Bar

Steps to Reproduce:
1. Enable experimental features in Options
2. View - User Interface - Tabbed and then Layout
3. In calc, click Expand Formula Bar


Actual Results:
Assertion

Expected Results:
No assertion


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Comment 1 Julien Nabet 2018-08-31 19:33:08 UTC
Created attachment 144588 [details]
bt with debug symbols
Comment 2 Julien Nabet 2018-08-31 19:37:11 UTC
vcl/source/window/toolbox.cxx
2265 item.maCalcRect.SetTop( nY+(mnMaxItemHeight-aCurrentItemSize.Height())/2 );

See https://opengrok.libreoffice.org/xref/core/vcl/source/window/toolbox.cxx#2265

(gdb) p nY
$1 = 0
(gdb) p mnMaxItemHeight
$2 = 27
(gdb) p aCurrentItemSize.Height()
$3 = 34
(gdb) p nLineSize
$4 = 116

Caolán: I don't know if it's due to https://cgit.freedesktop.org/libreoffice/core/commit/?id=c7efcb1340ceee35fe3b8ffd9ed86b8cae57d9ce or if the root cause must be searched elsewhere.
Comment 3 Katarina Behrens (Inactive) 2018-09-03 13:15:24 UTC
Repro with dbg build and gtk3, kde5 respectively. Not with gtk and gen
Comment 4 Michael Weghorn 2019-01-30 12:01:02 UTC
Same happens on current master (as of b89dbc08b735384cdc9e469b044842fb729ced0b)  without Notebookbar enabled.
Comment 5 Julien Nabet 2019-03-06 20:40:59 UTC
Created attachment 149772 [details]
bt with debug symbols

Update of bt with master sources updated today.
Comment 6 Michael Weghorn 2019-04-10 06:06:33 UTC
*** Bug 124557 has been marked as a duplicate of this bug. ***
Comment 7 Aron Budea 2019-11-26 23:34:08 UTC
I'm not getting an assert anymore in a debug build of LO 6.5.0.0.alpha0+ (08ce9a9293523c2b49e3beda62c0eb0f75be2745) / Ubuntu.
Julien, please check again, and close if your result is the same.
Comment 8 Julien Nabet 2019-11-27 20:38:58 UTC
Thank you Aron for ping me about this.
Indeed, I don't reproduce this anymore with master sources updated today.