Bug 104760 - High CPU load scrolling an empty page horizontally
Summary: High CPU load scrolling an empty page horizontally
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Scrollbars Scrolling-Performance
  Show dependency treegraph
 
Reported: 2016-12-18 19:44 UTC by Telesto
Modified: 2021-12-03 10:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Screencast LibO3003 (907.00 KB, video/x-msvideo)
2016-12-18 19:44 UTC, Telesto
Details
Screencast LO5400 (574.00 KB, video/x-msvideo)
2016-12-18 19:45 UTC, Telesto
Details
Example file (376.47 KB, application/vnd.oasis.opendocument.text)
2021-12-03 10:29 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2016-12-18 19:44:02 UTC
Description:
Compared to LibO3.0.0 the CPU load scrolling an empty page horizontally is quite high

Steps to Reproduce:
1.Open a new (empty) writer document
2.Create an exceptional large page to create scroll bars and extend the effect(for example 80x80).
3.Select the horizontal scroll bar by click it and move it (right and left).
4.Take notice of the CPU usage

Actual Results:  
CPU usage is moving around 18%

Expected Results:
CPU usage should at least be the same as LibO3.0.0: around 7% 


Reproducible: Always

User Profile Reset: No

Additional Info:
Found in:
Version: 5.4.0.0.alpha0+
Build ID: 53edf60c4ce6ed32f87471e018878c40b788005a
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-12-18_06:57:59
Locale: nl-NL (nl_NL); Calc: CL

and in (but less intense: 12%) in
Versie: 4.4.6.3 
Build ID: e8938fd3328e95dcf59dd64e7facd2c7d67c704d
Locale: nl_NL

and in (but less intense: around 10%)
Versie: 4.1.0.4 
Build ID: 89ea49ddacd9aa532507cbf852f2bb22b1ace28

but not in:
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4


User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Comment 1 Telesto 2016-12-18 19:44:56 UTC
Created attachment 129747 [details]
Screencast LibO3003
Comment 2 Telesto 2016-12-18 19:45:23 UTC
Created attachment 129748 [details]
Screencast LO5400
Comment 3 Buovjaga 2016-12-19 16:42:13 UTC
Confirmed.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: db9aec4520766c87a09d4cb0238ed06ebaeaaeeb
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on December 18th 2016
Comment 4 QA Administrators 2017-12-20 03:34:50 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2020-03-24 02:47:48 UTC Comment hidden (obsolete)
Comment 6 Telesto 2020-07-06 16:19:58 UTC
CPU Time
1 of 4: 57.7% (0.883s of 1.530s)

vcruntime140.dll ! memset - memset.asm
sal3.dll ! rtl_allocateZeroMemory + 0x46 - alloc_global.cxx:58
skialo.dll ! sk_malloc_flags + 0x1f - SkMemory_malloc.cxx:54
skialo.dll ! SkMallocPixelRef::MakeAllocate + 0xd0 - SkMallocPixelRef.cpp:40
skialo.dll ! SkBitmap::HeapAllocator::allocPixelRef + 0x66 - SkBitmap.cpp:362
skialo.dll ! SkBitmap::allocPixels + 0x1e - SkBitmap.cpp:228
skialo.dll ! SkSurface_Raster::onCopyOnWrite + 0xe7 - SkSurface_Raster.cpp:146
skialo.dll ! SkSurface_Base::aboutToDraw + 0x55 - SkSurface.cpp:246
skialo.dll ! SkCanvas::onDrawImageRect + 0x198 - SkCanvas.cpp:2531
skialo.dll ! SkCanvas::drawImageRect + 0x17b - SkCanvas.cpp:2002
skialo.dll ! SkCanvas::drawImageRect + 0x42 - SkCanvas.h:1614
mergedlo.dll ! copyArea + 0x201 - gdiimpl.cxx:898
mergedlo.dll ! SkiaSalGraphicsImpl::copyArea + 0xbc - gdiimpl.cxx:922
mergedlo.dll ! SalGraphics::CopyArea + 0x3e - salgdilayout.cxx:675
mergedlo.dll ! vcl::Window::ImplScroll + 0x391 - paint.cxx:1751
mergedlo.dll ! vcl::Window::Scroll + 0x46 - window.cxx:2973
swlo.dll ! SwViewShell::SmoothScroll + 0xa96 - viewsh.cxx:1473
swlo.dll ! SwViewShell::VisPortChgd + 0x644 - viewsh.cxx:1203
swlo.dll ! SwCursorShell::VisPortChgd + 0x8d - crsrsh.cxx:1470
swlo.dll ! SwView::SetVisArea + 0x1b0 - viewport.cxx:246
swlo.dll ! SwView::SetVisArea + 0xde - viewport.cxx:305
swlo.dll ! SwView::EndScrollHdl + 0x138 - viewport.cxx:755
swlo.dll ! SwView::LinkStubEndScrollHdl + 0xd - viewport.cxx:739
mergedlo.dll ! std::_Func_impl_no_alloc<<lambda_c1d440f9d62d684e15df38d1365e5a53>,void>::_Do_call + 0x15 - functional:926
mergedlo.dll ! Control::ImplCallEventListenersAndHandler + 0xbc - ctrl.cxx:315
mergedlo.dll ! ScrollBar::Scroll + 0x46 - scrbar.cxx:1295
mergedlo.dll ! ScrollBar::ImplDragThumb + 0x110 - scrbar.cxx:826
mergedlo.dll ! ScrollBar::Tracking + 0x24f - scrbar.cxx:1031
mergedlo.dll ! ImplHandleMouseEvent + 0xca7 - winproc.cxx:663
mergedlo.dll ! ImplHandleSalMouseMove + 0xa1 - winproc.cxx:2045
mergedlo.dll ! ImplWindowFrameProc + 0xb0 - winproc.cxx:2367
mergedlo.dll ! SalFrame::CallCallback + 0x14 - salframe.hxx:302
vclplug_winlo.dll ! ImplHandleMouseMsg + 0x222 - salframe.cxx:3177
vclplug_winlo.dll ! SalFrameWndProc + 0x1358 - salframe.cxx:5541
vclplug_winlo.dll ! SalFrameWndProcW + 0x5c - salframe.cxx:5894
user32.dll ! DispatchMessageW + 0xf - [unknown source file]
vclplug_winlo.dll ! ImplSalYield + 0xa0 - salinst.cxx:456
vclplug_winlo.dll ! WinSalInstance::DoYield + 0x8f - salinst.cxx:527
mergedlo.dll ! Application::Execute + 0x15e - svapp.cxx:434
mergedlo.dll ! desktop::Desktop::Main + 0xf47 - app.cxx:1600
mergedlo.dll ! ImplSVMain + 0x6e - svmain.cxx:201
mergedlo.dll ! soffice_main + 0xfe - sofficemain.cxx:98
soffice.bin ! main + 0x18 - [unknown source file]
soffice.bin ! func@0x40113d + 0x103 - [unknown source file]
kernel32.dll ! BaseThreadInitThunk + 0x23 - [unknown source file]
ntdll.dll ! __RtlUserThreadStart + 0x2e - [unknown source file]
ntdll.dll ! _RtlUserThreadStart + 0x1a - [unknown source file]
Comment 7 BogdanB 2021-12-03 09:59:38 UTC
Retested. it's ok now. 5-7% CPU.

Please retest


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
Comment 8 Telesto 2021-12-03 10:29:57 UTC
Created attachment 176672 [details]
Example file

Well dragging the horizontal/vertical slider of a 80x80cm page still CPU hogging..

Not sure if I'm drifting off into something else, but the example here (including page filling image) shows pain when scrolling up/down or left right or zoom

But well page size of 80x80 obviously not regular case
Comment 9 Telesto 2021-12-03 10:36:30 UTC
(In reply to Telesto from comment #8)
> Created attachment 176672 [details]
> Example file
> 
> Well dragging the horizontal/vertical slider of a 80x80cm page still CPU
> hogging..
> 
> Not sure if I'm drifting off into something else, but the example here
> (including page filling image) shows pain when scrolling up/down or left
> right or zoom
> 
> But well page size of 80x80 obviously not regular case

Hmm appears to be different: bug 146024
Comment 10 Buovjaga 2021-12-03 10:38:19 UTC
Yes, it's matching 3.3.0 now, let's close

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