Skip to content

Fix intermittent access violation in RenderBenchmark tests#919

Draft
jasonleenaylor wants to merge 1 commit into
mainfrom
claude/dazzling-williams-bed29f
Draft

Fix intermittent access violation in RenderBenchmark tests#919
jasonleenaylor wants to merge 1 commit into
mainfrom
claude/dazzling-williams-bed29f

Conversation

@jasonleenaylor
Copy link
Copy Markdown
Contributor

@jasonleenaylor jasonleenaylor commented May 29, 2026

Summary

  • Add [Apartment(ApartmentState.STA)] to RenderTimingSuiteTests and RenderVerifyTests
  • Views COM objects (VwGraphicsWin32Class, _VwRootBoxClass) require STA threading — without the attribute, NUnit runs these on an MTA thread, causing intermittent access violations during RootBox.Layout in CI
  • The sibling StVcTests fixture already had this attribute correctly

Test plan

  • Verify RenderBenchmark tests pass consistently in CI (previously intermittent AV failures)
  • Confirm no regression in other RootSite tests

🤖 Generated with Claude Code


This change is Reviewable

Add [Apartment(ApartmentState.STA)] to RenderTimingSuiteTests and
RenderVerifyTests. The Views COM objects (VwGraphicsWin32Class,
_VwRootBoxClass) require STA threading; without the attribute, NUnit
runs these tests on an MTA thread, causing intermittent access
violations during RootBox.Layout in CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

NUnit Tests

    1 files  ±0      1 suites  ±0   8m 35s ⏱️ - 2m 15s
4 206 tests ±0  4 136 ✅ +1  70 💤 ±0  0 ❌  - 1 
4 215 runs  ±0  4 145 ✅ +1  70 💤 ±0  0 ❌  - 1 

Results for commit bea6146. ± Comparison against base commit 63fa9fb.

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.

1 participant