| Summary: | EDITING: Writer 3.5.2 slow typing in large documents | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Jamee Mikell <jamee.mikell> |
| Component: | Writer | Assignee: | Cédric Bosdonnat <cedric.bosdonnat.ooo> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | caolan.mcnamara, ced, cedric.bosdonnat.ooo, courrier.oou.fr.mjk, jbfaure, LibreOffice, michael.stahl |
| Priority: | medium | Keywords: | regression |
| Version: | 3.6.0.1 rc | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | target:3.6.0 target:3.5.5 | ||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
Sample document thousands of pages
test-bug.doc (Word 97-2000-XP) |
||
|
Description
Jamee Mikell
2012-04-19 15:04:26 UTC
Checked with: LOdev 3.5.3rc1+ Build ID: 51648779-22e3d74-d554af7 Windows 7 Professional SP1 32/64 bit AMD Phenom II X2 3.1 GHz, 8 GB RAM Lorem ipsumed 745 pages of plain text in English with page number in footer, saved as ODT. Initial load spike at ~56%. No slowness at any time. Downloaded and installed 3.5.3rc2. The typing speed issue appears to be resolved. I'm still seeing an extended CPU spike, but that seems to be attributable to Language Tool 1.7 now. I also noted that, during the spike with Language Tool, CPU can exceed 25%, which it didn't in 3.5.x before. Subsequent test in 3.5.3 release confirms this is resolved in 3.5.3. I did note a selection performance issue (slow selection using keyboard in large document) and will post in a separate bug report. Might be related to problem Bug 47644#c17 with attachment 59616 [details] @Jamee Mikell: Of course we need a test document. Can you confirm fix for your problems with fix for Bug 48011? (In reply to comment #3) > Might be related to problem Bug 47644#c17 > > with attachment 59616 [details] > > @Jamee Mikell: > Of course we need a test document. > Can you confirm fix for your problems with fix for Bug 48011? Note this is fixed in 3.5.3. See comment 2. https://bugs.freedesktop.org/show_bug.cgi?id=48932#c2 Thanks. Created attachment 61925 [details] Sample document thousands of pages I now hijack this Bug for problems I observe with attached sample document I created from "Bug 47644 - FILEOPEN: Huge load time and CPU load with .doc file" attachment 59616 [details] saving that document with LibO 3.5.4 as .odt That can be edited quite normal with LibO 3.4.5 and also with Server installation of Master "LibO-dev 3.5.0 – WIN7 Home Premium (64bit) English UI [(Build ID: 3b32204-7f92fce-2ba0a9f)]" (2011-09-03). But Editing (scrolling, typing) is a pain with 3.5.4 RC1 I doubt that so many users have 1000 pages documents, so only "major" Already [Reproducible] with Server installation of Master "LibO-dev 3.5.0 – WIN7 Home Premium (64bit) English UI [(Build ID: 5d1a991-4cb1bac-ca7e6f5-9125509-ce71330)]" (2011-11-09) Older Versions (2011-09-06, but not 2011-09-03) work fine for a while, but after 1-2 Minutes editing LibO will crash @Caolán: May be this is a similar area as "Bug 48011 - LibreOffice 3.5 is unusably slow with large documents"? Can't be *exactly* the same anyway as the other one was specific to the Linux gtk version. SwPageFrm::PaintBreak/SwFrameControlsManager::GetControl shows up a lot on some sampling of what's happening during the slow bits yeah, SwPageFrm::PaintBreak disabled == fast, SwPageFrm::PaintBreak enabled == slow Caolan McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b63766b3dd453a82f59db505c736d861f662cc0f Resolves: fdo#48932 super slow typing and scrolling in large documents caolanm->cedric: can you give the above patch a look over and see if my assumptions are right. e.g. that there is only one/zero FrameControl for a SwFrm* in any given class, and that there's no need for the pToTest->IsHeader( ) == bHeader test because we keep the header, footer and page ones in different containers anyway, and that a FrameControl is always associated with the same SwFrm*, all in all we can use a map here and look up a FramControl using a SwFrm* directly as the key in a map, which makes this example *fly* along during scrolling and typing into it Caolan McNamara committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=4bc06051d1bf484a6f98186f0a2d168b3d98b9cc&g=libreoffice-3-5 Resolves: fdo#48932 super slow typing and scrolling in large documents It will be available in LibreOffice 3.5.5. Created attachment 63227 [details]
test-bug.doc (Word 97-2000-XP)
Just for testing help.
This test file is from #47644 and is the source from which the other odt test file was generated.
The difference is the file format.
Here is my results using LO 3.5.5rc1 under Windows 2000. - i still see a 100% CPU activity after document loading (using both the attached test files) and i was unable to see it falling down. Editing the document is still very difficult in this situation. - i've seen many crashes during this testing session: 2 out of 3 with the ".doc" file and almost always with the ".odt". It happens in the first seconds after the documents has loaded and just appeared on the screen. With the odt some second after you try to interact with the document. Now i'm in a loop where i'm trying to open the odt file and LO try to recover, it succeeds, then crash. - the ".doc" test document loads much much faster than ".odt" (1 minute versus 6 minute). Looks like the ".odt" executes more than one iteration before opening file, as shown by the progress bar. I have confirmed that this bug is still not fixed on version 3.6.0 RC1. To make the failure occur, open the test-bug345.odt file attached to this thread for editing, scroll up & down in the document for 5 or 10 seconds and then randomly select any text. I have a 3ghz quad core computer and the application freezes on me and is unresponsive for 3 minutes before I can once again do any editing. As soon as I try to select any text again it again becomes unresponsive for another 3 minutes. On Windows XP it will seem to be working for a while and then the program will totally crash. I am still unable to upgrade from 3.4.6 because of this regression. Its important to not reopen bugs which are fixed if you have some remaining problem which appears similar.. Please open a new bug with your exact problem and details of how to reproduce. We fixed the slow drawing of the inter-page widgets under this id. So there's got to be an additional problem we need to identify. |