nvda icon indicating copy to clipboard operation
nvda copied to clipboard

NVDA Freezes On Opening Outlook

Open munawarb opened this issue 10 months ago • 16 comments

Steps to reproduce:

Open Outlook with NVDA loaded; observe that NVDA freezes with a message: Could not open log file c:\users...\appData\roaming\nvda_slave.log, access denied.

Actual behavior:

Expected behavior:

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

2024.4.2

Windows version:

11

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

Outlook

Other information about your system:

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.

Yes, same issue.

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?

N/A

munawarb avatar Apr 03 '25 09:04 munawarb

I don't get this particular message like in the issue description, but with last NVDA alpha and outlook 365, I get lots of significant freezes while navigating the outlook interface. cc: @michaelDCurran, @SaschaCowley it might be that the last Outlook update throws a lot of UIA events to NVDA, no idea, but it seems the event limiter is somehow involved. Could you check this please? It seems Outlook got almost unusable in the last update. My UIA for MS Word setting is set to "only when necessary", no NVDA add-ons in use.

Outlook: Microsoft 365 MSO (Version 2503 Build 16.0.18623.20116) 64 Bit Windows: 24 H2 Edition Windows 11 Home build 26100.3624 NVDA: alpha-35898,537d8f24 (2025.2.0.35898)

DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:51.559) - MainThread (18124):
Successfully created NVDA event nameChange for <NVDAObjects.IAccessible.IAccessible object at 0x09CF4210> from winEvent EVENT_OBJECT_NAMECHANGE, window 1508726 (NetUIHWND), objectID 100794609, childID 0, process 22148 (outlook)
DEBUG - speech.manager.SpeechManager.cancel (13:18:51.559) - MainThread (18124):
SpeechManager- Cancel
ERROR - eventHandler.executeEvent (13:18:51.559) - MainThread (18124):
error executing event: UIA_elementSelected on <appModules.outlook.UIAGridRow object at 0x09CE8F30> with extra args of {}
Traceback (most recent call last):
  File "eventHandler.pyc", line 353, in executeEvent
  File "eventHandler.pyc", line 119, in __init__
  File "eventHandler.pyc", line 128, in next
  File "NVDAObjects\UIA\__init__.pyc", line 2407, in event_UIA_elementSelected
  File "NVDAObjects\__init__.pyc", line 1319, in event_selection
  File "baseObject.pyc", line 59, in __get__
  File "baseObject.pyc", line 167, in _getPropertyViaCache
  File "NVDAObjects\UIA\__init__.pyc", line 2365, in _get_controllerFor
  File "NVDAObjects\UIA\__init__.pyc", line 1157, in _getUIACacheablePropertyValue
_ctypes.COMError: (-2146233083, None, (None, None, None, 0, None))
DEBUG - watchdog._waitUntilNormalCoreAliveTimeout (13:18:51.605) - watchdog (17576):
Recovered from potential freeze after 7.012228599996888 seconds.
DEBUG - speech.manager.SpeechManager._handleIndex (13:18:51.625) - MainThread (18124):
SpeechManager- Handle index: 1684
DEBUG - speech.manager.SpeechManager._handleIndex (13:18:51.625) - MainThread (18124):
Unknown index 1684, speech probably cancelled from main thread.
DEBUG - speech.manager.SpeechManager._getMostRecentlyCancelledUtterance (13:18:51.625) - MainThread (18124):
SpeechManager- Length of _cancelCommandsForUtteranceBeingSpokenBySynth: 0 Length of _indexesSpeaking: 0 
DEBUG - speech.manager.SpeechManager._doRemoveCancelledSpeechCommands (13:18:51.625) - MainThread (18124):
SpeechManager- Last index: None
DEBUG - speech.manager.SpeechManager._handleDoneSpeaking (13:18:51.625) - MainThread (18124):
SpeechManager- Synth done speaking, should push: False
DEBUG - IAccessibleHandler.orderedWinEventLimiter.OrderedWinEventLimiter.flushEvents (13:18:51.815) - MainThread (18124):
winEvent limit for thread 19844 hit for this core cycle

...

DEBUG - IAccessibleHandler.processFocusWinEvent (13:18:51.815) - MainThread (18124):
Processing focus winEvent: window 460708 (NetUIHWND), objectID 107, childID 0, process 22148 (outlook), force False
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:51.815) - MainThread (18124):
Creating NVDA event from winEvent: EVENT_OBJECT_FOCUS, window 460708 (NetUIHWND), objectID 107, childID 0, process 22148 (outlook), use cache False
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:51.815) - MainThread (18124):
winEvent mapped to NVDA event: gainFocus
DEBUG - UIAHandler.UIAHandler._isUIAWindowHelper (13:18:51.815) - MainThread (18124):
checking window hwnd 0X707A4 of class NetUIHWND
DEBUG - UIAHandler.UIAHandler._isUIAWindowHelper (13:18:51.815) - MainThread (18124):
window does not have UIA server side provider. Treating as non-UIA
DEBUGWARNING - IAccessibleHandler.accessibleObjectFromEvent (13:18:51.938) - MainThread (18124):
oleacc.AccessibleObjectFromEvent failed with [WinError -2147467259] Unbekannter Fehler. WinEvent: window 460708 (NetUIHWND), objectID 107, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:51.938) - MainThread (18124):
Could not instantiate an NVDAObject for winEvent: EVENT_OBJECT_FOCUS, window 460708 (NetUIHWND), objectID 107, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.processFocusWinEvent (13:18:51.938) - MainThread (18124):
Processing focus winEvent: window 460708 (NetUIHWND), objectID 100729107, childID 0, process 22148 (outlook), force False
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:51.938) - MainThread (18124):
Creating NVDA event from winEvent: EVENT_OBJECT_FOCUS, window 460708 (NetUIHWND), objectID 100729107, childID 0, process 22148 (outlook), use cache False
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:51.938) - MainThread (18124):
winEvent mapped to NVDA event: gainFocus
DEBUG - UIAHandler.UIAHandler.isUIAWindow (13:18:51.938) - MainThread (18124):
Found cached is UIA window False for hwnd hwnd 0X707A4 of class NetUIHWND
DEBUG - watchdog._waitUntilNormalCoreAliveTimeout (13:18:52.318) - watchdog (17576):
Potential freeze, waiting up to 10 seconds.
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.689) - MainThread (18124):
Successfully created NVDA event gainFocus for <NVDAObjects.IAccessible.IAccessible object at 0x09D055B0> from winEvent EVENT_OBJECT_FOCUS, window 460708 (NetUIHWND), objectID 100729107, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.processGenericWinEvent (13:18:52.689) - MainThread (18124):
Processing generic winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729482, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.689) - MainThread (18124):
Creating NVDA event from winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729482, childID 0, process 22148 (outlook), use cache True
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.689) - MainThread (18124):
winEvent mapped to NVDA event: stateChange
DEBUG - UIAHandler.UIAHandler._isUIAWindowHelper (13:18:52.689) - MainThread (18124):
checking window hwnd 0X508D6 of class NetUIHWND
DEBUG - UIAHandler.UIAHandler._isUIAWindowHelper (13:18:52.689) - MainThread (18124):
window does not have UIA server side provider. Treating as non-UIA
DEBUGWARNING - IAccessibleHandler.accessibleObjectFromEvent (13:18:52.735) - MainThread (18124):
oleacc.AccessibleObjectFromEvent failed with [WinError -2147467259] Unbekannter Fehler. WinEvent: window 329942 (NetUIHWND), objectID 100729482, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
Could not instantiate an NVDAObject for winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729482, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.processGenericWinEvent (13:18:52.735) - MainThread (18124):
Processing generic winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729483, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
Creating NVDA event from winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729483, childID 0, process 22148 (outlook), use cache True
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
winEvent mapped to NVDA event: stateChange
DEBUG - UIAHandler.UIAHandler.isUIAWindow (13:18:52.735) - MainThread (18124):
Found cached is UIA window False for hwnd hwnd 0X508D6 of class NetUIHWND
DEBUGWARNING - IAccessibleHandler.accessibleObjectFromEvent (13:18:52.735) - MainThread (18124):
oleacc.AccessibleObjectFromEvent failed with [WinError -2147467259] Unbekannter Fehler. WinEvent: window 329942 (NetUIHWND), objectID 100729483, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
Could not instantiate an NVDAObject for winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729483, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.processGenericWinEvent (13:18:52.735) - MainThread (18124):
Processing generic winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729484, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
Creating NVDA event from winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729484, childID 0, process 22148 (outlook), use cache True
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
winEvent mapped to NVDA event: stateChange
DEBUG - UIAHandler.UIAHandler.isUIAWindow (13:18:52.735) - MainThread (18124):
Found cached is UIA window False for hwnd hwnd 0X508D6 of class NetUIHWND
DEBUGWARNING - IAccessibleHandler.accessibleObjectFromEvent (13:18:52.735) - MainThread (18124):
oleacc.AccessibleObjectFromEvent failed with [WinError -2147467259] Unbekannter Fehler. WinEvent: window 329942 (NetUIHWND), objectID 100729484, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
Could not instantiate an NVDAObject for winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729484, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.processGenericWinEvent (13:18:52.735) - MainThread (18124):
Processing generic winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729485, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
Creating NVDA event from winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729485, childID 0, process 22148 (outlook), use cache True
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
winEvent mapped to NVDA event: stateChange
DEBUG - UIAHandler.UIAHandler.isUIAWindow (13:18:52.735) - MainThread (18124):
Found cached is UIA window False for hwnd hwnd 0X508D6 of class NetUIHWND
DEBUGWARNING - IAccessibleHandler.accessibleObjectFromEvent (13:18:52.735) - MainThread (18124):
oleacc.AccessibleObjectFromEvent failed with [WinError -2147467259] Unbekannter Fehler. WinEvent: window 329942 (NetUIHWND), objectID 100729485, childID 0, process 22148 (outlook)
DEBUG - IAccessibleHandler.winEventToNVDAEvent (13:18:52.735) - MainThread (18124):
Could not instantiate an NVDAObject for winEvent: EVENT_OBJECT_STATECHANGE, window 329942 (NetUIHWND), objectID 100729485, childID 0, process 22148 (outlook)
DEBUG - watchdog._waitUntilNormalCoreAliveTimeout (13:18:52.819) - watchdog (17576):
Recovered from potential freeze after 1.000721500007785 seconds.

Adriani90 avatar Apr 05 '25 11:04 Adriani90

Here are two log files from Outlook, maybe they are helpful.

Outlook-logging.zip

Adriani90 avatar Apr 05 '25 12:04 Adriani90

Can you confirm if this is the case for when UIA is set to: "Where suitable" and "Always" not "Where necessary"? It's likely your new Outlook version relies on UIA.

seanbudd avatar Apr 07 '25 00:04 seanbudd

Welcome @munawarb ,

We are unable to process this issue as it stands.

  • Please fill out the issue template fully. Tell us the full version number of Outlook and Windows
  • Please reproduce this issue and provide a log file of the behaviour. Ensure your log level is set to debug in general preferences.

Kind Regards, NV Access Software Developers

seanbudd avatar Apr 07 '25 00:04 seanbudd

@seanbudd NVDA debug log is attached. I had the log running while I opened Outlook and when NVDA froze until I dismissed the permission denied dialog. I'm running office 365 Enterprise.

nvda.log

munawarb avatar Apr 07 '25 09:04 munawarb

@munawarb can you provide more information on the exact version number of Windows and Office. Here are instructions: Windows: https://learn.microsoft.com/en-us/windows/client-management/client-tools/windows-version-search Office: https://support.microsoft.com/en-au/office/about-office-what-version-of-office-am-i-using-932788b8-a3ce-44bf-bb09-e334518b8b19

gerald-hartig avatar Apr 07 '25 23:04 gerald-hartig

@munawarb it looks like your log file is missing some things. Can you provide a full unmodified log. If you're worried about personal information please email us the log.

gerald-hartig avatar Apr 07 '25 23:04 gerald-hartig

@gerald-hartig That's weird. I sent you the exact NVDA log after setting log level to debug. Is there a different level I should use?

munawarb avatar Apr 08 '25 10:04 munawarb

Hmm, at least for my comment above you can ignore it. It seems the freeze behavior disappeared in my case at least... Magic.

Adriani90 avatar Apr 08 '25 18:04 Adriani90

@munawarb are you sure you are running the last Windows 11 stable update for 24 H2?

Adriani90 avatar Apr 08 '25 18:04 Adriani90

@gerald-hartig Edition Windows 11 Home Version 24H2 Installed on ‎1/‎20/‎2025 OS build 26100.3476 Experience Windows Feature Experience Pack 1000.26100.54.0 Microsoft® Outlook® for Microsoft 365 MSO (Version 2503 Build 16.0.18623.20116) 64-bit

[edit - removed log]

Looks like this is the relevant line in the log:

ValueError: invalid literal for int() with base 10: b''

You can see shortly after nvda_slave shuts down.

Let me know when I can delete this log file, it's showing everything, like my company email address and stuff.

munawarb avatar Apr 09 '25 11:04 munawarb

Hi @munawarb I've removed the link to your log since you've stated it contains information you'd prefer to keep private. Can you please email it to us on the link on this page https://www.nvaccess.org/contact-us/ and in the subject line reference this issue number. Apologies, I deleted the link before I downloaded the file, which would have saved that step. My apologies.

gerald-hartig avatar Apr 09 '25 21:04 gerald-hartig

@gerald-hartig No problem! I just emailed it.

munawarb avatar Apr 10 '25 09:04 munawarb

I've also observed lot of issues while using Outlook with NVDA. It was fine for my sighted colleagues. However recently I stumbled across following blog-post, where Outlook seems to be currently suffering with a bug where CPU usage spikes while editing a message. While this is not the exact issue OP shared, it might be related, so sharing for general awareness. https://www.xda-developers.com/typing-outlook-cpu-usage-spike/

mystragical avatar Apr 18 '25 12:04 mystragical

@munawarb I've gone through the supplied nvda log and removed all PII & potentially private information, in order to keep the log associated with this issue, so that the community can continue to investigate. nvda(7).log

gerald-hartig avatar May 19 '25 01:05 gerald-hartig

@munawarb your MS Office 365 version seems to be outdated. Can you please update to build 2505 last update and see whether you still have this issue? I cannot reproduce.

Adriani90 avatar Jun 13 '25 19:06 Adriani90

Can you still reproduce this with NVDA 2025.1.2?

seanbudd avatar Jun 23 '25 08:06 seanbudd

Hi, I’ll let you know when I’m back to work on Thursday. I’m actually on holiday at the moment. So I don’t have access to outlook.On Jun 23, 2025, at 4:38 AM, Sean Budd @.***> wrote:seanbudd left a comment (nvaccess/nvda#17890) Can you still reproduce this with NVDA 2025.1.2?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

munawarb avatar Jun 23 '25 16:06 munawarb

@seanbudd @Adriani90 Looks like the latest version of Outlook classic fixed the issue. I get no more freezes on Outlook startup once Office asked to update.

munawarb avatar Jun 30 '25 13:06 munawarb

Great - glad to hear!

seanbudd avatar Jul 01 '25 08:07 seanbudd