Bug 145963 - Slow typing with version 7.1 or above on Windows 11
Summary: Slow typing with version 7.1 or above on Windows 11
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: x86-64 (AMD64) Windows (All)
: highest major
Assignee: Luboš Luňák
URL: https://ask.libreoffice.org/t/slow-ty...
Whiteboard: target:7.4.0 target:7.3.2 target:7.2....
Keywords: bibisected, bisected, perf, regression
: 145575 145761 146059 146878 147261 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-30 10:56 UTC by dewanckelef@hotmail.com
Modified: 2022-03-15 11:15 UTC (History)
14 users (show)

See Also:
Crash report or crash signature:


Attachments
Bibisect log (4.33 KB, text/plain)
2021-12-14 15:25 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dewanckelef@hotmail.com 2021-11-30 10:56:03 UTC
Description:
They are problems with LibrOffice Writer in Windows 11. We are from a computer store and have this problems on all new computers.
When you install LibreOffice 7.2 or above the Writer program types verry slow. The charecters comes 3 to 10 seconds after the typing. So it's difficult for typing, and the Writer is just for typing. 
What i have tested:
- New installation of Windows 11 with only Windows, the drivers and LibreOffice: Problem of slow typing 
- Installations of LibreOffice on more than 10 computers or laptops with Windows 11: allways the same problem.
- Installation on Windows 10: no slow typing, no problems at all
This are the versions i have tested:
Libreoffice 7.1.3.2 on Windows 10 Works perfectly
Libreoffice 7.2.3.2 on Windows 10 Works perfectly
Libreoffice 7.1.3.2 on Windows 11 Works not good, slow typing
Libreoffice 7.2.3.2 on Windows 11 Works not good, slow typing
Libreoffice 7.0.2.1 on Windows 11 Works perfectly
Libreoffice 6.4.7.2 on Windows 11 Works perfectly



Steps to Reproduce:
1. The only thing that's work is install a older version of LibreOffice
2. Delete user profile doesn't work: same problem
3. Enable of disable openGL, java and other things: same problem

Actual Results:
I don't know how you can fixed. The only solution is install a old version

Expected Results:
Nothing, the problem is still the same


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
It must be fixed, we are from a computer store and install normally always LibreOffice, but when these problems are note fixed we must use a other program. We have also tested: OnlyOffice and freeoffice. With this programs there is no problem.
Comment 1 Telesto 2021-12-01 08:01:35 UTC Comment hidden (obsolete)
Comment 2 dewanckelef@hotmail.com 2021-12-01 10:18:34 UTC Comment hidden (obsolete)
Comment 3 Harald Berger 2021-12-04 12:42:25 UTC
Note: The error message was caused by this question in AskLibreOffice:

https://ask.libreoffice.org/t/slow-typing-with-writer-in-windows-11/71028
Comment 4 Timur 2021-12-10 09:56:40 UTC
*** Bug 146059 has been marked as a duplicate of this bug. ***
Comment 5 Timur 2021-12-10 09:58:34 UTC
*** Bug 145761 has been marked as a duplicate of this bug. ***
Comment 6 Timur 2021-12-10 10:02:44 UTC Comment hidden (obsolete)
Comment 7 dewanckelef@hotmail.com 2021-12-10 14:38:54 UTC
(In reply to Timur from comment #6)
> I set New by duplicates. It's Major issue, I mark so, we don't have to wait
> dozen of reports to see a problem. By report is a regression. There's
> another bug for Calc. 
> 
> Reporter, to be sure but it's still valid, please test with LO master that's
> 7.4+ now, installing additional development version from
> https://dev-builds.libreoffice.org/daily/master/current.html

I have also tested the new development version, but they have the same slow typing problem. 
With the old 7.0.x version it works fine, but not with the newer versions.
Comment 8 Telesto 2021-12-13 21:15:52 UTC
Everything is smooth in 7.1b1
Comment 9 Telesto 2021-12-13 21:18:18 UTC
@QA
Bibisect can also be done on a VM: https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/
Comment 10 Telesto 2021-12-14 15:25:02 UTC
Created attachment 176929 [details]
Bibisect log

Bisected to

author	Luboš Luňák <l.lunak@centrum.cz>	2021-02-10 16:37:17 +0000
committer	Luboš Luňák <l.lunak@collabora.com>	2021-02-11 11:07:11 +0100
commit 843af72bcc9047867588e29c8e10b84a5e58d70e (patch)
tree 88c9412c20260832e905461df59e7ea9b7009805
parent ab882c0506c886eb32d8de0d2441de94920598bc (diff)
make win32 variant AnyInput() not deliver events (tdf#140293)
Win32 API PeekMessage() actually may deliver events, despite
what the name may suggest, even with PM_NOREMOVE argument.
That means this is problematic for use in AnyInput(), as that
function should just check the event queue but not do anything
with it. Using GetQueueStatus() should solve the problem.

See https://lists.freedesktop.org/archives/libreoffice/2021-February/086788.html
for further details.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=843af72bcc9047867588e29c8e10b84a5e58d70e
Comment 11 Telesto 2021-12-14 15:26:45 UTC Comment hidden (obsolete)
Comment 12 Luboš Luňák 2021-12-14 17:21:15 UTC
(In reply to Telesto from comment #11)
> Adding CC: to Luboš Luňák
> 
> Bumping to highest, because LibO being unusable on Windows 11.

I don't have Windows 11. Could you give me a CPU profile from the Diagnostic Tools in Visual Studio to possibly point to where the code is slow?
Comment 13 Telesto 2021-12-14 18:32:43 UTC
(In reply to Luboš Luňák from comment #12)
> (In reply to Telesto from comment #11)
> > Adding CC: to Luboš Luňák
> > 
> > Bumping to highest, because LibO being unusable on Windows 11.
> 
> I don't have Windows 11.

Well you you're in luck. You can use Microsoft Windows 11 Enterprise (Developer Edition) virtual machine  for for free. Visual studio and such pre-installed :-).
Only limitation is time-trail 09/2022. 

https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

> Could you give me a CPU profile from the Diagnostic Tools in Visual Studio to possibly point to where the code is slow?

Will try, but does it give enough information with an ordinary daily build?
Comment 14 Luboš Luňák 2021-12-14 20:24:00 UTC
(In reply to Telesto from comment #13)
> Will try, but does it give enough information with an ordinary daily build?

I think it would need (debug) symbols, which I don't know if are included with dailies. But if there's a VM then I can test it myself.
Comment 15 Miklos Vajna 2021-12-15 15:34:19 UTC
Windows debug symbols are published for TDF releases, see <https://wiki.documentfoundation.org/Development/How_to_debug#Debugging_release_builds>.
Comment 16 Dragon Chuang 2021-12-24 08:43:42 UTC
OS: Windows 10 64 bit Build 19043.1348, Traditional Chinese

I have same issue but since Libreoffice 7.2.0:

Libreoffice 7.2.0 on Windows 10 - Works not good, slow typing
Libreoffice 7.2.4 on Windows 10 - Works not good, slow typing

I downgrade to Libreoffice 7.1.*:

Libreoffice 7.1.4 on Windows 10 - Works perfectly
Libreoffice 7.1.5 on Windows 10 - Works perfectly
Libreoffice 7.1.6 on Windows 10 - Works perfectly
Libreoffice 7.1.7 on Windows 10 - Works perfectly
Libreoffice 7.1.8 on Windows 10 - Works perfectly
Comment 17 Telesto 2022-01-20 19:28:00 UTC
@Buovjaga
Already having a VM achine with Windows 11?
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

(In reply to Luboš Luňák from comment #12)
> I don't have Windows 11. Could you give me a CPU profile from the Diagnostic
> Tools in Visual Studio to possibly point to where the code is slow?

My machine doesn't run that smooth
Comment 18 Buovjaga 2022-01-20 19:32:14 UTC
(In reply to Telesto from comment #17)
> @Buovjaga
> Already having a VM achine with Windows 11?
> https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

I'm still on Win 10 and I haven't done a dev setup on it up to now.

Note for whoever tries with an own build: you need to use --enable-symbols and not --enable-dbgutil or --enable-debug because the debug functionality messes with performance.
Comment 19 V Stuart Foote 2022-01-20 19:37:11 UTC
*** Bug 146878 has been marked as a duplicate of this bug. ***
Comment 20 Xisco Faulí 2022-01-27 15:00:43 UTC
*** Bug 145575 has been marked as a duplicate of this bug. ***
Comment 21 Aron Budea 2022-02-07 18:05:42 UTC
*** Bug 147261 has been marked as a duplicate of this bug. ***
Comment 22 Tim Perkin 2022-02-14 23:11:52 UTC
I'm also experiencing this issue on Windows 11. I think it's worth pointing out that spaces and some special characters type at normal speed. For example, periods, commas, exclamation points, semi-colons, colons, and quotation marks all type fast. However this is not true for all special characters. For example, brackets are slow.

What's interesting is that whenever you type a character that "types fast" such as Space, all the letters you typed earlier which haven't displayed yet instantly appear.

I'm not the only person to experience this behavior, see the comment here:
https://www.reddit.com/r/libreoffice/comments/srymej/libreoffice_writer_input_lag_in_windows_11/hwypi61/
Comment 23 dewanckelef@hotmail.com 2022-02-15 09:34:22 UTC Comment hidden (no-value)
Comment 24 nareshsukhija 2022-02-15 16:16:30 UTC Comment hidden (obsolete)
Comment 25 Buovjaga 2022-02-15 16:18:51 UTC Comment hidden (obsolete)
Comment 26 Kees Kriek 2022-02-16 08:07:34 UTC
I tried deactivating Tools - Options - LibreOffice - View - Use Skia for all rendering, but did not notice any change. But activating it again seemed to work on my system. I noticed much improvement in selecting bits of text in a large document.
Comment 27 dewanckelef@hotmail.com 2022-02-16 14:33:12 UTC Comment hidden (obsolete)
Comment 28 nareshsukhija 2022-02-16 18:01:34 UTC Comment hidden (obsolete)
Comment 29 Buovjaga 2022-02-16 18:16:46 UTC Comment hidden (obsolete)
Comment 30 Luboš Luňák 2022-02-16 18:49:13 UTC
Skia is irrelevant here. It appears to be a change in one Win32 API calls.
Comment 31 nareshsukhija 2022-02-16 18:51:12 UTC Comment hidden (obsolete)
Comment 32 dewanckelef@hotmail.com 2022-02-17 12:26:52 UTC Comment hidden (obsolete)
Comment 33 Commit Notification 2022-02-18 06:50:42 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/17b39d150fce188f653632a3467891157375a1c6

fix Writer key event delayed compression (tdf#145963)

It will be available in 7.4.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 34 Buovjaga 2022-02-18 08:47:20 UTC
(In reply to Luboš Luňák from comment #30)
> Skia is irrelevant here. It appears to be a change in one Win32 API calls.

Yep, nareshsukhija was using Win 10, though, so that is why I suspected their problem was different.

nareshsukhija: tomorrow there will be a new build for Win-x86_64@tb77-TDF in https://dev-builds.libreoffice.org/daily/master/current.html which includes the fix for the Win 11 problem. Please test it. If the problem does not go away, open a new report.
Comment 35 Tim Perkin 2022-02-20 22:25:58 UTC
I've installed the latest daily version, and I'm still experiencing the same issue.
Comment 36 Buovjaga 2022-02-21 06:35:41 UTC
(In reply to Tim Perkin from comment #35)
> I've installed the latest daily version, and I'm still experiencing the same
> issue.

Unfortunately there is an issue with the Win-x86_64@tb77-TDF builder and the latest build is still 2022-02-18 04:04:32. So I was too optimistic in my earlier promise. Somebody needs to kick the build box and get it working.
Comment 37 Xisco Faulí 2022-02-21 11:44:56 UTC
(In reply to Tim Perkin from comment #35)
> I've installed the latest daily version, and I'm still experiencing the same
> issue.

Please, share the info from Help - About LibreOffice
Comment 38 Commit Notification 2022-02-21 12:06:36 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

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

fix Writer key event delayed compression (tdf#145963)

It will be available in 7.3.2.

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 39 Commit Notification 2022-02-21 12:06:51 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "libreoffice-7-2":

https://git.libreoffice.org/core/commit/455a69825ab6cfd9595c4c763181cc797c859816

fix Writer key event delayed compression (tdf#145963)

It will be available in 7.2.7.

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 40 Buovjaga 2022-02-22 09:26:05 UTC
Now there is a new build for Win-x86_64@tb77-TDF in https://dev-builds.libreoffice.org/daily/master/current.html
Comment 41 Xisco Faulí 2022-02-22 09:47:22 UTC
(In reply to Buovjaga from comment #40)
> Now there is a new build for Win-x86_64@tb77-TDF in
> https://dev-builds.libreoffice.org/daily/master/current.html

@Telesto, Could you please give it a try ?
Comment 42 Telesto 2022-02-22 12:22:59 UTC
(In reply to Xisco Faulí from comment #41)
> (In reply to Buovjaga from comment #40)
> > Now there is a new build for Win-x86_64@tb77-TDF in
> > https://dev-builds.libreoffice.org/daily/master/current.html
> 
> @Telesto, Could you please give it a try ?

It's surely improved a lot. I'm however unable to tell if it's native speed. Running Windows 11 on a VM with old hardware is far from optimal to give a definitive answer. Everything is laggy in general.
Comment 43 dewanckelef@hotmail.com 2022-02-22 13:29:55 UTC
It works perfect with the new alpha 7.4.
I have tested on a new computer with Windows 11. Typing in writer is working fine.
Comment 44 Commit Notification 2022-02-23 11:57:48 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "libreoffice-7-3-1":

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

fix Writer key event delayed compression (tdf#145963)

It will be available in 7.3.1.

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 45 nareshsukhija 2022-02-23 17:17:23 UTC
Unfotrtunately, I won't be able to try the new versions because I don't rights to do so on that device with Windows 10.
Comment 46 Commit Notification 2022-02-25 10:35:40 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "libreoffice-7-2-6":

https://git.libreoffice.org/core/commit/2cfd6762156852d86051b9b048da93f0aac266ff

fix Writer key event delayed compression (tdf#145963)

It will be available in 7.2.6.

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 47 Tim Perkin 2022-02-26 14:30:49 UTC
Just had a chance to try this out. Works great for me. Thank you!

Version: 7.3.2.0.0+ (x64) / LibreOffice Community
Build ID: 7d64ec7d342da64e050ed9ac326b1af33d5c6955
CPU threads: 16; OS: Windows 10.0 Build 22000; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 48 nareshsukhija 2022-03-08 10:07:34 UTC
Please note that with version 7.3.0.3, the issue is observed to be fixed on the device I had issues earlier with version 7.2.5.2.
Comment 49 Dragon Chuang 2022-03-15 07:21:00 UTC
Version: 7.2.6.2 (x64) / LibreOffice Community
Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: zh-TW (zh_TW); UI: zh-TW
Calc: threaded

This issue has been fixed. Thank you.
Comment 50 Xisco Faulí 2022-03-15 09:26:50 UTC
(In reply to Dragon Chuang from comment #49)
> Version: 7.2.6.2 (x64) / LibreOffice Community
> Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754
> CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
> Locale: zh-TW (zh_TW); UI: zh-TW
> Calc: threaded
> 
> This issue has been fixed. Thank you.

Thanks for checking.
Setting to VERIFIED
Comment 51 michel.debar@gmail.com 2022-03-15 11:15:13 UTC
It seems that the slow typing issue on windows 11 is indeed fixed. Thank you very much