Bug 138729 - skia results in slow toolbar and menu
Summary: skia results in slow toolbar and menu
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.2.0
Keywords:
Depends on:
Blocks: Skia
  Show dependency treegraph
 
Reported: 2020-12-08 02:15 UTC by pjw
Modified: 2021-04-29 21:31 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pjw 2020-12-08 02:15:01 UTC
When skia is enabled in Options->View, all toolbar and menu rendering is laggy. Trying to pop-down a menu or hover over an icon results in a delay measured in seconds.

Disabling skia results in normal speed (fast, not noticeable delay)
Comment 1 V Stuart Foote 2020-12-08 18:24:27 UTC
Please post content of Help -> About dialog. And content of the skia.log, on Windows in the %APPDATA%\LibreOffice\4\cache folder.
Comment 2 Luboš Luňák 2020-12-09 11:46:37 UTC
In addition to the info asked above, does it help if Skia is kept enabled but is forced to software rendering?
Comment 3 pjw 2020-12-11 11:24:38 UTC
Will do; it's an intermittent bug and I have now re-enabled skia and will posr logs etc when it next happens.
Comment 4 QA Administrators 2020-12-12 03:50:14 UTC Comment hidden (obsolete)
Comment 5 pjw 2020-12-12 05:21:03 UTC
I can confirm that (so far) skia software rendering fixes it. Details as requested:

------ skia log ------
RenderMethod: vulkan
Vendor: 0x8086
Device: 0x3e9b
API: 1.2.154
Driver: 0.402.743
DeviceType: integrated
DeviceName: Intel(R) UHD Graphics 630
Blacklisted: no

------ version info from About ------
Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 12; OS: Windows 10.0 Build 19041; UI render: Skia/Vulkan; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: CL
Comment 6 pjw 2020-12-12 05:23:23 UTC
...another observation: the FIRST time I run LO after turning off software rendering it works OK. When I restart LO the second time (still with software rendering unchecked), it runs slow again.
Comment 7 Luboš Luňák 2020-12-16 16:23:22 UTC
Can you please check in the About dialog that software rendering is really used when you encounter the problem ("UI render: Skia/Vulkan" vs "UI render: Skia/Raster")? Also, is there any pattern to it working the first time and not the second time (e.g. what is the state the 3rd time)?
Comment 8 pjw 2021-02-12 23:51:03 UTC
When it's working fine, Skia/Raster. 
After unchecking "force s/w rendering", "Skia/Vulcan"

Note:
1. Skia/Vulcan on first restart, and performs OK
2. Second + restart, performance is laggy
3. The lag applies to menus AND tooltips (don't think I mentioned those before)
Comment 9 QA Administrators 2021-02-13 04:04:57 UTC Comment hidden (obsolete)
Comment 10 Luboš Luňák 2021-02-18 12:15:15 UTC
This could be a problem with your graphics drivers. Can you please try updating them to the latest available version?
Comment 11 Luboš Luňák 2021-04-21 08:32:47 UTC
No response, closing. If you still have the problem, please reopen and provide the requested information.
Comment 12 pjw 2021-04-21 08:38:08 UTC
Sorry forgot to reply; latest drivers a month ago made no difference. Will try again after latest windows update.
Comment 13 Luboš Luňák 2021-04-21 09:43:21 UTC
Are you trying latest Intel drivers from your computer vendor (HP, Dell, whatever) or the actual latest Intel drivers directly from Intel?
Comment 14 pjw 2021-04-21 12:26:52 UTC
I can now confirm that with the latest windows update, latest Intel drivers (from Intel), latest NVidia drivers and LO 7.1.2.2 it all seems to work with skia not checked. Info below:

Version: 7.1.2.2 (x64) / LibreOffice Community
Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4
CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: CL
Comment 15 Luboš Luňák 2021-04-21 12:37:38 UTC
But the bugreport is about Skia/Vulkan, so what is the status there?
Comment 16 pjw 2021-04-21 12:41:53 UTC
Ooops...lol...yes...also fine!
Comment 17 Commit Notification 2021-04-21 16:52:22 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/eb10c4dd78703f1af501db14a0c72ef5d1b74be4

blacklist intel 0.402.743 vulkan driver (tdf#138729)

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 18 V Stuart Foote 2021-04-29 20:19:20 UTC
@Luboš, *



On a Dell Windows 10 4K HiDPI laptop with driver (27.20.100.8935)
RenderMethod: vulkan
Vendor: 0x8086
Device: 0x3e9b
API: 1.2.154
Driver: 0.402.743
DeviceType: integrated
DeviceName: Intel(R) UHD Graphics 630
Denylisted: yes

did a driver update (27.20.100.9466)

RenderMethod: vulkan
Vendor: 0x8086
Device: 0x3e9b
API: 1.2.170
Driver: 0.402.1274
DeviceType: integrated
DeviceName: Intel(R) UHD Graphics 630
Denylisted: no

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: f616d96bd8ce8986e4cc204953db0467e6060b5c
CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

of course no deny list for this current driver. But not clear to me if this also needs to be added to the Skia deny list. Overriding the Skia deny list for the 0.402.743 driver and using Vulkan had no issues.

I did note some issue with handling the view port buffering when Writer smooth scroll was enabled with either driver and this GPU. Filing another issue for that.