Bug 107189

Summary: Notebookbar: CPU core hits 100% when in print preview mode
Product: LibreOffice Reporter: Yousuf Philips (jay) (retired) <philipz85>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: heiko.tietze, ilmari.lauhakangas, libretraining.tutorials, szymon.klos, xiscofauli
Priority: medium Keywords: haveBacktrace, perf
Version: 5.4.0.0.alpha0+   
Hardware: All   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 102062, 136524, 113510    
Attachments: Callgrind output from 5.4

Description Yousuf Philips (jay) (retired) 2017-04-15 18:37:00 UTC
Steps:
1) Start Writer with tabbed Notebookbar
2) Select View tab and click Print Preview
3) Select Page Layout tab
4) Notice flickering at the above paragraph spacing spinbox and notice a CPU core of your system to hammered at 100%.

Version: 5.4.0.0.alpha0+
Build ID: 0c551c86f701c1f1865760e122d901c933b8fbe5
CPU threads: 2; OS: Linux 3.19; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-04-06_00:40:42
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Telesto 2017-04-16 11:05:05 UTC
No repro with:
Version: 5.4.0.0.alpha0+
CPU threads: 4; OS: Windows 6.19; UI render: GL; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-04-05_23:32:27
Locale: nl-NL (nl_NL); Calc: CL
Comment 2 Yousuf Philips (jay) (retired) 2017-04-16 16:32:44 UTC
@Xisco, @Bouvjaga, @Heiko: Can either of you repo this on Linux?
Comment 3 Buovjaga 2017-04-16 17:10:35 UTC
Created attachment 132610 [details]
Callgrind output from 5.4

Repro.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: 9f5a275a42659339ee41c4e0a4d860f2886470e4
CPU threads: 8; OS: Linux 4.10; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on April 15th 2016
Comment 4 Yousuf Philips (jay) (retired) 2017-04-16 18:51:58 UTC
@Buovjaga: Thanks for the callgrind.

@Syzmon: Any time to fix this performance issue?
Comment 5 Yousuf Philips (jay) (retired) 2018-02-09 15:24:09 UTC
No longer repo it with master.

Version: 6.1.0.0.alpha0+
Build ID: d09bdaaa660c40df241e6e1c0b8a3e905db85420
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group