Don't attempt crash loop detection or automatic restarting on crash when running in secure mode#19238
Merged
Merged
Conversation
…hen running in secure mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Fixes #19216
Follow-up #19175
Summary of the issue:
NVDA was failing to start on secure screens, unless the serviceDebug global parameter was set.
Description of user facing changes:
NVDA works on secure desktops again.
Description of developer facing changes:
None
Description of development approach:
The issue was caused by
utils._crashHandler.CrashStats.crashStatsPathassuming thatglobalVars.appArgs.logFileNamewould always represent a path. Notwithstanding this, it also wrote to disk, even whenNVDAState.shouldWriteToDiskreturnedFalse(i.e. in scure mode or running from the launcher).utils._crashHandlermodule.watchdog.initializeto no longer addutils._crashHandler.crashHandleras an unhandled exception filter when running in secure mode.Testing strategy:
Ran from source, and executed the following in the python console to ensure automatic restarts on crash still work as expected:
Modified NVDA to allow the scratchpad in secure mode, built a self-signed launcher, and installed it.
Hit
alt+control+delete, and observed that NVDA worked as expected.Added the following global plugin to the scratchpad of the user and system config:
Restarted NVDA, and observed that it started, a tone was heard, and it crashed, and this only happened 4 times.
Hit
alt+control+delete, and observed that NVDA started, a tone was heard, NVDA crashed, and did not restart.Known issues with pull request:
When NVDA crashes on the secure desktop, no feedback is given to the user. However, this is not new.
Code Review Checklist: