Skip to content

Fix intermittent access violation in RenderBenchmark tests#919

Merged
jasonleenaylor merged 1 commit into
mainfrom
claude/dazzling-williams-bed29f
Jun 3, 2026
Merged

Fix intermittent access violation in RenderBenchmark tests#919
jasonleenaylor merged 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.

Copy link
Copy Markdown
Contributor

@mark-sil mark-sil left a comment

Choose a reason for hiding this comment

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

@mark-sil reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on jasonleenaylor).

@jasonleenaylor jasonleenaylor marked this pull request as ready for review June 2, 2026 14:23
Copy link
Copy Markdown
Contributor

@mark-sil mark-sil left a comment

Choose a reason for hiding this comment

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

@mark-sil reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on jasonleenaylor).

@jasonleenaylor jasonleenaylor merged commit 62bdbce into main Jun 3, 2026
7 checks passed
@jasonleenaylor jasonleenaylor deleted the claude/dazzling-williams-bed29f branch June 3, 2026 21:59
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.

2 participants