Avoid freeze in Windows API Level 0 and 1 console when UIA support is enabled#14703
Conversation
Better issue comment Co-authored-by: Bill Dengler <codeofdusk@gmail.com>
See test results for failed build of commit ff21508d8b |
|
Honestly, I'm not the biggest fan of this approach (or, for that matter, putting any more work into the API <2 console). There are changes coming down the pipeline that I'm not at liberty to discuss in detail (I would if I could), so I'd suggest holding off on any changes for now. CC @DHowett. |
Shouldn't NVDA still support the API <2 console? Can you explain why not? |
Accept seanbudd suggestion. Co-authored-by: Sean Budd <seanbudd123@gmail.com>
|
@cary-rowen, can you test the last try-build when available? |
See test results for failed build of commit 5900fdb1ba |
|
Ok, I found a way that can accomplish @codeofdusk requests. |
Rename to _IGNORE_TRAILING_WHITESPACE_LENGTH to keep it private Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Better comment for late import Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Readability: rename and move IGNORE_TRAILING_WHITESPACE_LENGTH into function Co-authored-by: Sean Budd <seanbudd123@gmail.com>
codeofdusk
left a comment
There was a problem hiding this comment.
Approved pending my suggested comment clarifications (for consistency in style of references)
Ok for me. |
Better comment about ConsoleUIATextInfo Co-authored-by: Bill Dengler <codeofdusk@gmail.com>
Better comment describing solved issue Co-authored-by: Bill Dengler <codeofdusk@gmail.com>
See test results for failed build of commit 7bad1d47d5 |
|
Hi @seanbudd, |
|
If you're able to fix the bug by patching |
…pport is enabled (nvaccess#14703)" This reverts commit 14bc6bd.
|
I've opened #14815. |
Link to issue number:
Fixes #14689
Summary of the issue:
Due to a bug in API Level 0 and 1 consoles (see microsoft/terminal/#5243), sometimes NVDA freezes during dictionary processing of console text, containing a huge amount of blank lines.
Description of user facing changes
None.
Description of development approach
If current focus object has apiLevel 0 or 1, and difference between regular text and text with rightside blank lines stripped is greater than 100, we use cleaned text for dictionary processing.
Testing strategy:
Manual, with #14689 str.
Known issues with pull request:
None.
Code Review Checklist: