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
UIA seems to stall under certain conditions. #7345
Comments
Hi, you say you can reproduce this from 2016 onward? What about versions such as 2015.2 or 2015.3? Thanks. CC @michaelDCurran
|
if it's supported under windows 10, it's been tested thoroughly with the
same results.
It made no sense to list the 2015 versions when to be honest who's
really using them now.
But yes, they've been tested.
I'm not getting enough log output to be useful, except
WARNING - stdout (23:27:57):
1.0
|
Hi, can you reproduce this problem while using Narrator and/or other screen readers? If this happens on other screen readers, chances are that another call to Redmond is in order. Thanks for checking into this.
|
Hello,
after testing with JAWS 16, last build available that started to support
windows 10, 17, latest build, and 18, latest build, as well as
narrator, this issue seems to be specific to NVDA.
JAWS and Narrator read listviews like a champ even while running batch
processing, saving, etc.
|
Hi, can you run NVDA with all add-ons disabled and see if that makes a difference? Thanks.
|
just restarted NVDA with all addons disabled, with same results.
|
Hi, Thanks for all this. At this point, I think it might be best to see what @michaelDCurran asks us to do. Thanks.
|
Your steps to repro mention using any list view. Let's clarify what you mean by "list view" here. We actually don't use UIA for controls Windows calls ListView; e.g. the list on the Desktop. In contrast, Explorer lists these days actually aren't ListView controls. They're a custom list control specific to Explorer and we do use UIA for those. So, have you tested this with any lists other than Explorer?
Please also provide a log at level debug showing the issue. This should give us some idea of where it's freezing.
Note that I've definitely seen Narrator freeze when a background app is responding slowly. This is probably related, though it's interesting that you aren't seeing this with Narrator in your case.
|
@jcsteh
I didn't actually know that, and I'm sorry I wasn't completely clear, I
thought I mentioned the specific list views. I was doing that thing
where I was thinking faster than I was typing, and I thought I'd been clear.
To be clear, yes, explorer listviews, or list views in open dialogs,
save as dialogs, etc.
The desktop is not effected
how can I best get the necessary log output for you? I know how to use
log viewer, etc, but I wouldn't know where to start copying and pasting,
or should I just save the entire log.
|
Ah, so NVDA doesn't actually freeze; non-UIA stuff works fine. In that case, a log probably won't show much; this suggests UIA core just isn't firing events. I've definitely also seen this with Narrator. I wonder why you aren't seeing it with Narrator in this instance.
With Narrator, can you try starting the slow background task and then holding down alt and repeatedly pressing tab? Does it eventually stop reading the alt+tab list? You may have to try switching back to the app running the slow task again and then repeating the whole process a few times.
|
I wouldn't consider it a slow app, just an app that has stolen enough
control away or causing something in the background to be a problem with
UIA under certain conditions.
The machine still chugs along and I can do other tasks except read
explorer listviews.
It's not one specific app, it's when apps, (mostly audio production
apps, or apps that perform a lot), do their thing things start not
behaving in explorer listviews.
I retested with narrator after a reboot, and it is doing the same thing
in list views when large batch processes, or saving operations in
programs like goldwave, are in progress.
You'd think on a 6th gen core I7 with 16GB of ram this wouldn't even be
a thing! :-)
|
Just to be sure we're super clear here, you are saying you can now repro this with Narrator as well? If so, while not ideal, one plus is that I've seen this as well and think I might have a test case here we can send to Microsoft.
|
James,
on further checking, what happened last time when I initially tested it
with narrator when josiph asked me to was the task itself completed and
I didn't realize it and simply considered it unreproduceable with
narrator and logged it as such.
During this round of testing, I specifically started a situation that
causes the issue in question with narrator running and performed my
initial steps with the issue of listviews in explorer, this pc, etc. not
reading, narrator as you said it would, refused to read them.
I then performed the alt+tab sequence you asked me to perform and after
a bit as you said it would, it stopped responding or reading application
titles.
Do you need anything else before we, as I'm suspecting we might have to
do, send this to microsoft?
|
Unless you're able to check whether this happens on an earlier version of Windows, no, I think we've got all we can get for now. Thanks.
|
Filed as MS Bug 12608330: Narrator becomes unresponsive in all apps when a single app is continually slow to respond |
Can we get a link to track this bug, as i authored this bug here, I'd
like to track it to resolution from the microsoft end.
|
I'm afraid not. Microsoft don't provide public access to this bug tracker.
|
Have anybody observed weird behavior regarding to UIA when the TaskManager is running? For me It caused a behavior very similar to this. |
Hi! |
Hi, Resolved in RS5 with IUIAutomation6::CoalesceEvents flag turned on. HOwever, what we really want is a solution that can cover earlier Windows 10 releases. CC @tspivey |
See also #8535 |
For Windows versions < Windows 10 RS5, here is a try build that registers UIA property change events per foreground, rather than once globally: |
This works well so far, except for NVDA's own dialogs.
|
Whenever I load a page in Chrome, I get this: |
hi.
i also got this message.
killing all crhome processes, restarting nvda and then starting chrome
again helped.
2018-09-11 14:16 GMT+04:00, Simon818 <notifications@github.com>:
… Whenever I load a page in Chrome, I get this:
nvda+f5 works fine, but loading a new page or refreshing the current one was
throwing errors ... right until I came here to report it, actually. Now it's
working fine. In case this is helpful, I'll still leave it here.
ERROR - RPC process 5556 (chrome.exe) (02:25:34.858):
Thread 1796, build\x86_64\vbufBase\backend.cpp, VBufBackend_t::terminate,
234:
Could not execute renderThread_terminate in UI thread
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#7345 (comment)
--
with best regards beqa
|
I can confirm the dialog issue mentioned by @tspivey. On my Windows 10 machine it seems to only happen some of the time. On my Windows 7 machine, NVDA's own installer froze after I clicked past the first screen, so I was not able to install and test it ... yet. I'll create a portable copy if necessary though. |
i can also confirm, that nvda's own dialogs are freezing nvda
2018-09-11 14:19 GMT+04:00, Simon818 <notifications@github.com>:
… I can confirm the dialog issue mentioned by @tspivey. On my Windows 10
machine it seems to only happen some of the time. On my Windows 7 machine,
NVDA's own installer froze after I clicked past the first screen, so I was
not able to install and test it ... yet. I'll create a portable copy if
necessary though.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#7345 (comment)
--
with best regards beqa
|
Here is a new try build that should address NVDA freezing in its own
dialogs:
https://ci.appveyor.com/api/buildjobs/5a563kep6293nq12/artifacts/output%2Fnvda_snapshot_try-perForegroundUIAPropertyChangeEvents-16008%2C583847a1.exe
Please let me know how this works.
|
Hi,
i am running the new try build, and i don't see freezing.
|
Reopened because #8742 has been reverted due to several reported crashes of Windows Explorer. Probably related to these crashes are several errors I'm getting when typing into an explorer list view when the folder isn't fully loaded. |
I have tried an entirely alternative approach to solve this. In the unregisterUIAProxyWinEvents branch, I now instruct UI Automation client library to never map MSAA winEvents to UI Automation propertyChange events. NVDA does not need them as it listens to MSAA winEvents itself anyway.
I'm hoping that this alternative will also address some very long-standing performance issues to do with Task manager, and also perhaps the slow downs in Windows 10 File Explorer after renaming or deleting a file. |
The problem I see with this approach is that this also kills UIA property change events for objects that are natively MSAA but on which we enforce UIA (i.e. with appModule.isGoodUIAWindow). No explorer crashes whatsoever. |
WDAG definitely doesn't need these propertyChange events.
What appModules currently use isGoodUIAWindow?
|
At the moment, None. However, there were two additional reasons I wanted to introduce isGoodUIAWindow, particular for scripting work places:
Example code
|
For number 1: interesting, but I'm not sure that is a concrete enough
example as to why we shouldn't do this. For number 2 however: I take
your point, but there is nothing stopping you creating a UIAElement
from an existing native IAccessible object:
```
UIAHandler.handler.clientObject.ElementFromIAccessible(IAccessibleObject,IAccessibleChildID)
```
Then you can do a cache request for its children.
|
Had a quick private discussion with @michaelDCurran ElementFromIAccessible works for this particular case, not for others, i.e. for local IAccessibles created by oleacc within NVDA's process. Given the fact that reason 1 was only a work around, I don't see these as show stoppers any more. Furthermore, I think that going this way is far more cleaner than the per foreground property change events registration, if it works as expected, that is. |
@michaelDCurran trying it now. I installed this new try build in the same directory as the previous one, which I hope is a supported installation method to avoid re-copying add-ons. Mentioning this in case it explains the results below. I don't notice any improvement in terms of responsiveness when trying this build over the usual (2018.3) version, while the performance improvement in the previous try build causing explorer crashes was noticeable and immediate. |
@michaelDCurran I've been running this build for a while now, and haven't noticed any significant problems. |
And I am assuming though it does still successfully address the original
issue of focus failing to work in file explorer and other UIA apps when
an app is processing audio etc?
|
Yes. I tested with WinDBG and WinSCP, and they both work. I assume audio processing will be the same. |
Steps to reproduce:
Expected behavior:
the listview should read
Actual behavior:
the listview doesn't read.> Tell us what happens instead.
System configuration:
NVDA version: 2017.2
NVDA Installed or portable: installed.
Other information:
Windows version: windows 10 pro creator update.
Other questions:
Does the issue still occur after restarting your PC? yes
Have you tried any other versions of NVDA? reproduceable from 2016 onward
The text was updated successfully, but these errors were encountered: