Skip to content

UIA console: cmd/powershell crashes completely with a lot of text that scrolls #10406

@AAClause

Description

@AAClause

Steps to reproduce:

  1. Ensure you have set Windows console support to "preferred UIA".
  2. Open a terminal and execute a script/command that returns a lot of text.
  3. Wait a few seconds.

Actual behavior:

The terminal is frequently crashing (closes completely). No problem with legacy mode. I raised following errors in the log on several attempts (sometimes there is no traceback in the log):

Traceback (most recent call last):
  File "NVDAObjects\UIA\__init__.pyc", line 284, in __init__
  File "comtypesMonkeyPatches.pyc", line 26, in __call__
_ctypes.COMError: (-2147220991, 'An event was unable to invoke any of the subscribers', (None, None, None, 0, None))None, 0, None))
DEBUGWARNING - NVDAObjects.behaviors.LiveText._monitor (05:48:57.681) - Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread (6592):
Error getting lines or calculating new text
Traceback (most recent call last):
  File "NVDAObjects\behaviors.pyc", line 301, in _monitor
  File "NVDAObjects\UIA\winConsoleUIA.pyc", line 286, in _getTextLines
  File "comtypesMonkeyPatches.pyc", line 26, in __call__
_ctypes.COMError: (-2147220991, 'An event was unable to invoke any of the subscribers', (None, None, None, 0, None))
Traceback (most recent call last):
  File "NVDAObjects\__init__.pyc", line 77, in __call__
  File "NVDAObjects\UIA\__init__.pyc", line 954, in __init__
NVDAObjects.InvalidNVDAObject: no windowHandle

Expected behavior:

No terminal crash.

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

alpha-18955,12f27acf

Windows version:

10 1903 (build 18990.1)

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

cmd, powershell, bash, etc..

Other information about your system:

N/A

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.

No problem in legacy mode.

CC @codeofdusk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions