Skip to content

When NVDA is started from source with python.exe it is not possible to interact with any console window. #8653

@lukaszgo1

Description

@lukaszgo1

Steps to reproduce:

  1. On system with all NVDA dependencies installed clone NVDA git repository and run scons source.
  2. move to the source directory and type python nvda.pyw
  3. Try to read a console window in which NVDA is started.
  4. Open another cmd and try to interact with it.

Actual behavior:

Screen reviev keys didn't work and the following is written in the log each time when the console is focused.

ERROR - NVDAObjects.behaviors.LiveText._monitor (14:54:56.263):
Error getting initial lines
Traceback (most recent call last):
  File "NVDAObjects\behaviors.py", line 260, in _monitor
    oldLines = self._getTextLines()
  File "NVDAObjects\window\winConsole.py", line 49, in _getTextLines
    return winConsoleHandler.getConsoleVisibleLines()
  File "winConsoleHandler.py", line 121, in getConsoleVisibleLines
    consoleScreenBufferInfo=wincon.GetConsoleScreenBufferInfo(consoleOutputHandle)
  File "wincon.py", line 70, in GetConsoleScreenBufferInfo
    raise WinError()
WindowsError: [Error 6] Nieprawidłowe dojście. which in polish mean something like the handle is invalid.

Expected behavior:

NVDA should be able to read a console window.

System configuration:

NVDA Installed/portable/running from source:

Running from source

NVDA version:

master commit ec3eeee (HEAD -> master, nvaccess/master

Windows version:

Windows 7 x64

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

Python 2.7.15, Visual Studio community 2017

Other information about your system:

None

Other questions:

Does the issue still occur after restarting your PC?

Yes

Have you tried any other versions of NVDA?

No

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