Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS Word unusual lag after enabling UI autimation support in nvda advance setting #13461

Closed
LittleStar-VIP opened this issue Mar 11, 2022 · 4 comments
Labels
close/works-for-me component/UIA-ms-office Specific to UIA used in MS office applications. needs-technical-investigation A technical investigation is required to progress the issue. p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority performance triaged Has been triaged, issue is waiting for implementation.
Milestone

Comments

@LittleStar-VIP
Copy link

Steps to reproduce:

  1. Open nvda setting
  2. go to advance setting
  3. make sure using UI Autimation to process word controls is checked (sorry, I am not using english version of nvda, I am not sure the exact english name of this item)
  4. open word and create a file with more than 20k words with a table containing all these words, like around 700 rows with two columns
  5. after pressing tab to jump to next new row, nvda willbe busy for around half a minute before nvda can give anyspeech, at this moment, nvda cannot interact with word
  6. when the numberof rows increase,the lag time may increase
  7. sometimes after pressing tab and waitedafter the lag time has past, nvda do report the new row number and column number, but sometimes do not

After a bit of time of try and error, I found that if I disabled the function "using UI Autimation to process word controls" the problem is no longer existed

Actual behavior:

Expected behavior:

pressing tab will immediately jump to next new row without lag

System configuration

NVDA installed/portable/running from source:

installed

NVDA version:

nvda 2021.3.3

Windows version:

Windows 10 home 21H1

Name and version of other software in use when reproducing the issue:

MS Word 365 installed version

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

I have tried creating a clean portable copy of nvda and this problem do not occur

If NVDA add-ons are disabled, is your problem still occurring?

Yes

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Not tried

@cary-rowen
Copy link
Contributor

Hi, I did some more testing on this and found the following:

  1. The problem can be reproduced using the latest alpha-24937;
  2. After creating the portable version, changing "Use UI Automation to access Microsoft Word document controls" to "Always" can still reproduce.
  3. When I press Tab to create a new row in the last row of the table, NVDA will freeze for half a minute, and pressing ctrl+z to undo the operation of adding a new row will still freeze for half a minute.
  4. Microsoft 365MSO (version 2202 Build 16.0.14931.20116) 64 bit;

Below is my test sample:
test.zip

@cary-rowen
Copy link
Contributor

cc @michaelDCurran @LeonarddeR

@Adriani90
Copy link
Collaborator

This is still reproducible with NVDA 2023.1 RC1, I get a lag of 10 seconds even on a computer with 32gb of Ram and Intel 12900HK with 5 ghz, 14 cores and 24 threats.

@seanbudd seanbudd added performance p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority component/UIA-ms-office Specific to UIA used in MS office applications. triaged Has been triaged, issue is waiting for implementation. needs-technical-investigation A technical investigation is required to progress the issue. labels Mar 7, 2023
@Adriani90
Copy link
Collaborator

The performance lag is not reproducible anymore with UIA on, I am closing as works for me. Tested with NVDA 2024.4.1. If you are still having this issue, please comment and we can reopen.
I tested using tab, ctrl+alt+arrow key, arrow keys or ctrl+arrow keys, none of these navigation paterns caused performance lag in MS Word.
With UIA off though ctrl+alt+arrow keys seems a bit slower, but there is no unusual lag.

@github-actions github-actions bot added this to the 2025.1 milestone Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close/works-for-me component/UIA-ms-office Specific to UIA used in MS office applications. needs-technical-investigation A technical investigation is required to progress the issue. p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority performance triaged Has been triaged, issue is waiting for implementation.
Projects
None yet
Development

No branches or pull requests

4 participants