Skip to content

Live text handler: Handle is invalid error raised when console windows appear and disappear quickly #7250

@josephsl

Description

@josephsl

Hi,

I'm seeing this error more frequently these days (perhaps due to use of some apps that pops open cmd.exe or powerShell for a quick task). Although there is no definitive reproduction steps, the end result is as follows:

  1. Perform a task (say, doing a say all).
  2. A console window pops up and closes immediately.
  3. An error tone is heard with the following traceback:

ERROR - NVDAObjects.behaviors.LiveText._monitor (11:13:42.960):
Error getting initial lines
Traceback (most recent call last):
File "NVDAObjects\behaviors.pyc", line 260, in _monitor
File "NVDAObjects\window\winConsole.pyc", line 49, in _getTextLines
File "winConsoleHandler.pyc", line 121, in getConsoleVisibleLines
File "wincon.pyc", line 70, in GetConsoleScreenBufferInfo
WindowsError: [Error 6] The handle is invalid.

Specs:

  • NvDA version: next.14089
  • OS: Windows 10 Version 1703 (15063)

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p5https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority

    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