-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
NVDA hangs up in terminal, when a large piece of text is loaded #6291
Comments
What version and build of Windows are you using? We noticed severe performance problems with consoles in earlier builds of Windows 10, but this appears to be fixed in the anniversary update at least. |
Thank you for you reply. What version and build of Windows are you using? We noticed severe performance problems with consoles in earlier builds of Windows 10, but this appears to be fixed in the anniversary update at least. — |
I have also observed this behavior. |
@dawidpieper @ctoth Do you still experience this freeze in the terminal (almost two years after the original report)? |
I can confirm, that this issue is still present on Windows 7 ad least. The only way to restore NVDA to it's working condition is to switch user with CTRL+Alt+Delete and kill NVDA process from the second account. Any chance of prioritizing this? To be honest when i have to work in terminal and I am suspecting, that big amount of text would be displayed I am switching to JAWS, because fighting with frozen NVDA is the last thing, which I want to do in the middle of my programming classes. |
I am able to reproduce it 100% of the time with the c program attached. In the rare situations in which NVDA crashes softly enough to log anything the log contains The program attached is of course not very useful, but it demonstrates the issue pretty well. |
It happened again when installing a bunch of dependencies with Pip. Am I really the only one experiencing this? |
I recall I've seen this issue as well, and I have an idea to improve this, at least in such a way that you no longer have to fiddle with signing out and back in again. |
You're not the only one. I'm used to it by now, and just alt tab out as fast as I can. |
Here is a branch that is very aggressive in ignoring input if the core is frozen. And there's a try build for that |
With this try build nVDA still freezes when executing my test program, but I am able to kill it with CTRL+ALT+D, so switching users is no longer required. Thanks @LeonarddeR Any chance for fixing the freeze issue also? |
A, so it definitely fixes a major part, that's great. I will investigate further. |
Giving this a p2, since it tends to hang up the entire system. |
@LeonarddeR I understand that properly fixing this would take a while, but would it be possible to include the fix from the try build above in master in the mean time? |
I think that makes sense, yes. |
Ugh, it wasn't my intention to have this automatically closed, as it isn't fixed entirely. Reopening. |
Latest |
@codeofdusk First of all thanks for your work it's really amazing even though I'm using Windows 10 only occasionally. I don't believe that closing of this issue, even when UIA become the default is appropriate for a number of reasons.
|
Once #9771 is merged, console performance will be improved in Windows 10 version 1803 thanks to the UIA console, and vastly improved in Windows 10 version 1809 and later due to new features added in UI Automation 6. However, these performance improvements will be unavailable to users on Windows server and LTSC 2016 (Windows 10 1607), which will remain supported for many years to come. Due to the nature of the legacy console support, performance improvements of this sort are difficult or impossible. Despite this, I vote to close this issue, as these improvements are available for the three most recently released versions of Windows. You are, of course, welcome to investigate further and propose a solution if you find one! |
Hello, Run this in a CMD or a PowerShell session. Note that you need to have python 3 installed with the launcher. py -3 -c "for x in range(100000): print(x)" Cheers, |
Hello, |
Update for NVDA 2020.3 beta: The problem is noticeably less common, but still appears. I think that it is related to many portions of text rather to one big piece. I tried to investigate the source of this issue, but did not find anything. Could someone outline the full path from new text loaded to terminal to NVDA reading it? Maybe I missed something. It seems not to be related to UIA support enabled/disabled. This issue definitely requires indeed testing. |
There is active work in this area, see #11639. |
I know that normal user doesn't have this problem.
But developers, mainly developers working in terminal, could have.
When large piece of text is loaded to the terminal at the same time, for example, 10000 characters of more, NVDA is hanging up. Also, after a moment, the system hangs up.
The only way is to wait.
NVDA is not reading the text, it's reading pieces of text, then a moment of silence, different piece, silence...
For example, I can call this in ruby by writing
for i in 1..100000
print("A fragment number #{i.to_s} ")
end
Also, we can find this error, when we'll using in terminal app, which writes big pieces of text.
In console commands, like tree, we won't observe this eror, because it isn't loading of text at the same time, there's a while between printing new files.
What is interesting...
The problem is hanging up the all system, you can not open task manager or other apps.
Thank you for help
Greetings,
Dawid Pieper
The text was updated successfully, but these errors were encountered: