Skip to content
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

In PowerShell consoles NVDA crashes and destroys the console window #15786

Closed
cyrmax opened this issue Nov 16, 2023 · 17 comments
Closed

In PowerShell consoles NVDA crashes and destroys the console window #15786

cyrmax opened this issue Nov 16, 2023 · 17 comments
Labels
app/windows-console Legacy console in Windows, potentially will superseded by the app/windows-terminal bug/app-crash bug/crash bug squash target p2 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority platform/Windows10 triaged Has been triaged, issue is waiting for implementation.

Comments

@cyrmax
Copy link

cyrmax commented Nov 16, 2023

Steps to reproduce:

  • Open PowerShell;
  • Connect to some server via SSH;
  • Start an operation which will output lots of lines very fastly or just will periodically clear screen and fill it with new data;
  • Try to read console output with NVDA+up and down or num7 and num9;

Actual behavior:

NVDA sometimes crashes and destroys the console window, disconnecting you from SSh or breaking any other important interraction.
Sometimes it just plays an error sound and closes the window but sometimes NVDA completely hangs and needs to be restarted.
Playing with parameters in advanced settings gives no effect.

Expected behavior:

NVDA should not crash and of course should not destroy console window.
In general NVDA instability in consoles with lots of fast output is a very old, critical and huge problem that really needs to be solved somehow.

NVDA logs, crash dumps and other attachments:

NVDA old log is recorded with lots of very fast output from console.
nvda-old.log
NVDA log and NVDA log 2 were recorded without full NVDA crash but immediately after an error in console and after that NVDA destroyed the console window.
nvda.log
nvda2.log

System configuration

NVDA installed/portable/running from source:

Installed.

NVDA version:

Version: alpha-29959,10427e3f (2024.1.0.29959)

Windows version:

Windows 10 22H2 (AMD64) build 19045.3636

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

PowerShell, OpenSSH.

Other information about your system:

N/A.

Other questions

Does the issue still occur after restarting your computer?

Yes. Even on a completely new computer and new system.

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

Yes. This problem exists since NVDA 2021 or even earlier. But window destroy situations become more often in NVDA 2023.3.

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.

@cyrmax
Copy link
Author

cyrmax commented Nov 16, 2023

For me this issue today resulted in a bunch of serious problems when upgrading software on my server.
I spent about three hours to recover server stability after sudden disconnect which was caused by NVDA error.

@cyrmax
Copy link
Author

cyrmax commented Nov 16, 2023

Update: just now NVDA crashed in the following situation:
I had a full screen of log entries in console. I typed clear and pressed enter. Immediately after that NVDA played an error sound and killed the console window.
Here is another log:
nvda-after-clear.log

@beqabeqa473
Copy link
Contributor

beqabeqa473 commented Nov 16, 2023 via email

@XLTechie
Copy link
Collaborator

XLTechie commented Nov 16, 2023 via email

@XLTechie
Copy link
Collaborator

XLTechie commented Nov 16, 2023 via email

@cyrmax
Copy link
Author

cyrmax commented Nov 19, 2023

@beqabeqa473 I use Windows 10 and do not use windows terminal.
Switching from UIA to legacy has solved a part of problem, now window does not crash. But NVDA still crashes on large amount of output even with legacy mechanics.
@XLTechie Yes, sure I know this aproach and from now always use screen to secure my work from sudden disconnect.
But as you said of course this does not solve the NVDA problem and it should be fixed I think.

@seanbudd
Copy link
Member

May be fixed by #14888

@seanbudd seanbudd added bug/crash bug/app-crash p2 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority app/windows-console Legacy console in Windows, potentially will superseded by the app/windows-terminal triaged Has been triaged, issue is waiting for implementation. labels Nov 21, 2023
@Adriani90
Copy link
Collaborator

@cyrmax, @beqabeqa473 are you able to reproduce this issue in the last NVDA alpha version containing the code from #14888?

@beqabeqa473
Copy link
Contributor

I am no longer using win10, so not able to test.

@cyrmax
Copy link
Author

cyrmax commented Nov 27, 2023

I have tested this new alpha:

  1. Windows Terminal + not flooding but frequently changing output - no crash;
  2. Windows Terminal + flooding the console with 2 mb of text - no crash but lags for 10 seconds reading some text and ignoring repeated ctrl presses;
  3. old Windows conhost.exe + not flooding but frequently changing text - no crash;
  4. conhost + flooding with same 2mb of text - lags more than for 10 seconds, but same as in 2;

But I have noticed one problem:
After i flooded the console with two megabytes of plain text without any pager, just with cat something.log, after that, when i allready was working in another window, changing some console settings and not reading the terminal output I suddenly heard some lines of text like I am still reading the log output. It looks like some events were stuck in memory and played a minute after proper time.
Also when these two or three lines of text were spoken, NVDA also ignored ctrl presses and lagged for a while.
Here is the log if needed.
nvda-testing-large-text-in-console.log

@beqabeqa473
Copy link
Contributor

beqabeqa473 commented Nov 27, 2023 via email

@beqabeqa473
Copy link
Contributor

beqabeqa473 commented Nov 27, 2023 via email

@Adriani90
Copy link
Collaborator

@cyrmax could you please test with NVDA last alpha? #16168 might have had a positive effect on this.

@seanbudd
Copy link
Member

The next steps to investigating this issue would be creating a crash dump from powershell using these steps.
Once a crash dump is created we can debug the cause.

@Adriani90
Copy link
Collaborator

@cyrmax are you still having this issue with NVDA 2024.3 Beta4?

@SaschaCowley
Copy link
Member

@cyrmax are you still having this problem?

@seanbudd
Copy link
Member

Closing as we haven't received an update from the author in some time. Please let us know if you are using Windows Terminal or Console Host, and which version, if you can still reproduce this.

@seanbudd seanbudd closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app/windows-console Legacy console in Windows, potentially will superseded by the app/windows-terminal bug/app-crash bug/crash bug squash target p2 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority platform/Windows10 triaged Has been triaged, issue is waiting for implementation.
Projects
None yet
Development

No branches or pull requests

6 participants