Skip to content

NVDA restart process is not robust #17485

@CyrilleB79

Description

@CyrilleB79

Issue found while trying to fix #11644.

NVDA restart process is not robust at all; there are many unforseen corner cases.

First example

Steps to reproduce:

  1. Start "nvda --disable-add" (please note the incomplete command line flag)
  2. Press NVDA+Q, select "Restart" and validate
  3. Repeat 2 as many times as wanted

Actual behavior:

After steps 2 and 3, NVDA restarts again with add-ons disabled, in contradiction to what is written in the restart dialog.

Expected behavior:

After steps 2 and 3, NVDA should restart with add-ons re-enabled.

Second example

Steps to reproduce:

  1. Start "nvda --lang=it --lang=en --disable-addons --disable-addons"
  2. Press NVDA+Q, select "Restart" and validate
  3. Press NVDA+Q, select "Restart" and validate

Actual behavior:

After step 2, NVDA is restarted with add-ons disabled and English language.

Expected behavior:

After steps 2 and 3, NVDA should restart with add-ons re-enabled.

Example 3

Steps to reproduce:

  1. Start "nvda --lan=it"
  2. Open NVDA settings dialogs

Actual behavior:

At step 1., no command parsing error window appears.
At step 2, NVDA appears in usual Windows language.

Expected behavior:

At step 2. NVDA should appear in Italian, since prefix matching should apply to command line options, even if not really advertised.
Alternatively, if such option writing is not allowed, at step 1., a command line error window should appear.

NVDA logs, crash dumps and other attachments:

N/A

System configuration

NVDA installed/portable/running from source:

Installed or from source

NVDA version:

2024.4.1

Windows version:

Windows 10 22H2 (AMD64) build 19045.5131

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.

No, but probably no change

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

N/A

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

Not tested, unrelated.

Metadata

Metadata

Assignees

Labels

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

Relationships

None yet

Development

No branches or pull requests

Issue actions