Skip to content

NVDA freezes briefly with WASAPI enabled and receives AttributeError: 'NoneType' object has no attribute 'feed' #15311

@cary-rowen

Description

@cary-rowen

cc @jcsteh Maybe you can take a look at this Issue.

Steps to reproduce:

This issue may require a specific add-on to reproduce, but I've confirmed that it can only be reproduced with WASAPI enabled.

  1. Install ClipBoardEnhancement add-on.
  2. Please press Ctrl+C copy a file to the system clipboard at will.
  3. Press Ctrl+Numpad7/Numpad9.
    • Laptop: NVDA+Alt+UpArrow/DownArrow
    • The function of this gesture is to report the name and path of the file in the clipboard.
    • nvwave.playWaveFile is called in the process.
  4. Repeat step (3) repeatedly.
  5. When performing steps (3) and (4), you can feel that NVDA freezes briefly, and you can find some errors in the log.

Actual behavior:

Found the following in the NVDA log:

IO - inputCore.InputManager.executeGesture (18:54:14.232) - winInputHook (8472):
Input: kb(laptop):alt+NVDA+downArrow
ERROR - stderr (18:54:16.126) - nvwave.playWaveFile(FileInClipboard.wav) (9880):
Exception in thread nvwave.playWaveFile(FileInClipboard.wav):
Traceback (most recent call last):
  File "threading.pyc", line 926, in _bootstrap_inner
  File "threading.pyc", line 870, in run
  File "nvwave.pyc", line 710, in play
AttributeError: 'NoneType' object has no attribute 'feed'

Expected behavior:

NVDA should not brief freezes without 'AttributeError'.

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

alpha-28879,a7981cad

Windows version:

Windows 10 22H2 (AMD64) build 19045.3324

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

None

Other information about your system:

None

Other questions

Does the issue still occur after restarting your computer?

Yes

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

nvda-2023.2Beta3 can also reproduce this as long as WASAPI is enabled.

If NVDA add-ons are disabled, is your problem still occurring?

No

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/regressioncomponent/audioNVDA's audio output (nvWave, issues with usb audio etc).p4https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.

    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