Skip to content

Revert configuration gives error #13679

@cary-rowen

Description

@cary-rowen

Steps to reproduce:

When you select 'No Braille' in the Braille device selection combo box and click the OK button, you will not be able to reproduce this.

  1. Launch NVDA2022.1Beta4;
  2. Feel free to change a config, such as checking or unchecking an option in the Document Formatting panel, and then click the OK button;
  3. Press Ctrl +NVDA+R to try to reverse this config.

Actual behavior:

NVDA throws something errors and play an error sound.
I found by observing the logs that this should be a regression introduced by #13191.
Here are the key log snippets:

Loaded braille display driver seikantk, current display has 0 cells.
ERROR - queueHandler.flushQueue (21:34:56.030) - MainThread (9512):
Error in func resetConfiguration
Traceback (most recent call last):
  File "queueHandler.pyc", line 55, in flushQueue
  File "core.pyc", line 212, in resetConfiguration
  File "braille.pyc", line 2341, in terminate
  File "braille.pyc", line 1743, in terminate
  File "brailleDisplayDrivers\seikantk.pyc", line 191, in terminate
AttributeError: 'BrailleDisplayDriver' object has no attribute '_dev'
ERROR - eventHandler.executeEvent (21:34:57.220) - MainThread (9512):
error executing event: valueChange on <NVDAObjects.IAccessible.IAccessible object at 0x0E106090> with extra args of {}
Traceback (most recent call last):
  File "eventHandler.pyc", line 285, in executeEvent
  File "eventHandler.pyc", line 99, in __init__
  File "eventHandler.pyc", line 108, in next
  File "NVDAObjects\IAccessible\__init__.pyc", line 1615, in event_valueChange
  File "NVDAObjects\__init__.pyc", line 1189, in event_valueChange
AttributeError: 'NoneType' object has no attribute 'handleUpdate'

Expected behavior:

No Errors.

System configuration

NVDA installed/portable/running from source:

installed and portable

NVDA version:

2022.1Beta4

Windows version:

Windows 10 21H2 (x64) build 19044.1682

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.

NVDA2021.3.5 cannot reproduce this.

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

Labels

bug/regressionfeature/configurationMaking NVDA more configurable.p3https://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

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions