nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.09k stars 633 forks source link

NVDA freezes and does not recover in Windows Terminal #15507

Closed Neurrone closed 11 months ago

Neurrone commented 1 year ago

I've seen this happen twice so far.

Steps to reproduce:

Use Windows Terminal to do something on the command line.

Actual behavior:

NVDA freezes and plays error sounds continually. It does not recover, and the only way to proceed is to go to the desktop and manually restart NVDA.

Expected behavior:

NVDA should not freeze

NVDA logs, crash dumps and other attachments:

nvda freeze.txt

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

alpha-29111,b341bf97 (2024.1.0.29111)

Windows version:

Windows 11 22H2

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

Windows Terminal 1.17.11461.0

Other information about your system:

Under advanced settings, Windows console support is set to "Automatic (prefer UIA)", diff algorithm is automatic, prefer Diff Match Patch.

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?

Unknown, I will try to reproduce this more.

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

Yes

seanbudd commented 1 year ago

Just to confirm, this is an intermittent issue that's rare to reproduce?

It would be good to confirm it with add-ons disabled as well

codeofdusk commented 1 year ago

What happens with "speak new text in Windows Terminal" set to notifications?

mo29cg commented 1 year ago

Same here, it constantly freezes like onece in an hour. I also didn't check if it happens without any ad-ons.

mo29cg commented 1 year ago

@codeofdusk If "speak new text in Windows Terminal" was set to "UIA notifications", it doesn't freeze anymore. I guess there is some bug in speaking diffs then.

mo29cg commented 1 year ago

If "speak new text in Windows Terminal" was set to "UIA notifications", it often stop speaking characters typed to the console. This side effect is very annoying.

VovaMobile commented 11 months ago

Hello, dear community! These problems occur not only in the Terminal. NVDA can suddenly freeze anywhere and under any conditions. The problems started with version 2023.2. They are reproduced in both Windows 10 and Windows 11. I have collected logs and comments from users in the Ukrainian NVDA community and publish them here because these problems occur very often. Below are a few completely different examples with the same result.

NVDA crashed and did not recover after Microsoft Edge was closed

The problem occurred on a Windows 10 22H2 (10.0.19045) AMD64 workstation (NVDA version 2023.3rc2). I accidentally opened a file in Microsoft Edge when I should have opened it in Chrome. As soon as Edge opened, I closed it with the tab-close command (ctrl+w) and NVDA stopped working and did not recover on its own. Error text: error1.txt

There were smaller freezes before this one, but NVDA recovered on its own. Full log: nvda-old.log

NVDA completely froze when the user switched to the desktop

This happened on a Windows 11 22H2 (10.0.22621) AMD64 workstation (NVDA version 2023.3rc2). Error text: error2.txt

Nvda crashed in Microsoft Eams

Another user reported that NVDA 2023.3RC2 ran stably on a Windows 11 22H2 (10.0.22621) AMD64 workstation for almost five hours and then crashed when he was working in Microsoft Teams. Here is a snippet of his log: error3.txt

Resume

Addons like Newfon or browserNav often appear in the logs, but freezes also occur for people who don't use any of these addons. Freezes after which NVDA does not recover can occur when closing a window, exiting to the desktop, or moving the carriage in the Terminal.

Ishtef commented 11 months ago

I fully confirm the problem described by VovaMobile. It seems to me that it has acquired such dimensions that it is unacceptable to ignore it any longer.

Adriani90 commented 11 months ago

Some things to check:

I cannot reproduce any of these freezes without addons when using eSpeak or one core on Windows 11 with NVDA 2023.3 RC2.

Did the people try to clean their user configuration and reinstall NVDA?

VovaMobile commented 11 months ago

Some of these users reinstalled NVDA, but the freezes continued. I don't remember which version of Edge I was running, since this is a work computer and the main browser there is Chrome. But that's not the main thing. As you can see, the problem with freezing occurs in the Terminal and other programs. I don't know which synthesizer the author of this issue uses, but all the users I mentioned in my comment use either the Newfon synthesizer or the RHVoice synthesizer.

Adriani90 commented 11 months ago

Can they reproduce these freezes also when using WASAPI for audio output is disabled in NVDA advanced settings? I am trying to understand whether this is related to the synthesizers and their sequences sent to the screenreader or not.

seanbudd commented 11 months ago

Please create new issues @VovaMobile , rather than hijacking an existing issue to discuss a separate set of issues

jcsteh commented 11 months ago

This is fixed by #15753. You'll still see one error in the log, as I don't quite know how to fix that yet, but it won't cause a freeze and it is harmless.