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

Incoming text in the terminal is not reliably read #11170

Open
Neurrone opened this issue May 16, 2020 · 15 comments
Open

Incoming text in the terminal is not reliably read #11170

Neurrone opened this issue May 16, 2020 · 15 comments
Labels
app/windows-terminal New terminal app, potentially supersedes app/windows-console (repo: microsoft/terminal)

Comments

@Neurrone
Copy link

CC: @codeofdusk

Steps to reproduce:

  1. Do something that causes at least a screen's worth of text to appear. For example, ls on a directory with 50 entries.

Actual behavior:

Nothing is heard, or only the last few lines of the output is read. I'm not sure what causes the differences, maybe the amount of text being returned?

Expected behavior:

Incoming text is always reliably read.

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

Version: alpha-20220,1c4519a6

Windows version:

Windows 10 2004 10.0.19041.264

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

I happened to be operating in WSL2, just mentioning that here in case that happens to matter.

Other information about your system:

This bug doesn't happen with UIA usage in terminals disabled.

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 addons are disabled, is your problem still occuring?

Yes

Did you try to run the COM registry fixing tool in NVDA menu / tools?

No

@codeofdusk
Copy link
Contributor

codeofdusk commented May 16, 2020

Could you please try the following?

  1. Open Windows Console (with UIA).
  2. Press NVDA+control+z to open a python console.
  3. Enter nav.is21H1Plus

Do you get True or False?

@Neurrone
Copy link
Author

It returns false. I'm only on 20H1, not on the fast ring.

@codeofdusk
Copy link
Contributor

It returns False. I'm only on 20H1, not on the fast ring.

OK, try this:

  1. Download Open Console and extract the zip.
  2. Run OpenConsole.exe.
  3. From Open Console, start a Python interpreter with NVDA+control+z. Verify that nav.is21H1Plus returns True for this console.
  4. Attempt to reproduce your issue. (I think you can start WSL from Open Console by typing bash). Let me know if it still occurs under Open Console.

@Neurrone
Copy link
Author

It returns true now, but the issue is still happening.

@codeofdusk
Copy link
Contributor

OK, I think this is another instance of/similar to microsoft/terminal#5481. Cc @carlos-zamora.

@codeofdusk
Copy link
Contributor

Just to confirm, could you please run WindowsTerminal.exe from the same archive and try to reproduce the issue from there?

@Neurrone
Copy link
Author

Happens as well with WindowsTerminal.exe

@codeofdusk
Copy link
Contributor

Hmmm, could be a different issue. It does work correctly with UIA disabled and "use the new typed character support in Windows Console" enabled, correct?

@Neurrone
Copy link
Author

I'm confused now, I suspect there might be 2 bugs going on at the same time.

  1. With UIA enabled, both windows terminal and the normal console are not reading the command that I am testing with properly - they start reading at different parts of the 85 line of output from my ls -al command instead of the start of the output. Additionally, if I execute the same command successively, nothing is read from the second invocation onwards for both terminal and normal console.
  2. Without UIA enabled, both terminal and normal console are reading from halfway in the output as above. Terminal still doesn't read anything for successive invocations of the same command, though regular consule does read part of the output of consecutive invocations of the command (although not reliably - sometimes it only reads out one line).

@codeofdusk
Copy link
Contributor

Terminal (i.e. WindowsTerminal.exe) always uses UIA regardless of user settings as that's all we have available (and Terminal's UIA implementation is very good in any case).
For your Windows Console testing, when UIA console is disabled, can you test with the "use the new typed character support" option both enabled and disabled? Does that option make any difference? (UIA Windows Console always uses the new typed character support and is not controlled by that checkbox)

@Neurrone
Copy link
Author

I think there might be a difference when the new typed character option is turned on vs off, but not by much. I hear an extra % character being read when executing the same command in succession when the setting is off, but it doesn't materially affect this scenario being broken.

You mention terminal's UIA implementation being really good, do you recommend using terminal over console then? I am encountering bugs but it seems that these bugs are present regardless of which console that I use.

@Neurrone Neurrone changed the title Incoming text in the terminal is not reliably read with UIA enabled Incoming text in the terminal is not reliably read May 17, 2020
@feerrenrut feerrenrut added the app/windows-terminal New terminal app, potentially supersedes app/windows-console (repo: microsoft/terminal) label May 18, 2020
@Neurrone
Copy link
Author

I managed to reproduce an issue that I seen before, where even though there is new text being written to the output even if it is a small amount of text, NVDA doesn't echo it at all, which I found pretty disturbing.

I was using curl to test a buggy liveness check for a service (checking that curl returns 200 in response to an API call). Curl outputs the status code that it receives. After a few times of repeating the same command, NVDA just stops reading the incoming text and I remember having to restart NVDA to restore that functionality.

@codeofdusk
Copy link
Contributor

I'll be interested to see how #11639 affects this.

@Adriani90
Copy link
Collaborator

@Neurrone do you still have this issue with NVDA 2023.2?

@Neurrone
Copy link
Author

I've still seen this happening when anything UIA related like the start menu doesn't speak at all, requiring a full restart of NVDA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app/windows-terminal New terminal app, potentially supersedes app/windows-console (repo: microsoft/terminal)
Projects
None yet
Development

No branches or pull requests

4 participants