-
-
Notifications
You must be signed in to change notification settings - Fork 670
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 exits automatically in MS Word when working with this document #9463
Comments
|
Here is the entire log file. addons were disabled. |
What I found interesting was attempting to load it into word 2003, it
invoked the document conversion routine and the resulting file, is it
german? Did not exhibit the problem, but was very sluggish of course as I do
not think nvda is optimised for such an old version of Word.
I could highlight loads of paras and the table etc, but as I say it was
slow. Windoows 7 here.
|
Interesting, yes it is german.
|
This Word document contains 141 JPEG files. Disable "Editor revisions" and "Comments" in the Document Formatting Settings and try again. |
That would explain the laggy nature and probably why converting it to an
earlier format worked, albeit slowly.
|
Disablind editors revisions etc does not solve this issue. Thanks for the suggestion though. |
@feerrenrut I saw you assigned P3 to the duplicate issue, however I suggest, if possible, to set a higher priority for this. It is a really big impact when working with big documents, and it is a complete crash. |
This still happens in 2020.1 and 2019.3.1 |
Just for clarification: NVDA 2020.1 Beta 1 is currently the latest beta build and 2019.3.1 the latest stable build. |
@Adriani90 I should have given reasoning on that issue. I assigned P3 because the crash requires selecting a lot of text by holding |
For now, the best workaround is to use NVDA+F9 and NVDA+F10 but that sometimes crashes my beta. 2020.1 Beta 1, when selecting multiple paragraphs with that method. For me, hitting select all wouldn't work because I am a novelist and wouldn't want to select a 80,000 word document when I only need to select chapter 23 only. |
@feerrenrut this is a very common use case, many people reported this actually in several mail lists. |
Is it possible to limit the amount of spoken Unicode characters when selecting or moving paragraphs? In most kind of these cases it is totally enough just to hear the first – let's say – 50 Unicode characters to detect the correct paragraph. Reading the whole paragraph in these situations is in my opinion not really necessary. Well, but may somebody need this – therefore add a checkbox "Only speak the first 50 Unicode characters during selecting/moving paragraphs". … Wait, I guess that isn't enough. Two text fields might be better: One for the amount of Unicode characters which should be spoken, and one which splits a paragraph into the "short and a large one, because only the large ones should be limited. Reason: News articles on the web could be read also paragraph by paragraph – and not by using SayAll. So in Firefox/Chrome/Edge it should not be limited, but in Microsoft Word or LibreOffice Writer – if the user needs this to correct/edit text. Configuration profiles could of course help here to manage this new function. So, more brainstorming is welcome. @rkingett and @Adriani90: Does this issue also occur on pressing Shift+PageDown or Shift+PageUp? I know that this isn't a suitable workaround, but if this is the case, we have to add these hotkeys as well to the limit function I mentioned before. |
No, it does not crash when pressing shift, and page up or down, or CTRL, Shift, page down. Neither the stable, 2019.3.1, nor beta, 2020.1, crash when using page down. |
@DrSooom I would strongly suggest not to limit the unicode characters spoken because we then run into the issue that people don't know what they are selecting or what they are reading. It must be another way to avoid NVDA crashing without any significant limitations in the user experience. |
However, it seems the document crashes also when using page up and page down for navigation. So this might need further investigation. |
After further testing it seems page up and page down also together with ctrl+shift, is not reproducible in a reliable way. But ctrl+shift+down arrow is definitely causing a crash. |
This is probably the most important part of the log here:
However, the termination process might have started before unregistering this key hook. But there is nothing really useful in the log for the time before this. |
@feerrenrut I tend to agree with #9463 (comment) in that (a) navigation and selection by paragraph is common, and (b) any scenario where NVDA crashes warrants greater-than-usual priority. Thoughts appreciated. |
Could not agree more. IMO, this should be given more attention. |
@michaelDCurran could you, if you have time, please look into this? At least for me this is a big problem. I am working very often with the ctrl+shift feature when selecting text in MS Word and in such complex documents, especially if there are multiple text columns, NVDA crashes and exits everytime. It would be really nice if this could get some more priority. Currently I am on NVDA alpha-20572,124bb02f and Office 365, but I could reproduce this in older Office versions as well. |
It's worth noting this happens in Libro Office too. |
Still occuring in NVDA alpha-20656,87eee7f4 |
I am so far unable to reproduce this bug at all I'm sorry.
Can I please see an entire log using latest NVDA master, from NVDA start to NVDA exit, with add-ons disabled, and log level set to debug, where you reproduce the issue. Please don't cut anything from the log, a part from hiding any file paths if you wish. Perhaps I require the German proofing tools to be installed for MS Word. I shall also try that and report back. |
Installing German proofing tools makes no difference for me. I can hold down control+shift+downArrow for many many seconds and NvDA never exits or freezes. |
@michaelDCurran thank you so much for your reply. Hmm it is indeed very strange that it does not reproduce for you. I have tested with a clean portable copy of NVDA, no addons. I have even disabled all kind of settings that could have an impact on performance in MS Word such as reporting of pages, document revisions etc. Still the crash occurs for me. See the complete log attached, the last lines of the file are most relevant I would say. It is strange that NVDA does not show the terminating process in the log file, it's just exiting without logging anything. |
Enabling UIA support for Microsoft Word seems to fix this issue. |
Regarding the other points, I am not using a braille display so far, the document is not in protected view and the crash occurs in all view layouts. I tested in reading layout, web layout, print layout and also draft layout.
To my knowledge your assumption is correct. |
Here is a log from the current master, the same crash occurs. |
@Adriani90 Thank you for the new logs. I now can clearly see why a freeze is occurring. However, I am not sure why previous copies of NvDA were actually exiting by themselves... so I'm not entirely sure if we are seeing one or two issues here. I'm still not sure why on my machine I never see this, but I can certainly see why logically this would happen in the code. |
Technical: |
Could people please test the following try build and report if the problem has been fixed: |
…s (VK 0xff) to ensure that certain modifier keys don't change keyboard layouts, use keybd_event directly rather than our KeyboardInputGesture.send. This stops a deadlock in the winInputHook thread (#9463)
Just in case people saw the above comment before now, I have replaced the try build with a new one: |
Thanks Mick for the quick follow up. I tested and it seems NVDA does not exit now automatically. However, I am not sure it is sellecting text because it just plays error sounds and does not report what's sellected. I get this error everytime when I press ctrl+shift+ arrow keys. I tested with the try build in your last comment.
|
I tried the second test build above, and I am getting the same result. See below. ERROR - keyboardHandler.internal_keyDownEvent (20:45:29.454) - winInputHook (16160): |
Sorry about that. I forgot to commit one of the files I changed! a new
try build coming very soon. This time I'll test the try build as well :)
|
Please test the following try build and report if the issue has been solved: |
Thank you for the try build. I have tested, and yes NVDA does not freeze or exit. But now NVDA does not report anything when I press ctrl+shift+arrow keys. |
This is proving quite tricky to fix. Thanks for continuing to test these. |
This last snapshot version, above, seems to fix it for me. Is it fixed for anybody else? |
The last try build seems to fix it Mick. Thank you very much for the work on this. |
Could people please test another try build for me: |
Thanks Mick, I've tested and it seems the last try build makes it even smoother. The performance is much better when selecting text with ctrl+shift+arrow keys, no matter how manc characters are in a paragraph. |
Just ad a chance to test the last build given above, and I think it is far better. Actually, could this apply to general document review navigation? This is much faster than the previous build when selecting multiple paragraphs. |
The performance issues for control+shift+downArrow are different to those for general document navigation. In the case of control+shift+downArrow, the performance cost was having to work around a situation in Windows where if pressing control+shift, alt+shift or alt+windows by themselves with no main key, might perform an action such as changing the input language. I was able to come up with a work around that is much less performance costly. |
It seems that pr #11478 (which fixed this issue) has caused issue #11587 . And confirm that holding down control+shift+downArrow in Microsoft Word is still working as expected. As we do want to get this new pr into NVDA 2020.3. Thanks. |
It is still fixed for me. Not sure about others, though. |
Steps to reproduce:
Actual behavior:
NVDA exits with the following in the log (see comment above). The entire log file is also attached. But note that it is very long. The synthesizer is still working though and some key strokes are still intercepted by the synthesizer.
Expected behavior:
NVDA should not exit.
System configuration
NVDA installed/portable/running from source:
Installed
NVDA version:
2019.1
Windows version:
Windows 10 1809 Update
Name and version of other software in use when reproducing the issue:
MS Word 2010, MS Word 2016, MS Word 365.
Other questions
Does the issue still occur after restarting your PC?
yes
Have you tried any other versions of NVDA?
yes, the same issues in different versions of NVDA.
ONKYO.docx
The text was updated successfully, but these errors were encountered: