nvaccess/nvda

On Windows 10 1903 NVDA starts after logon even when this is disabled

Closed this issue · 35 comments

Steps to reproduce:

  1. Install NVDA,
  2. Do not configure NVDA for starting automatically after logon, but let it run on secure screens,
  3. Restart Windows or sign out and in.

Actual behavior:

NVDA starts right after logon just as if the corresponding option is enabled.

Expected behavior:

NVDA shouldn't autostart when it isn't told to do so.

System configuration

NVDA installed/portable/running from source:

Obviously NVDA is installed.

NVDA version:

I'm running NVDA alpha-17099,0d2a1525.

Windows version:

Windows 10 Version 1903 18362.53 x64.
This issue doesn't occur on older systems.

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

I think this is irrelevant. This happens after a fresh OS install.

Other information about your system:

As expected, the registry key normally responsible for automatic startup doesn't exist on my system.

Other questions

Does the issue still occur after restarting your PC?

Yes.

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

Not yet. I can do this if needed.

Is NVDA also started at the logon screen? What happens if you disable that?

If this option is disabled NVDA doesn't autostart at all.
But if starting on logon screens is enabled NVDA starts both at and after logon.

Hello,

Please see this link for more context on the issue.

In short, I talked to people at MS immediately when this issue occurred and they had many months before release to get it fixed and they failed to.
Narrator is also affected. If it's possible, are others able to upvote this please?

https://aka.ms/AA4g3cq

Thanks,

Brandon

Good morning,
The last comment here was three weeks ago...I just started having this problem last week when our network admin updated Windows. Every computer in my school (WI School for the Blind and VI) has NVDA installed, and everyone is contacting me to report/solve the issue. Has there been any change yet and if so, is there anything I can do to resolve it? So far everything I've tried everything I can think of (even installing a previous version of NVDA) and nothing has worked. Suggestions are most appreciated :)

Hi,

Brandon's workaround won't work because this scenario will repeat after a restart.

Having confirmed this on another computer, I'm thinking this may have to do with registry. The fact that this problem doesn't show up if "use NVDA on the logon screen" checkbox (Settings/General) is unchecked suggests something is going on with Ease of Access portion of Windows Registry. Specifically:

  • HKCU\Software\Microsoft\Windows NT\CurrentVersion\Accessibility determines whether or not NVDA will start after you log in.
  • Replacing "HKCU" with "HKLM" gets us to secure screens.

At the source code level, I recommend looking at config/__init__.py and easeOfAccess.py

Thanks.

I totally appreciate all the feedback guys! I’m in Assistive Technology specialist, not a network administrator, so this kind of thing is totally outside of my wheelhouse. I forwarded your comments onto our network administrator and hope he will be able to implement the solution.

Will do! Sounds like if this truly is implemented that our school may wish to use narrator for secure logon screens to prevent future issues. I certainly appreciate your help

Well now I know why am I not a network administrator... this is way too much thinking for a Saturday night ...

Hi,

Perhaps. In short, that option performs NVDA's equivalent of starting from secure screens.

Technical: in order to understand this, we need to talk about sessions. Although Windows did support what's called "session space" for years (a session space is a range of system memory locations subject to context switches in order to give appearance of multi-user environment, which is prerequisite of Remote Desktop/Terminal Services (Windows internals, Fourth Edition)), it wasn't until Vista that sessions became more prominent (Windows Internals, Fifth Edition). That is, when Windows boots, it starts in session 0, which is used to manage services, certain global system processes, and as a side effect, used to display secure desktops such as User Account Controll; this is typically what is meant by secure screens. Session 1 and beyond refers to interactive user session. in effect, when using Windows, one is effectively using two sessions: normal user interface, and secure screens.

A subtle beneficiary of multiple sessions is Ease of Access. Because assistive technologies might be used from login and other secure (session 0) interfaces (including from logonui.exe), Ease of Access will check which AT executables should run before and after a user logs on. The way Ease of Access knows about it is through registry hive: HKLM (local machine) for session 0, HKCU (current user) for session 1 and beyond. This is the reason why one can run one screen reader before logging in and another while logged on, and that's precisely the intention behind the Narrator option noted above. This also explains why it takes a while for NVDA to speak User Account Control if it uses certain speech synthesizers because Ease of Access must run another copy of NVDA, this time from within secure desktop, and NVDA can detect it and fall back to system configuration and can remember that it is a secure copy via a flag.

As for Microsoft confirming this: yes, confirmed by a member of the Narrator team, and engineers are looking into this. I asked her (Narrator engineer) if this will impact 19H2 and 20H1, and no reply at the moment.

Thanks.

Hi,

Update: apparently this affects 19H2 and 20H1 as well, which means this issue will haunt admins for a long time.

Thanks.

Hi, this is Shou-Ching from Microsoft. I was wondering if I could gather some information on this issue. Things like:
(1) How many machines were affected?
(2) Does it repro 100% of the time? Does it repro after reboot?
(3) What are the OS version and configurations? [Multiple users? single users? password protected? domain joined? AT installed and their configuration? etc.)
(4) Briefly describe what happened? (Feel free to reply here or via the feedback hub's add more detail or conversation area).

Thank you very much for your help!
Shou-Ching Schilling
Windows Accessibility Community Champ
@SCMuiLan

Hi Amy,
Thank you very much for taking the time to gather this information. It is very clear and very useful. Thank you!

Thanks for the offer to provide further assistance. I will get in touch with you via email if I need more information, or if I have something to update.
Have a good day!

Shou-Ching
Windows Accessibility Community Champ

Good morning!
My network admin requested that I throw this question out there:
Does anyone know how to do a silent uninstall of NVDA
Thanks for any help you can provide!

Great thanks! I'm guessing for an uninstall you'd just replace the word install with uninstall in the command line? Totally appreciate the help!

[Update] We included a fix for this AT startup issue in the Windows Insiders Preview build 18975 released today (aka.ms/wip18975): "We fixed a bug where assistive technology (e.g. Narrator, Magnifier, NVDA) were starting after sign-in when only the before sign-in setting was set."
If any of you are part of the Windows Insider Program, we would really appreciate it if you could update to this build and see if the fix resolves the issue. Thanks!!!

Shou-Ching Schilling
Windows Accessibility Community Champ

I don't have answers for these two questions right now. I will see if I can find out.
Thanks,
Shou-Ching

I wonder, does toggling NVDA"s start at logon and after logon help if done from the ease of access center? Control panel > ease of access > sign in settings

Hi, everyone,
Thanks for your patience. I don't have anything to update. I am monitoring this issue closely and will post an update in three weeks or so.

Thanks,
Shou-Ching Schilling
Windows Accessibility Community Champ

Hi,

Resolved via KB4522355 (build 18362.449) based on changelog for the optional cumulative update. Closing as fixed externally.

Thanks.

Thank you for bringing this issue to our attention.
As Joseph said, the fix is in KB4522355 (OS Build 18362.449),
https://support.microsoft.com/en-us/help/4522355

Shou-Ching
Windows Accessibility Champ