-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
Vertical quick navigation throws errors in some cases #16274
Comments
cc @mltony |
Closes #16274 Summary of the issue: Exception during vertical navigation when one of page items is offscreen. Description of user facing changes N/A Description of development approach Previously I was retrieving x coordinate by calling textInfo.pointAtStart. However it appears that this doesn't work when said textInfo is off screen. Switching to another method: textInfo.NVDAObjectAtStart.location[0]
Hi cc @mltony
Is this expected? |
Yes. This command is slower than your typical QuickNav commands because it retrieves x coordinate of each paragraph in a separate call to chrome. So it takes about a second to complete and watchdog notices a freeze but then successfully recovers. |
Would there be any way to prefetch in a background thread?
E.g. if it is used once, expect it will be used again and prefetch the next few,
and cache the previous few?
|
In theory yes. I suppose we could dig into C++ layer and have it prefetch x coordinate always. |
A reasonable point. Maybe some time in the wild will tell.
|
Closes nvaccess#16274 Summary of the issue: Exception during vertical navigation when one of page items is offscreen. Description of user facing changes N/A Description of development approach Previously I was retrieving x coordinate by calling textInfo.pointAtStart. However it appears that this doesn't work when said textInfo is off screen. Switching to another method: textInfo.NVDAObjectAtStart.location[0]
Steps to reproduce:
Actual behavior:
NVDA throws an error and the log is as follows:
Expected behavior:
No error should be thrown anyway.
NVDA logs, crash dumps and other attachments:
System configuration
NVDA installed/portable/running from source:
Installed
NVDA version:
alpha-31344
Windows version:
Windows 10 22H2 (AMD64) build 19045.4046
Name and version of other software in use when reproducing the issue:
Chrome: 122.0.6261.96
Other information about your system:
None
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.
No
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?
Yes
The text was updated successfully, but these errors were encountered: