Bug 83688 - FILEOPEN/EDITING CPU load stays constant after opening large drawing documents (with Automatic Spellchecking enabled)
Summary: FILEOPEN/EDITING CPU load stays constant after opening large drawing document...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.3.2.2 release
Hardware: Other All
: medium normal
Assignee: Katarina Behrens (Inactive)
URL:
Whiteboard: target:6.1.0
Keywords: haveBacktrace, perf
Depends on:
Blocks:
 
Reported: 2014-09-09 20:27 UTC by Rüdiger Arnold
Modified: 2018-07-17 09:39 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
one file only because of >3MB (2.66 MB, application/vnd.oasis.opendocument.graphics)
2014-09-09 20:34 UTC, Rüdiger Arnold
Details
Callgrind output from 6.0 (7.14 MB, application/x-xz)
2017-10-26 16:37 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Arnold 2014-09-09 20:27:05 UTC
Hello,

if I want to open large drawing files (.odg), then the CPU stick at 100% load (for over 5 minutes, then I stop Libre Office).
If I remove half of the objects from the large file, then at the beginning for 20 second Libre Office Draw has 100% CPU, but then it works normal.

When sticking at 100% I can see the document and the preview, select objects, but editing is impossible, because of the slow windows behaviour.

I have attached two documents. One with the half number of object without sticking and the other with the number that starts the sticking.

I have noticed this beviour first at Libre Office 4.0. and also version 4.3 is showing the sticking. The Version 3.6 is not showing this behaviour and works fine, even with large files.

I have noticed this behaviour under OS Window and Linux on two different computers.

Can someone fixed this?

Kind regards
Comment 1 Rüdiger Arnold 2014-09-09 20:34:45 UTC
Created attachment 106010 [details]
one file only because of >3MB

I add only one odg file (>3MB), which makes the problem 100% CPU, if you remove half of the objects, all is fine an the CPU load goes down, at least when you reload the file.
Comment 2 Robinson Tryon (qubit) 2014-10-10 04:31:37 UTC
(In reply to Rüdiger Arnold from comment #0)
> Hello,
> 
> if I want to open large drawing files (.odg), then the CPU stick at 100%
> load (for over 5 minutes, then I stop Libre Office).
> If I remove half of the objects from the large file, then at the beginning
> for 20 second Libre Office Draw has 100% CPU, but then it works normal.

TESTING with LO 4.3.2.2 + Ubuntu 14.04.

NO REPRO with the given sample ODG. It opened within 10 seconds in Draw, and was editable from the very beginning.

Status -> RESOLVED WORKSFORME

Rudiger: If you're still experiencing this problem with the latest builds of 4.3, please let us know what version of LibreOffice and Windows or Linux distro you're using.
Comment 3 Rüdiger Arnold 2014-11-15 07:59:17 UTC
(In reply to Robinson Tryon (qubit) from comment #2)
> (In reply to Rüdiger Arnold from comment #0)
> > 
> 
> NO REPRO with the given sample ODG. It opened within 10 seconds in Draw, and
> was editable from the very beginning.
> 

Yes the attached document is editable from the early beginning, but the CPU power sticks at 100% CPU power after opening the file. 

Tryon: Would you be so kind
   
   !to check the CPU power and give me feedback! 

after opening my attached document. If you have a powerful hardware (several cores), may be you notice the slowing down. I have a netbook.


> 
> Rudiger: If you're still experiencing this problem with the latest builds of
> 4.3, please let us know what version of LibreOffice and Windows or Linux
> distro you're using.

I tried with also with 4.3.4 The same effect.

My System

Window 7 Starter, SP1, 32 Bit
Netbook AMD Athlon II Neo  K125 Processor 1.7 GHz
RAM 2GB

Thank you for your Feedback
Rudiger
Comment 4 Robinson Tryon (qubit) 2014-11-15 08:10:28 UTC
(In reply to Rüdiger Arnold from comment #3)
> Yes the attached document is editable from the early beginning, but the CPU
> power sticks at 100% CPU power after opening the file. 
> 
> Tryon: Would you be so kind
>    
>    !to check the CPU power and give me feedback! 

TESTING with LO 4.4.0.0.alpha2 + Ubuntu 14.04 (AMD64)

> after opening my attached document. 

After opening, the soffice process stayed very reasonable. It perhaps hit 13% CPU and 20% RAM once or twice, but even while clicking on elements, it remained very low, often below 5% CPU usage.

> If you have a powerful hardware (several
> cores), may be you notice the slowing down. I have a netbook.

My test machine:
- Intel® Core™2 Duo CPU T8300 @ 2.40GHz × 2
- 4GB RAM
- GeForce 8600M GT/PCIe/SSE2

> I tried with also with 4.3.4 The same effect.
> 
> My System
> 
> Window 7 Starter, SP1, 32 Bit
> Netbook AMD Athlon II Neo  K125 Processor 1.7 GHz
> RAM 2GB

It could be a windows-only problem...I'll make a note to test it with Win7.

(Status REOPENED is reserved for bugs that have been marked as FIXED
Status -> UNCONFIRMED)
Comment 5 Buovjaga 2014-11-16 14:06:59 UTC
Windows test results on a machine with about the same specs as in comment 4:
10 secs to open, CPU peaked at 25%.

Win 7 64-bit 4.3.4.1 and Version: 4.4.0.0.alpha2+
Build ID: b021b5983c62e266b82d9f0c5c6d8d8900553827
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-12_01:10:08
Comment 6 raal 2014-12-10 11:39:31 UTC
I can confirm with LO 4.3.4.1, win7. When I open file then process soffice.bin loads CPU ~25%  (intel i5), but this value is still, even if I do nothing with the file. Looks like some loop.
Comment 7 Robinson Tryon (qubit) 2015-12-10 11:14:57 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2017-01-03 19:41:44 UTC Comment hidden (obsolete)
Comment 9 Telesto 2017-10-13 15:58:18 UTC Comment hidden (obsolete)
Comment 10 Buovjaga 2017-10-26 16:37:21 UTC
Created attachment 137307 [details]
Callgrind output from 6.0

I think the point is, like raal said in comment 6, that the CPU stress remains constant even though nothing is done to the document. This is still true.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha1+
Build ID: 02a3abcceeb9be7f101b0bcaf55accc7fb6bfcf7
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on October 26th 2017
Comment 11 Telesto 2017-10-26 17:50:40 UTC Comment hidden (obsolete)
Comment 12 Buovjaga 2017-10-27 09:23:37 UTC
Well, for me on Win 10 the CPU for soffice was hovering between 7% and 16% without doing anything.
Comment 13 Telesto 2017-10-27 10:32:04 UTC
(In reply to Buovjaga from comment #12)
> Well, for me on Win 10 the CPU for soffice was hovering between 7% and 16%
> without doing anything.

I can reproduce it now. It's only happening with Automatic spell Checking enabled
Version: 6.0.0.0.alpha1+
Build ID: b17294826830e278d060c876cf4f94a9b4ec16cc
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-10-23_06:32:42
Locale: nl-NL (nl_NL); Calc: CL
Comment 14 Katarina Behrens (Inactive) 2018-07-17 09:39:17 UTC
Oh look people I fixed this without even knowing I did: 

https://cgit.freedesktop.org/libreoffice/core/commit/?id=e208b81540d43e2b7d3012dfe6bebc59ce638c12
https://cgit.freedesktop.org/libreoffice/core/commit/?id=814e50e6622ea9701094f3ec309a395d175c494f

It's fixed in 6.1 for sure, IDK about 6.0 though