Created attachment 75642 [details] Sample document When you open attached document in LibreOffice, just using the page scrollbars constantly, or using page-up page-down keys make the CPU usage go to 80-100% and also the memory keeps on increasing about 1 MB/sec. This never stops increasing as long as you use the page scrollbar. In our embedded situation we have linked the sections to real sub documents. In this case, when just open, LibreOffice uses 300 MB. When using the page scrollbar, memory goes up to 1.8 GB and then LibreOffice just crashes.
We have the same problem on a LO 3.5.5 installation.
@Giorgio: what's the difference using with Bug 60418?
(In reply to comment #1) > We have the same problem on a LO 3.5.5 installation. Bug version is oldest version of LibreOffice that can reproduce this behavior.
The other Bug 60418 talks about huge memory consumption and CPU usage WHILE opening a complex document. This was even due to the presence of 'form:form' tags in the content.xml. This bug speaks about huge performance peaks while EDITING the document, after it has been opened just fine.
Thanks for your clear reply. (In reply to comment #4) > This bug speaks about huge performance peaks while EDITING the document, > after it has been opened just fine. I can confirm that behavior using Linux Mint 14 x64 and LibreOffice Version 4.1.0.0.alpha0+ (Build ID: 5fcb553c862d407aadb0320925723d3c2f70bfe). Kind regards, Joren
What can we, as a company do, to give this issue a high priority? How can we fund one or more developers to get this fixed quickly?
Anyone?
(In reply to comment #7) > Anyone? Hi, I'm sorry, I didn't saw your question. I think these 2 emails will be interesting to read: http://lists.freedesktop.org/archives/libreoffice/2013-February/045455.html and http://lists.freedesktop.org/archives/libreoffice/2013-February/046372.html As mentioned there, you can contact existing consulting company like: * Lanedo (http://www.lanedo.com/libreoffice.html) * Credativ (http://www.credativ.com/) * Codethink (http://www.codethink.co.uk/) * Collabora (https://www.collabora.com/) and individual certified developers (they are working on a list). I hope this is an answer to your question? Kind regards, Joren
And of course SUSE and others provide support & consultancy :-)
I can confirm this issue in LibreOffice 4.0.2.1 on Fedora i686.
(In reply to comment #10) > I can confirm this issue in LibreOffice 4.0.2.1 on Fedora i686. Thanks for confirming on another platform too. Please mind that the version of the bug report is the oldest version we can reproduce this behavior with. In this case 3.5.5 release is the oldest. Therefore I revert you version changes. Kind regards, Joren
I have been experiencing this on some of my documents also and I have discovered something that may help in locating the problem. I tried it with the sample document attached to this bug and it worked for it also. Go to the View menu and toggle the "Hidden Paragraphs" option. Evidently this causes it to halt whatever loop it is stuck on. This is not a permanent solution as my documents started to respond slowly again after a time and then I needed to toggle the option again. To force it to exhibit the problem all one needs to do is to go to the Tools menu and select Update - Update all. An extreme lag when doing any typing will be immediately noticed which can then be fixed by toggling the "Hidden Paragraphs" option again. It doesn't matter if the option is initially enabled or disabled. The lag will occur with it either way and the document will start responding again when it's toggled. I would assume this bug is related to bugs 59714 and 58029 which were fixed. Bug 56963 may also be affected by this but I haven't been able to test it because the sample document seems to be no longer available. I believe this bug is a duplicate of bug 60418 in which the "Update All" and the "Hidden Paragraphs" commands exhibit the same behavior as they do for this bug.
Using attached file, I can scrolling up & down fast enough (though there is little lagging). No halt when toggle off Hidden Paragraph, & no crash at all. Using 'only' 1.3GB dual Pentium processor with 2GB ram (LO 4.0.4.2 Win7 32bit). @Giorgio/Have you tried latest stable release & resetting user profile?
@ign_christian : no, haven't tried yet with latest stable release. One specific behaviour though was, apart from the small lag, the memory consumption of soffice.bin kept growing and growing just by using the scrollbar. And if you keep doing this long enough (several minutes), the memory consumption became so high that eventually LO crashed (going over 1.x GB (32-bit)). Can you confirm the ever-increasing memory consumption by just using scrollbars?
Yes increasing slightly, I think it's not significant. No huge increasing like Bug 62768. If using Windows, I suggest to do regularly defragmenting together with some registry & file cleaning. I believe it gives significant result :)
Increasing 'slightly' a second, BUT constantly by small amounts just by using the scrollbar, until, after having worked for hours on the document and having used the scrollbar a lot, it reaches more than one GIGABYTE and finally an APPCRASH occurs. I don't see how this is insignificant....
It is an unusual problem; the document has no large images in it (that I can see) which would be the obvious causes of leaks. If someone has a build with symbols they can reproduce this in, then running under valgrind like this: cd /path/to/program export OOO_DISABLE_RECOVERY=1 valgrind --leak-check=full --show-reachable=yes --leak-resolution=high soffice.bin -writer >& /tmp/val-log please be aware this will run 80x slower or so; when it's done (do a bit of scrolling etc.) then gzip and attach the /tmp/val-log Hopefully that shows us where the issue is quite easily :-) NB. you need a build with symbols [ on a distro just installing the debuginfo prolly does it ]. Thanks !
And remember also that lags which cause increased cpu usage can be triggered by going to Tools | Update | Update All when View | Comments is enabled. The extreme lag will be immediately noticed when typing anything into the document. The lag can then be caused to disappear by toggling the View | Hidden Paragraphs option either on or off.
Dear Bug Submitter, Please read the entire message before proceeding. This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/FDO/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team
Dear Bug Submitter, Please read this message in its entirety before proceeding. Your bug report is being closed as INVALID due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of FDO
Hi all, tested and I can confirm the described behavior: Opened test file in LO 4.3b1, grab scrollbar and move it up and down constantly. Activity monitor on OSX shows CPu usage going to 100%. If I let go of the scrollbar, CPU usage normalizes. This is a document with lots of comment. So it's for Devs to decide wether this CPU usage is expected and "normal" or if this needs fixing. From QA side at least, I can set this to NEW.
With version 4.2.4 under linux I see nothing abnormal anymore when trying to scroll. But there still is an EXTREME lag when trying to type anything into the document as exhibited when perfoming the actions described in an earlier post.
I have the same issue, especially with documents containing (not so) large immages. Affects .odt as well as .doc and .docx The lag is far more evident when the incriminated immage is visible. Not all immages cause the problem. LO 4.2.3 and 4.2.2 on Ubuntu 12.04 on a HP 255 laptop
With LO Versión: 4.3.4.1 Id. de compilación: 430m0(Build:1) I`m editing a file of 224 pages and lots of tables and it freezes constantly, it keep using 100% of one cpu core, and quit of responding even after several minutes. So I must kill LO and reopen the document with the correspondent recuperation and lost of work.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.4 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-12-20
Suffering same problem with LO 5.1.3 on Linux Lite 2.8 (ubuntu derivative) x64, system fully updated. Any file of any larger size will freeze on normal operations such as find/replace all paragraph endings. CPU typically goes to 49%, which doesn't sound too bad, but the program freezes. This is happening on a simple .odt file of 1.7MB size. Have had this problem since Day One on this system, using several versions of LO. Machine is 2.7 GHz Core2Duo with 4gb ram and an SSD. Should not be a problem.
This has been a problem since staroffice and possible. solved by minimizing the number of graphic elements loaded at startup of a document. For pages that are not plus minus 10 pages from the image on the screen.
This has been a problem since staroffice and possible. solved by minimizing the number of graphic elements loaded at startup of a document. For pages that are not plus minus 10 pages from the image on the screen. This is a problem on all platforms including Windows 7, 8, 10.
Took a look. What seems very expensive are the comment visualizationms at the right. Switching these off makes all much better/responsive. I could not reproduce the ever-growing mem consumtion and not the crash, may be that a mem leak we had is already fixed.
Testing in Version: 5.2.0.0.alpha0+ Build ID: 5a4b01f63d3f2a7d7d6fa8cf9ca6a328c5da7a6a CPU Threads: 2; OS Version: Linux 4.2; UI Render: default; TinderBox: Linux-rpm_deb-x86@71-TDF, Branch:master, Time: 2016-04-08_03:26:11 Locale: nl-NL (nl_NL.UTF-8) - after some scrolling ~constantly uses full cpu (one core) - after killing, turning off Tools > Options > Writer > View .. Comments I can do with the file what I want. @GiorgioMigliaccio all the comments.. looks as a paste from html? Or what about all the locked text frames.. Anyway: special document :)
Yes, special document, but the comments - rendering/creation/handling seems too expensive. Would be worth a look.
Did some evaluation and indeed the comments are quite expensive currently, they seem unnecessarily often to be created/layouted and positioned, most probably without even being visible. Would require some work, but could definitely be enhanced...
This seems it was not possible to tackle by volunteer developers. So to update on Joren's (and others) comments, there's a thriving ecosystem of LibreOffice support companies now; a list of those with certified developers is linked here: http://www.libreoffice.org/get-help/professional-support/
FWIW, ballpark number for fixing this is around one week of work ...
Having high usage by soffice.bin (LibreOffice 5.0.4.2 from openSuse 42.1), 100% on at least one of the 4 threads in my i5 Toshiba notebook. Blocks update of the screen for most apps. Lowering priority of soffice.bin in KSysGuard didn't help. Was editing a 6.5 MB .doc file that contained about 8 JPGs, 3 tables, and a lot (probably too many) tracked changes. One 'save' of the file hadn't finished after 30 min; had to kill soffice.bin. Another such 'long save' couldn't be stopped; had to power down. Noticed that tables were corrupted, a cell suddenly had a 1x1 table in it. Guessed correctly that deleting a row would get rid of it, but the content of the cell went too. Accepting all tracked changes helped.
Created attachment 129014 [details] proposal document edited with tracked changes Document has been saved back and forth between .doc and .odt
Just noticed that the file grew to 2.5 MB. Not sure why as it remains at 15 pages when changes are not shown.
The uploaded file of 2.5 MB no longer opens on LibreOffice 5.0
Dup of bug 97698?
*** Bug 120102 has been marked as a duplicate of this bug. ***
(In reply to Cor Nouws from comment #30) > Testing in Version: 5.2.0.0.alpha0+ > Build ID: 5a4b01f63d3f2a7d7d6fa8cf9ca6a328c5da7a6a > CPU Threads: 2; OS Version: Linux 4.2; UI Render: default; > TinderBox: Linux-rpm_deb-x86@71-TDF, Branch:master, Time: 2016-04-08_03:26:11 > Locale: nl-NL (nl_NL.UTF-8) > > - after some scrolling ~constantly uses full cpu (one core) > - after killing, turning off Tools > Options > Writer > View .. Comments > I can do with the file what I want. > > @GiorgioMigliaccio all the comments.. looks as a paste from html? > Or what about all the locked text frames.. Anyway: special document :) Can everyone please try with a fresh build or 6.2? Michael Stahl has done some work in this area and I confirm that I cannot get LibO into the state described by Cor above. We have various reports for general bad perf regarding comments: https://bugs.documentfoundation.org/buglist.cgi?keywords=perf%2C%20&keywords_type=allwords&list_id=911413&query_format=advanced&resolution=---&short_desc=comments&short_desc_type=allwordssubstr Hopefully we can close this one? Arch Linux 64-bit Version: 6.3.0.0.alpha0+ Build ID: a2a762a9b6cad4ab0bb1b71b99aebc8c047c94d0 CPU threads: 8; OS: Linux 4.20; UI render: default; VCL: gtk3; Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US Calc: threaded Built on 14 February 2019
(In reply to Buovjaga from comment #41) > Can everyone please try with a fresh build or 6.2? I opened sample document from initial bug report without any problems (3 or 4 seconds and CPU usage around 40% during that time). Version: 6.3.0.0.alpha0+ (x64) Build ID: f42554a1886ebe49170c25096dc3281b2c7bb1f4 CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; TinderBox: Win-x86_64@42, Branch:master, Time: 2019-02-08_22:37:30 Locale: en-US (de_DE); UI-Language: en-US Calc: threaded So I would say RESOLVED WORKSFORME.
This still still holds: "using the page scrollbars constantly, or using page-up page-down keys make the CPU usage go to 80-100%" (comment 0) Same for comment 32 & comment 34. However, the title should be rephrased, because 1. The memory issue is long gone.. 2. The performance of tracking changes has improved Comment 32 and 34 are still adequate (see also bug 60418 bug 119485, bug 122971, bug 122969.. which have all the same root-cause) I personally would rephrase the title leave this one open, and close the rest..
*** Bug 60418 has been marked as a duplicate of this bug. ***
*** Bug 119485 has been marked as a duplicate of this bug. ***
*** Bug 122971 has been marked as a duplicate of this bug. ***
*** Bug 122969 has been marked as a duplicate of this bug. ***
Callgrind traces in bug 60418 and bug 122969
*** Bug 92011 has been marked as a duplicate of this bug. ***
(In reply to Buovjaga from comment #48) Callgrind traces in bug 60418 and bug 122969 & bug 92011 comment 7
Some notes from my unsucessful attempt to fix this: (1) I can fix the typing part by removing the WB_DIALOGCONTROL flag from the SwEditWin constructor. The time is being spent searching through tons of child windows on every key stroke. I don't think this flag is necessary because we're not doing dialog things in the main window. But I'm probably wrong and there is some weird reason we need it. (2) I can fix the paging/scrolling part by commenting out the if ( pPostItMgr ) // #i88070# { pPostItMgr->Rescale(); pPostItMgr->CalcRects(); pPostItMgr->LayoutPostIts(); } code in void SwViewShell::VisPortChgd As far as I can tell, the UI still works fine without those lines of code, because don't actually need to run the bulk of layout when the viewport changes. According to the bug report in the comment https://bz.apache.org/ooo/show_bug.cgi?id=88070 they are there because accessibility stuff is being calculated during the layout loop. So one possible fix would be to pass some sort of flag down to CalcRects and LayoutPostIts to say "only do the accessibility stuff"
Word continuously crashes since yesterday morning, when typing or even scrolling through a Word-file. CPU increases to around 30%. I have already - Verified that a recent update might be the cause, that is not the case - I have temporarily disabled autocorrect and spell check disabled, that does not make any difference - I have tried to open the file on another computer and in safe mode (both windows and office), still crashes https://play.google.com/store/apps/details?id=com.CRE8.LudoChat - I am able to open and type in the same file in WordPad, but that program doesn't offer everything I need. I think the file (s) I work with might be the problem. However, they also include small files of, for example, 6MB, which shouldn't cost that much effort right? The content of the files is very valuable to me. Does someone have an idea of how to fix the problem?
Created attachment 151939 [details] Example file
If I scroll continuously (by placing the cursor in the scroll bar and scroll down the page at a time) the CPU usage falls to about half of what it was. The CPU usage rises as soon as the scrolling stops. That is strange! We have a guide for the setup, which you can find on the following link:https://www.techsupportdubai.com/led-tv-repair/ If I take a screen dump with Alt/PrtScr (or it might be AltGr/PrtScr) the CPU usage jumps while the screenshot is taken, and then falls to virtually zero. This last bit is a bit intermittent - mostly it does. It might depend on whether the Writer Window is active when the screen dump is taken. Why does the Writer CPU fall after the screenshot?
I have 4 CPU at my computer. With attachment from comment 53 CPU 4 100% for 25 seconds After that I was scolling the document and all 4 CPU were at 20-30% When closing again CPU 4 at 100% for 20 seconds. Tested with Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: 5aa74aa1e6fac571f99146ebcb6adc9feb1459ad CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-07-28_19:35:14 Calc: threaded
Much better on Version: 7.3.0.0.beta1+ (x64) / LibreOffice Community Build ID: 8c137ff0e201c2d0ecd1bb567496dbed8e5eced7 CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: ro-RO (ro_RO); UI: en-US Calc: threaded No 100% on CPU. Maximum at 80% for short time. 200 MB memory and remaining there. Please retest.
attachment 151939 [details] is still very laggy, but attachment 75642 [details] is quicker. Both use a bit over 50% CPU, though. Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 4ac9032163cf55c160145373e7c41741c9c339ca CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: fi-FI (fi_FI); UI: en-US Calc: threaded
"Sample Document" is still in the 85% range while scrolling for me. Memory usage starts at about 931.4 MB just after the document is opened, then keeps growing as I scroll. Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: e9332dcdc8f2ea268d1b17c73d43a8834cf75365 CPU threads: 10; OS: Mac OS X 12.0.1; UI render: Skia/Metal; VCL: osx Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
It seems the problems are on Linux and Mac OS. Not Windows.
attachment 151939 [details] still somewhat laggy in the latest commit of Linux 7.4 bibisect repo, but the oldest of 7.3 repo is certainly much worse, like freezing. Therefore I think we can lower priority and severity. Version: 7.4.0.0.beta1+ / LibreOffice Community Build ID: cdf48e57da6b8a6a5eb4131340fa2c14be135714 CPU threads: 8; OS: Linux 5.18; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded
*** Bug 155776 has been marked as a duplicate of this bug. ***
*** Bug 113867 has been marked as a duplicate of this bug. ***
repro 24.2+ Memory climbs (slowly, but constantly) when holding page-up to scroll. Scrolling is definitely not fast.
Created attachment 196164 [details] Sysprof 46 profiling capture of LibreOffice 24.8 Flatpak on Wayland It seems like nobody has tried using Sysprof to profile this yet. Let's see if this capture can be useful to the devs. In this capture (and screenshots), you can see two important parts in the timeline: - The 1st third/half is "loading the document" (app unresponsive for 35 secs) - The last third/half is trying to scroll the document Will attach screenshots for convenience, of: - the flamegraphs (most costly and frequently called functions) - the "marks" view (in case the operating system's compositor matters) Tested with: Version: 24.8.0.3 (X86_64) / LibreOffice Community Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583 CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Flatpak
Created attachment 196165 [details] Screenshot from Sysprof with LOo 24.8 - flamegraph when opening attachment 151939 [details]
Created attachment 196166 [details] Screenshot from Sysprof with LOo 24.8 - marks when opening attachment 151939 [details]
Created attachment 196167 [details] Screenshot from Sysprof with LOo 24.8 - flamegraph when scrolling attachment 151939 [details]
Created attachment 196168 [details] Screenshot from Sysprof with LOo 24.8 - marks when scrolling attachment 151939 [details]
Created attachment 196228 [details] Perf flamegraph of scrolling in attachment 151939 [details] Dragged scrollbar down. I cancelled it in the middle of waiting for the scrolling to finish. Most of the time seems to be spent in SwTextFormatter::BuildPortions Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 028ae168ca787e5c92560d051009a0f115911b57 CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: CL threaded
I'm also a Linux user, and have had slow scrolling issues for large documents off and on for a while. Before, on X11, it would happen that scrolling with the mouse wheel or by dragging the scroll-bar would be unbearably slow, but using the page-up/page-down keys would still be quick. I haven't found the zoom percentage to make any difference; however, at one point (a couple of years ago) I was able to circumvent the slowness by enabling the option "Tools > Automatic Spell Checking". That was a weird one (why would enabling a check cause a speed-up?). However, for the past several months, I have been using Wayland and Qt6. Currently, LibreOffice says its using "VCL: kf6 (cairo+wayland)". And just recently--within the last four updates--all scrolling, whether by mouse, scroll-bar or page up/down keys is so slow in large documents (>40 pages, it gets slower the more pages there are) that the program is practically unusable. System resources definitely aren't the issue, as I have an 11th gen i7, an RTX 3080 and 32GB of ram. When performing many scroll actions (the document won't actually perform them, but just locks up), my fans will spin up a bit and the CPU usage will go up 4-8%. I wouldn't say the RAM usage is affected (no noticeable change).
(In reply to zaakari from comment #70) > However, for the past several months, I have been using Wayland and Qt6. > Currently, LibreOffice says its using "VCL: kf6 (cairo+wayland)". And just > recently--within the last four updates--all scrolling, whether by mouse, > scroll-bar or page up/down keys is so slow in large documents (>40 pages, it > gets slower the more pages there are) that the program is practically > unusable. That is bug 152911, which according to the latest comment might be an issue with KDE's Kwin window manager.