Bug 34507

Summary: Toolbar usage (hovering) causes elevated CPU usage in Windows
Product: LibreOffice Reporter: Steven W <neutro511>
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: bfo.bugmail, jbfaure, pintero, serval2412
Priority: medium    
Version: 3.3.0 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description Steven W 2011-02-20 13:22:28 UTC
Under normal usage, i.e. using the toolbars now and then, this is rarely noticeable, I occasionally hear my fan kicking up a bit.  This doesn't occur with OpenOffice.org I have made 2 videos to illustrate.  In the videos I'm just running my mouse over items in the toolbars to illustrate.  I want to emphasize that there is no noticeable lag and that I probably wouldn't have noticed except for this aging Pentium 4.

This one shows OpenOffice.org 3.3.0:

http://www.youtube.com/watch?v=-OqX-gGX9-8

(note the CPU usage stays relatively low 06 in Windows Task Manager)

This one shows LibreOffice 3.3.1 RC1:

http://www.youtube.com/watch?v=aMcs71y4aQM

(CPU usage goes up to 43 in the Task Manager)
Comment 1 Steven W 2011-06-04 14:15:59 UTC
Bugs still alive and well bumping 'Version'.  3.4 final is still not an option under Version.
Comment 2 Steven W 2011-06-05 11:59:09 UTC
Okay, I had a look with Process Monitor, still tons of calls being made to help directories.  I originally filed this bug:

https://bugs.freedesktop.org/show_bug.cgi?id=33315

I'm thinking this may be a regression, Mr. Lillqvist was speaking of GetHelpText in the code.  I'm not a coder, but looking here:

http://docs.libreoffice.org/vcl/html/toolbox2_8cxx_source.html (I'm assuming this is the latest code)  I see this:

01900 
01901 const XubString& ToolBox::GetHelpText( sal_uInt16 nItemId ) const
01902 {
01903     return ImplGetHelpText( nItemId );
01904 }

By the way, if I'm not looking at the latest code could someone tell me how to access it?

Thanks
Comment 3 Rainer Bielefeld Retired 2011-06-10 02:57:37 UTC
RC2 is bit by bit identical with release version, so separate items in the version picker are useless. Changes have been discussed with Michael Meeks.
Comment 4 Steven W 2011-07-06 15:29:44 UTC
Just noticed this issue occurs with most, perhaps all, toolbars in the application.  Click on View -- Toolbars and choose an item.  Even occurs with items that are "grayed out".
Comment 5 Björn Michaelsen 2011-12-23 11:43:28 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 6 Steven W 2012-02-29 19:23:10 UTC
This behavior is very much the same in LibreOffice 3.5.0.  Changing status back to New.
Comment 7 Steven W 2012-05-06 07:18:59 UTC
If I disable the tooltips the excessive CPU usage stops.
Comment 8 Steven W 2012-06-01 22:21:17 UTC
*** Bug 47090 has been marked as a duplicate of this bug. ***
Comment 9 danny qwertz 2012-06-27 01:57:25 UTC
(In reply to comment #7)
> If I disable the tooltips the excessive CPU usage stops.

How to?
Comment 10 danny qwertz 2012-06-27 02:17:44 UTC
Installing LibreOffice built-in help fixes this problem for me!

http://download.documentfoundation.org/libreoffice/stable/3.5.4/win/x86/LibO_3.5.4_Win_x86_helppack_de.msi.mirrorlist
Comment 11 bfoman (inactive) 2013-08-15 14:21:29 UTC
Checked with:
Version: 4.2.0.0.alpha0+
Build ID: 087a610fcd5c0c354a9ed6bfccd3451b667d62a3
TinderBox: Win-x86@6-debug, Branch:master, Time: 2013-08-04_21:41:24
Windows 8.1 Enterprise Preview 64 bit

No more than 4% CPU usage on i5.
Comment 12 Julien Nabet 2013-11-15 23:29:52 UTC
Steven W: could you give a try to last LO version 4.1.3 after, if needed, having renamed your LO directory profile (see https://wiki.documentfoundation.org/UserProfile)?
Comment 13 Jean-Baptiste Faure 2014-01-02 19:13:22 UTC
Set the version number back to the oldest one in which the problem has been observed.

@reporter: please, could you check:
1/ did you install the help package (by default it is not) ?
2/ do you use tooltips or extended tooltips ?

Best regards. JBF
Comment 14 rascal 2014-01-11 12:06:45 UTC
Just observed this in 4.2.0.2 (RC2)
RC1 worked fine for me, as well as 4.1.4.
My OS is win7 32-bit, czech version.
LO in czech localization.
Comment 15 Jean-Baptiste Faure 2014-01-11 13:06:51 UTC
(In reply to comment #14)
> Just observed this in 4.2.0.2 (RC2)

Please, check that you tested the right build because RC2 has been remake for MS-Windows and Linux. The right build has the following build-ID : 601a398b803303d1a40a3299729531824fe0db56

Best regards. JBF
Comment 16 rascal 2014-01-11 16:14:29 UTC
I have following
4.2.0.2 windows version, build ID cd65d6220c5694ee7012d7863bcde3455c9e3c30
will re-download and update once retested (probably tomorrow).
Comment 17 rascal 2014-01-11 16:26:58 UTC
maybe stupid question - is there a way to find build ID from the setup file (unzipping and locating file in the archive) without installing?
Anyway, I got new .msi from here
http://dev-builds.libreoffice.org/pre-releases/win/x86/
and it has exactly same MD5 as the previous one.
2993DEF412068E991A24986B74D10D09 *LibreOffice_4.2.0.2_Win_x86.msi
2993DEF412068E991A24986B74D10D09 *LibreOffice_4.2.0.2_Win_x86_001.msi
Comment 18 rascal 2014-01-12 18:23:09 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > Just observed this in 4.2.0.2 (RC2)
> 
> Please, check that you tested the right build because RC2 has been remake
> for MS-Windows and Linux. The right build has the following build-ID :
> 601a398b803303d1a40a3299729531824fe0db56
> 
> Best regards. JBF

Where do I get this corrected build?
the one that I got thru this link
http://dev-builds.libreoffice.org/pre-releases/win/x86/
is the same old cd65d6220c5694ee7012d7863bcde3455c9e3c30

thank you
Comment 19 rascal 2014-01-12 18:39:08 UTC
I had this problem after installation. When I closed LO and opened new document, the problem was gone.
Did not test if this will happen after reinstallation also.
Comment 20 bfoman (inactive) 2014-01-24 17:38:04 UTC
(In reply to comment #17)
> maybe stupid question - is there a way to find build ID from the setup file
> (unzipping and locating file in the archive) without installing?

You would need to extract libreoffice2.cab from the msi and view setup.ini or version.ini files.
Comment 21 Jean-Baptiste Faure 2014-07-20 09:32:03 UTC
No answer from reporter since more than six month. Closing as INVALID.
Please, feel free to reopen if you still experience this problem on current stable version (4.2) or next 4.3 version.

Best regards. JBF