UIA: crash at very end of buffer #10818

Open
opened 2026-01-31 02:31:08 +00:00 by claunia · 0 comments
Owner

Originally created by @codeofdusk on GitHub (Sep 29, 2020).

Originally assigned to: @carlos-zamora on GitHub.

In the NVDA Python console (NVDA+control+z):

>>> from NVDAObjects.UIA import UIATextInfo
>>> ti=UIATextInfo(nav, "last")
>>> ti.move("character", 1)  # conhost crashes
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "NVDAObjects\UIA\__init__.pyc", line 752, in move
  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))

Note: fixing this bug may result in strange behaviour from NVDA (see here, around line 53). I'll remove the offending workaround once a fix is merged to master.

I suspect #6986 would fix this bug, but I think the root cause of this crash should be investigated before then. Cc @carlos-zamora.

Originally created by @codeofdusk on GitHub (Sep 29, 2020). Originally assigned to: @carlos-zamora on GitHub. In the NVDA Python console (NVDA+control+z): ``` python console >>> from NVDAObjects.UIA import UIATextInfo >>> ti=UIATextInfo(nav, "last") >>> ti.move("character", 1) # conhost crashes Traceback (most recent call last): File "<console>", line 1, in <module> File "NVDAObjects\UIA\__init__.pyc", line 752, in move 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)) ``` Note: fixing this bug may result in strange behaviour from NVDA (see [here](https://github.com/nvaccess/nvda/blob/master/source/NVDAObjects/UIA/winConsoleUIA.py#L53), around line 53). I'll remove the offending workaround once a fix is merged to master. I suspect #6986 would fix this bug, but I think the root cause of this crash should be investigated before then. Cc @carlos-zamora.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10818