Skip to content

Watchdog: List stacks for all Python threads when trying to recover from freeze#11417

Merged
michaelDCurran merged 1 commit intomasterfrom
allStacksOnFreezeRecovery
Jul 26, 2020
Merged

Watchdog: List stacks for all Python threads when trying to recover from freeze#11417
michaelDCurran merged 1 commit intomasterfrom
allStacksOnFreezeRecovery

Conversation

@michaelDCurran
Copy link
Copy Markdown
Member

Link to issue number:

None

Summary of the issue:

NVDA's watchdog tries to recover from freezes, and when doing so logs the main thread's stack. However, the freeze may be caused also by what is going on in another thread. We should log stacks for all Python threads when trying to recover.

Description of how this pull request fixes the issue:

Log stacks for all Python threads when watchdog is trying to recover from a possible freeze.
Note that we already started logging all threads when the core was completely frozen. This pr extends this to recovery attempts also.

Testing performed:

Caused NVDA to temporarily freeze and try recovery by opening the Python console, typing time.sleep(5), pressing enter and alt tabbing away quickly.
Confirmed that the the log showed the message about trying to recover from freeze, and that it listed all Python threads.

Known issues with pull request:

None.

Change log entry:

None.

@AppVeyorBot

This comment has been minimized.

@michaelDCurran michaelDCurran merged commit a68e63c into master Jul 26, 2020
@michaelDCurran michaelDCurran deleted the allStacksOnFreezeRecovery branch July 26, 2020 22:05
@nvaccessAuto nvaccessAuto added this to the 2020.3 milestone Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants