Skip to content

Errors in new diffing algorithm breaks automatic reading of consoles till NVDA restarts #11992

@Neurrone

Description

@Neurrone

Steps to reproduce:

Unsure exactly what caused this, I think it happened right as I switched from another application into the windows 10 console (conhost, am not using windows terminal).

Actual behavior:

The following error is logged. Subsequent text written to the console is no longer read until NVDA restarts.

ERROR - diffHandler.DiffMatchPatch.diff (13:48:59.482) - Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread (1516):
Exception in DMP, falling back to difflib
Traceback (most recent call last):
  File "diffHandler.pyc", line 94, in diff
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 322: unexpected end of data
ERROR - diffHandler.DiffMatchPatch.diff (13:48:59.545) - Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread (1516):
Exception in DMP, falling back to difflib
Traceback (most recent call last):
  File "diffHandler.pyc", line 91, in diff
OverflowError: cannot fit 'int' into an index-sized integer

Expected behavior:

Reading of new text does not break

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

alpha-21599,d3aaca53

Windows version:

Windows 10 2004

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

Conhost

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

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

If addons are disabled, is your problem still occuring?

Did you try to run the COM registry fixing tool in NVDA menu / tools?

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions