Skip to content

Use the new WinForms Panel type, fix clipped smoke test screenshots - #3

Draft
hokb wants to merge 5 commits into
mainfrom
claude/project-thread-qxbx6o
Draft

hokb wants to merge 5 commits into
mainfrom
claude/project-thread-qxbx6o

Conversation

@hokb

@hokb hokb commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Requested by Hns · project thread

Summary

  • Replace the obsolete ILNumerics.Drawing.Panel by ILNumerics.Drawing.Controls.WinForms.Panel in all examples (92 files) and the smoke hook; Panel.Driver -> RendererType. Removes all 348 CS0618/BC40000 warnings.
  • Bring the InteractiveWebApp Accelerator change from PR Re-enable the Accelerator for InteractiveWebApp #2 to main (it was merged into PR Move examples to .NET 10, add CI with smoke and render tests #1's branch after Move examples to .NET 10, add CI with smoke and render tests #1 was merged).
  • Smoke test fixes, from diagnostics on CI:
    • Clipped OpenGL screenshots (lower left part of the scene, black bar, rest white): the GLFW child window has the panel's size, but Mesa's software OpenGL keeps the default framebuffer at its initial size. The hook now resizes each panel once before taking screenshots.
    • Empty offscreen renders: the GDI renderer allocates ILNumerics arrays and hits the Starter plan's data size limit (StorageFactory.ThrowOnBasicTier), which is swallowed inside the renderer. The hook records exceptions during the offscreen render; the runner marks such renders as incomplete: Starter data size limit.
    • Missing Configure() calls in the examples were not the cause.

Open

  • Visualization/DirectionalZoom now fails: its OpenGL panel is blank on CI (the GDI render is fine). It passed before only because the black bar counted as content.

Test plan

  • CI build without Panel obsolete warnings
  • Screenshots inspected: complete after the resize
  • DirectionalZoom

🤖 Generated with Claude Code

https://claude.ai/code/session_01JT2yHhw9eXc9rXq3n4rjNR

…e ILNumerics.Drawing.Panel

The WinForms panel moved; the old type only remains as an obsolete base class.
Replace it in all examples and in the smoke hook (Panel.Driver -> RendererType).
The smoke hook additionally records the geometry of the panel's native child
windows and renders the panel's user side Scene, to investigate the clipped
OpenGL screenshots and empty offscreen renders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JT2yHhw9eXc9rXq3n4rjNR
@hokb hokb self-assigned this Nov 6, 2026
The Razor/ObjectPool failure that led to disabling it does not show up
in the CI Release build (the Accelerator processed the project fine) and
could not be reproduced on Windows; let CI confirm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JT2yHiXtw4BcZfEjbGLF4D
…creen renders

Diagnosis from CI runs of this branch:
- Clipped screenshots (lower left part of the scene, black bar, rest white):
  the GLFW child window has the panel's size, but Mesa's software OpenGL keeps
  the default framebuffer at its initial size. Resizing the panel once makes
  it follow. The hook now does this before taking the screenshots.
- Empty offscreen renders: the GDI renderer allocates ILNumerics arrays and
  hits the Starter plan's data size limit (StorageFactory.ThrowOnBasicTier),
  which is caught inside the renderer. The hook records exceptions thrown
  during the offscreen render and the runner marks such renders as
  incomplete. Missing Configure() calls in the examples are not the cause.

Remove the temporary diagnostics (window geometry, user scene render,
second screenshot).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JT2yHhw9eXc9rXq3n4rjNR
@hokb hokb changed the title Use the new WinForms Panel type, investigate broken smoke test renders Use the new WinForms Panel type, fix clipped smoke test screenshots Nov 6, 2026

hokb commented Nov 6, 2026

Copy link
Copy Markdown
Member Author

build-and-test fails on Visualization/DirectionalZoom: panel looks blank (0.12%). This is caused by this PR's screenshot fix, but it is not a new bug. Before, the clipped Mesa screenshot's black bar counted as content (3.2%), and the OpenGL panel was already empty apart from the logo. The offscreen GDI render shows the surface correctly. The test stays active. Next step: check whether the example renders on real hardware. If it does, the cause is in the example's camera setup (ShowAll) under Mesa.


Generated by Claude Code

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