nvda icon indicating copy to clipboard operation
nvda copied to clipboard

Outlook Crashes When Switching Mail Accounts With NVDA Running

Open trodick opened this issue 6 years ago • 34 comments

Whenever I try and switch folders in Microsoft Outlook, whether that be to a different folder in the same mailbox or in a different account, NVDA crashes, doesn't restart, and Outlook goes unresponsive. Same behavior happens even though I attempted to run the COM Registration Fixing Tool.

Steps to reproduce:

  1. Open Outlook.
  2. Switch from the Inbox folder to any other folder in the same or a different mailbox.

Actual behavior:

NVDA crashes, and Outlook becomes unresponsive to the point that I need to close it with the Windows "This app is not responding" dialog.

Expected behavior:

NVDA should not crash, and Outlook should switch folders correctly.

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

2019.3 RC3

Windows version:

Windows 10, Build 1909 (18363.592)

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

Microsoft® Outlook® for Office 365 MSO (16.0.12325.20328) 64-bit

Other information about your system:

20 GB RAM, Intel Core i7-1065G7 at 1.30 gHz

Other questions

Does the issue still occur after restarting your PC?

Yes

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

2019.2.1: No error 2019.3 RC1: No error 2019.3 Beta 3/4: No error 2019.3 RC1: No error 2019.3 RC2: Problem as described nvda.log

trodick avatar Feb 06 '20 21:02 trodick

I cannot reproduce this in NVDA Version: alpha-19633, 1690296. Please try following:

  1. Update outlook via the update function in home tab / account
  2. Try to reproduce this issue with all NVDA addons disabled
  3. Rund the com fixing registration tool in NVDA menu / tool

After doing the steps above, can you see any differences?

It seems like something on your system is not working correctly, since you have a lot of OS errors in the log file. Maybe you can try to run a CCleaner to clean up your registry and restart your computer.

Please report back in case you still have this issue after the suggestions above. Otherwise it will be closed sooner or later without any result.

Adriani90 avatar Feb 06 '20 22:02 Adriani90

I still have the issue after completing all suggestions above. Log file is attached. nvda-old.log

trodick avatar Feb 06 '20 23:02 trodick

I also can't reproduce it with NVDA 2019.3 RC3 Portable on Win7x64 (German) and Microsoft® Outlook® 2010 (14.0.7236.5000) SP2 MSO (14.0.7237.5000). Maybe because I disabled the e-mail preview in Outlook 2010.

DrSooom avatar Feb 08 '20 05:02 DrSooom

@DrSooom I would have thought the best way to test for this issue would be to use the same major version of Outlook on the same major version of Windows. Additionally, I still had the issue while using nvda_source-master-169c329. I compiled it under Visual Studio 2017, Python 3.7.5, using this command:

scons source release=1

trodick avatar Feb 08 '20 06:02 trodick

@trodick: It isn't bad to know which version combos still work to be able to limit the occurrence of this issue.

DrSooom avatar Feb 08 '20 07:02 DrSooom

So I have some more context on this issue. It does not happen with Narrator, only with NVDA, and it doesn't matter how I access the new folder (whether it be by pressing Enter on its entry in the folder pane, or routing the mouse to the navigator object and left-clicking). I tried to work with the Microsoft Disability Answer Desk on it, and they said it's an NVDA issue because it worked in Narrator.

trodick avatar Feb 09 '20 04:02 trodick

Is the option "Use UI automation to access Microsoft Word document controls when available" in the Advanced NVDA Settings enabled?

DrSooom avatar Feb 09 '20 10:02 DrSooom

No, that option is disabled.

trodick avatar Feb 09 '20 20:02 trodick

I just checked to see if the problem was solved by turning on the Use UIA checkbox, and it did not fix the issue.

trodick avatar Feb 09 '20 21:02 trodick

@trodick: Used language of Windows, Microsoft Office and NVDA?

DrSooom avatar Feb 10 '20 07:02 DrSooom

The only differences between RC 1 and RC 2 and RC 3 were translations updates. While a little onerous, to ensure we are getting accurate results from the testing it would be wise to restart between tests. Sometimes old versions of DLL's can stay loaded. A restart will ensure that isn't happening. I have looked over the log, and don't see any clear indicators of what is causing the problem. The watchdog pointed to a stack during changing profiles, perhaps it is worth disabling all triggers and testing again.

feerrenrut avatar Feb 10 '20 10:02 feerrenrut

@trodick: Used language of Windows, Microsoft Office and NVDA? Windows, Office, and NVDA are all set to En-US.

trodick avatar Feb 10 '20 16:02 trodick

Could you please disable all your profile triggers in NVDA and try again as suggested by Reef above? Please create a portable version out of your installed version and try to reproduce this issue.

Adriani90 avatar Feb 10 '20 20:02 Adriani90

This is not reproducible in later versions of Outlook. However, NV Access is currently working with the MS Office team to get access to debugging symbols so that we can generate readable stack traces for these kinds of issues in the future. Leaving open, but we won't be able to address this for NVDA 2020.1.

michaelDCurran avatar Mar 19 '20 01:03 michaelDCurran

@michaelDCurran I can still reproduce this issue in the version of Outlook I have installed (16.0.12711.20000 64-bit). This is Outlook for Office 365 MSO.

trodick avatar Mar 19 '20 04:03 trodick

@trodick do you get a minidump for this crash? Could you zip and attach it to this issue?

feerrenrut avatar Mar 19 '20 15:03 feerrenrut

@feerrenrut I don't get a minidump, but I do get this rather nasty set of tracebacks. I even ran the focus.appModule.dumpOnCrash() command in the Python console and still didn't get anything.

WARNING - watchdog._watcher (18:59:39.853) - watchdog (10608):
Core frozen in stack:
  File "nvda.pyw", line 215, in <module>
  File "core.pyc", line 545, in main
  File "wx\core.pyc", line 2134, in MainLoop
  File "gui\__init__.pyc", line 1030, in Notify
  File "core.pyc", line 515, in run
  File "queueHandler.pyc", line 83, in pumpAll
  File "queueHandler.pyc", line 47, in flushQueue
  File "comtypesMonkeyPatches.pyc", line 101, in newCpbDel
  File "comtypes\__init__.pyc", line 918, in __del__
  File "comtypes\__init__.pyc", line 1172, in Release
  File "comtypesMonkeyPatches.pyc", line 26, in __call__

WARNING - watchdog._watcher (18:59:54.886) - watchdog (10608):
Core frozen in stack:
  File "nvda.pyw", line 215, in <module>
  File "core.pyc", line 545, in main
  File "wx\core.pyc", line 2134, in MainLoop
  File "gui\__init__.pyc", line 1030, in Notify
  File "core.pyc", line 515, in run
  File "queueHandler.pyc", line 83, in pumpAll
  File "queueHandler.pyc", line 47, in flushQueue
  File "comtypesMonkeyPatches.pyc", line 101, in newCpbDel
  File "comtypes\__init__.pyc", line 918, in __del__
  File "comtypes\__init__.pyc", line 1172, in Release
  File "comtypesMonkeyPatches.pyc", line 26, in __call__

WARNING - watchdog._watcher (19:00:09.924) - watchdog (10608):
Core frozen in stack:
  File "nvda.pyw", line 215, in <module>
  File "core.pyc", line 545, in main
  File "wx\core.pyc", line 2134, in MainLoop
  File "gui\__init__.pyc", line 1030, in Notify
  File "core.pyc", line 515, in run
  File "queueHandler.pyc", line 83, in pumpAll
  File "queueHandler.pyc", line 47, in flushQueue
  File "comtypesMonkeyPatches.pyc", line 101, in newCpbDel
  File "comtypes\__init__.pyc", line 918, in __del__
  File "comtypes\__init__.pyc", line 1172, in Release
  File "comtypesMonkeyPatches.pyc", line 26, in __call__

ERROR - scriptHandler.executeScript (19:00:26.164) - MainThread (6436):
error executing script: <bound method GlobalCommands.script_review_currentLine of <globalCommands.GlobalCommands object at 0x07B09110>> with gesture 'numpad 8'
Traceback (most recent call last):
  File "scriptHandler.pyc", line 205, in executeScript
  File "globalCommands.pyc", line 1046, in script_review_currentLine
  File "textInfos\offsets.pyc", line 506, in expand
  File "textInfos\offsets.pyc", line 485, in _getUnitOffsets
  File "textInfos\offsets.pyc", line 393, in _getLineOffsets
  File "NVDAObjects\__init__.pyc", line 48, in _getStoryText
  File "baseObject.pyc", line 42, in __get__
  File "baseObject.pyc", line 145, in _getPropertyViaCache
  File "NVDAObjects\__init__.pyc", line 1180, in _get_basicText
  File "baseObject.pyc", line 42, in __get__
  File "baseObject.pyc", line 145, in _getPropertyViaCache
  File "NVDAObjects\UIA\__init__.pyc", line 1451, in _get_value
  File "NVDAObjects\UIA\__init__.pyc", line 802, in _getUIACacheablePropertyValue
  File "comtypesMonkeyPatches.pyc", line 26, in __call__
_ctypes.COMError: (-2146233083, None, (None, None, None, 0, None))
ERROR - eventHandler.executeEvent (19:00:26.166) - MainThread (6436):
error executing event: typedCharacter on <appModules.outlook.UIAWithReadStatus object at 0x015BD0D0> with extra args of {'ch': '@'}
Traceback (most recent call last):
  File "eventHandler.pyc", line 155, in executeEvent
  File "eventHandler.pyc", line 92, in __init__
  File "eventHandler.pyc", line 100, in next
  File "NVDAObjects\__init__.pyc", line 1047, in event_typedCharacter
  File "speech\__init__.pyc", line 836, in speakTypedCharacters
  File "api.pyc", line 264, in isTypingProtected
  File "baseObject.pyc", line 42, in __get__
  File "baseObject.pyc", line 145, in _getPropertyViaCache
  File "NVDAObjects\__init__.pyc", line 921, in _get_isProtected
  File "baseObject.pyc", line 42, in __get__
  File "baseObject.pyc", line 145, in _getPropertyViaCache
  File "NVDAObjects\UIA\__init__.pyc", line 1207, in _get_states
  File "NVDAObjects\UIA\__init__.pyc", line 802, in _getUIACacheablePropertyValue
  File "comtypesMonkeyPatches.pyc", line 26, in __call__
_ctypes.COMError: (-2146233083, None, (None, None, None, 0, None))
ERROR - eventHandler.executeEvent (19:00:26.167) - MainThread (6436):
error executing event: typedCharacter on <appModules.outlook.UIAWithReadStatus object at 0x015BD0D0> with extra args of {'ch': '@'}
Traceback (most recent call last):
  File "eventHandler.pyc", line 155, in executeEvent
  File "eventHandler.pyc", line 92, in __init__
  File "eventHandler.pyc", line 100, in next
  File "NVDAObjects\__init__.pyc", line 1047, in event_typedCharacter
  File "speech\__init__.pyc", line 836, in speakTypedCharacters
  File "api.pyc", line 264, in isTypingProtected
  File "baseObject.pyc", line 42, in __get__
  File "baseObject.pyc", line 145, in _getPropertyViaCache
  File "NVDAObjects\__init__.pyc", line 921, in _get_isProtected
  File "baseObject.pyc", line 42, in __get__
  File "baseObject.pyc", line 145, in _getPropertyViaCache
  File "NVDAObjects\UIA\__init__.pyc", line 1207, in _get_states
  File "NVDAObjects\UIA\__init__.pyc", line 802, in _getUIACacheablePropertyValue
  File "comtypesMonkeyPatches.pyc", line 26, in __call__
_ctypes.COMError: (-2146233083, None, (None, None, None, 0, None))

trodick avatar Mar 20 '20 00:03 trodick

There is a more general discussion on this topic in #10247. I think this is very related and might occur if you have lot of mails in a folder or if there are many mails with lots of flags like invitations with attachments with importance flags, emails with other different flags such as replied, atributed preview, and and and. My guess is that NVDA tries to fetch all the flags exposed by outlook for an email or an invitation and fails at some point, ending in a crash. This was also hapenning in MS Word earlier when NVDA fetched all the text atributes while navigating in tables with ctrl+alt+arrow keys etc. I think the solution is

  1. Limit the flags which should be fetched from Outlook when pressing up and down arrow in the message list to the most important flags
  2. Provide key strokes in the outlook appmodule for the flags which are not that important so that the user can request reporting of those flags when needed while navigating through the message list

or another way would be to limit the flags only to "read" and "unread" and all other flags could be displayed in a browseable window by pressing a key stroke on a specific message.

I will post my thought on that issue as well, and I close this issue in favor of #10247.

Adriani90 avatar Apr 29 '20 18:04 Adriani90

@Adriani90 These are completely separate issues as evident by the fact that this was not happening in 2019.2.1 according to the OP Please reopen and more importantly read entire conversation before closing!

lukaszgo1 avatar Apr 29 '20 18:04 lukaszgo1

I am reopening, however I still think this is not related to 2019.3.1. There has been alot of conversation on NVDA or even Outlook crashing when switching folders. I think this issue is rather caused by an Outlook update, any flags which might have changed for the folders between 2019.3 RC1 and RC2 testing or something else. I cannot reproduce this with NVDA alpha-20056,96cf444b and Outlook MSO (16.0.12624.20422) 32-Bit. However, it might be reproducible only on 64-bit version. I have not tested with 64-bit yet.

Adriani90 avatar Apr 29 '20 18:04 Adriani90