Skip to content

Add csrss app module#18975

Merged
seanbudd merged 1 commit into
nvaccess:masterfrom
LeonarddeR:csrss
Sep 24, 2025
Merged

Add csrss app module#18975
seanbudd merged 1 commit into
nvaccess:masterfrom
LeonarddeR:csrss

Conversation

@LeonarddeR

Copy link
Copy Markdown
Collaborator

Link to issue number:

Fixes #18859
Related to #18870

Summary of the issue:

Since winBindings and #18833, NVDA spits continuous debug warnings about the inability to get a process handle for csrss.exe

Description of user facing changes:

No errors.

Description of developer facing changes:

None

Description of development approach:

Create a csrss appModule that always assumes csrss.exe to be alive.

  1. CSRSS is an essential GUI process, therefore it can safely be considered always alive. It hosts the desktop object.
  2. Before winBindings, the app module was also assumed always alive due to an obfuscated bug.

Testing strategy:

Ensured that no continuous debug warnings are emitted

Known issues with pull request:

None

Code Review Checklist:

  • x] Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@LeonarddeR LeonarddeR requested a review from a team as a code owner September 23, 2025 10:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Creates a new csrss app module to prevent debug warnings by assuming the csrss.exe process is always alive, addressing permission issues when NVDA attempts to query the process status.

  • Adds a csrss app module that overrides the isAlive property to always return True
  • Prevents continuous debug warnings about inability to get process handle for csrss.exe
  • Leverages the fact that csrss.exe is an essential Windows GUI process that is always running

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@seanbudd seanbudd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @LeonarddeR

@seanbudd seanbudd merged commit 8014482 into nvaccess:master Sep 24, 2025
38 of 40 checks passed
@github-actions github-actions Bot added this to the 2026.1 milestone Sep 24, 2025
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.

Continuous debug warnings about csrss.exe appModule being created and destroyed

3 participants