Skip to content

Focused objects not reported after a plugins reload #17323

@CyrilleB79

Description

@CyrilleB79

The issue seems to be reproducible with any browseable message. Here is an example with the format reporting command.

Steps to reproduce:

  • Go somewhere where the formatting command has something to report, e.g. in Windows commands console (cmd).
  • Press twice NVDA+f to display formatting information in a browseable message
  • Alt+Tab to the console
  • Reload the plugins with NVDA+control+f3
  • Alt+Tab somewhere else or move the focus elsewhere in some way.

Actual behavior:

The new focus is not reported.

Expected behavior:

The new focus should be reported.

NVDA logs, crash dumps and other attachments:

ERROR - eventHandler.executeEvent (15:30:42.709) - MainThread (18484):
error executing event: gainFocus on <NVDAObjects.Dynamic_IAccessibleEditWindowNVDAObject object at 0x00CC1630> with extra args of {}
Traceback (most recent call last):
  File "eventHandler.pyc", line 348, in executeEvent
  File "eventHandler.pyc", line 382, in doPreGainFocus
  File "api.pyc", line 155, in setFocusObject
  File "treeInterceptorHandler.pyc", line 83, in cleanup
  File "baseObject.pyc", line 39, in __get__
  File "virtualBuffers\MSHTML.pyc", line 286, in _get_isAlive
AttributeError: 'NoneType' object has no attribute 'appName'

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

2024.4rc1

Windows version:

Windows 10 22H2 (AMD64) build 19045.5011

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

N/A

Other information about your system:

N/A

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.

Already present in previous versions of NVDA, at least 2024 cycle, but probably much earlier.

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

Yes

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

    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