Windows runner has no opengl32.dll: renderer tests are skipped there, and the app itself may not start #93

Open
opened 2026-11-11 12:21:06 +00:00 by charles · 0 comments
Owner

Found while landing Task 20 (#20, PR #61).

What happened

On the Windows runner, cargo test --workspace died at tests\message_list.rs with exit code 0xc0000135 (STATUS_DLL_NOT_FOUND) before any test ran (runs 89, 90, 91). That test binary was the first one to construct an iced::Renderer (iced::advanced::renderer::Headless::new(.., Some("tiny-skia"))). iced::Renderer is the wgpu-with-tiny-skia-fallback renderer, so the executable links wgpu, and wgpu's GLES/WGL backend (glutin_wgl_sys, #[link(name = "opengl32")]) puts opengl32.dll in its static import table. Asking for the software backend at run time does not help: the process never gets past the loader.

Verified on the runner (log of run 91, release ci-log-91-windows)

missing-dlls: Microsoft Windows Server 2025 Standard 10.0.26100 (build 26100, Server Core, 64-bit)
missing-dlls: C:\fcargo\fluxer-native\debug\deps\message_list-570b0d19fb0a5ca9.exe
  imports: api-ms-win-core-synch-l1-2-0.dll, api-ms-win-crt-*.dll, bcryptprimitives.dll, GDI32.dll, KERNEL32.dll, ntdll.dll, oleaut32.dll, opengl32.dll, USER32.dll, userenv.dll, VCRUNTIME140.dll
  MISSING: opengl32.dll, imported by message_list-570b0d19fb0a5ca9.exe (no such file; LoadLibraryEx error 126)
  • Missing DLL: opengl32.dll (the only static import that does not resolve).
  • Runner: Windows Server 2025 Standard, Server Core installation (no desktop graphics components).

What was done in PR #61

  • The tests that build a renderer moved out of crates/fluxer-ui/tests/message_list.rs into their own test binary, crates/fluxer-ui/tests/message_view.rs, which is #![cfg(not(windows))]. The layout-engine, composer and model tests of message_list.rs still run on Windows; all of them still run on Linux. Net loss: the five headless widget tests do not run on Windows.
  • CI: a Name missing DLLs step (tools/ci/missing-dlls.ps1) runs only after a failed Windows job and prints, for every executable cargo reports with 0xc0000135, the imports that do not resolve and the Windows edition, into the published log.
  • Nothing was installed on the runner.

Still open

  1. The shipped Windows app links the same import. apps/fluxer uses the same renderer, so fluxer.exe should also fail to start on this runner with the same error (not verified: no run has tried to start it there). Any future Windows smoke test in CI (launching the app, screenshot tests on Windows) will hit this before the first line of main.
  2. Ways to get the headless tests (and a smoke test) back on Windows, to be decided:
    • give the runner opengl32.dll (a Server with Desktop Experience install, or a Mesa opengl32.dll next to the test binaries); a runner change, Charles's call;
    • drop wgpu's gles backend on Windows (iced wgpu-bare plus an explicit wgpu feature list per target: dx12 + vulkan on Windows); a dependency/feature change that needs its own task, and it changes which GPUs the app runs on;
    • make the views generic over the renderer so tests can use iced_tiny_skia::Renderer directly (large change: fluxer_ui::Element is fixed to iced::Renderer).
  3. When this is resolved, remove #![cfg(not(windows))] from crates/fluxer-ui/tests/message_view.rs.
Found while landing Task 20 (#20, PR #61). ## What happened On the Windows runner, `cargo test --workspace` died at `tests\message_list.rs` with exit code `0xc0000135` (STATUS_DLL_NOT_FOUND) before any test ran (runs 89, 90, 91). That test binary was the first one to construct an `iced::Renderer` (`iced::advanced::renderer::Headless::new(.., Some("tiny-skia"))`). `iced::Renderer` is the wgpu-with-tiny-skia-fallback renderer, so the executable links wgpu, and wgpu's GLES/WGL backend (`glutin_wgl_sys`, `#[link(name = "opengl32")]`) puts `opengl32.dll` in its static import table. Asking for the software backend at run time does not help: the process never gets past the loader. ## Verified on the runner (log of run 91, release `ci-log-91-windows`) ``` missing-dlls: Microsoft Windows Server 2025 Standard 10.0.26100 (build 26100, Server Core, 64-bit) missing-dlls: C:\fcargo\fluxer-native\debug\deps\message_list-570b0d19fb0a5ca9.exe imports: api-ms-win-core-synch-l1-2-0.dll, api-ms-win-crt-*.dll, bcryptprimitives.dll, GDI32.dll, KERNEL32.dll, ntdll.dll, oleaut32.dll, opengl32.dll, USER32.dll, userenv.dll, VCRUNTIME140.dll MISSING: opengl32.dll, imported by message_list-570b0d19fb0a5ca9.exe (no such file; LoadLibraryEx error 126) ``` - Missing DLL: **`opengl32.dll`** (the only static import that does not resolve). - Runner: **Windows Server 2025 Standard, Server Core** installation (no desktop graphics components). ## What was done in PR #61 - The tests that build a renderer moved out of `crates/fluxer-ui/tests/message_list.rs` into their own test binary, `crates/fluxer-ui/tests/message_view.rs`, which is `#![cfg(not(windows))]`. The layout-engine, composer and model tests of `message_list.rs` still run on Windows; all of them still run on Linux. Net loss: the five headless widget tests do not run on Windows. - CI: a `Name missing DLLs` step (`tools/ci/missing-dlls.ps1`) runs only after a failed Windows job and prints, for every executable cargo reports with `0xc0000135`, the imports that do not resolve and the Windows edition, into the published log. - Nothing was installed on the runner. ## Still open 1. **The shipped Windows app links the same import.** `apps/fluxer` uses the same renderer, so `fluxer.exe` should also fail to start on this runner with the same error (not verified: no run has tried to start it there). Any future Windows smoke test in CI (launching the app, screenshot tests on Windows) will hit this before the first line of `main`. 2. Ways to get the headless tests (and a smoke test) back on Windows, to be decided: - give the runner `opengl32.dll` (a Server with Desktop Experience install, or a Mesa `opengl32.dll` next to the test binaries); a runner change, Charles's call; - drop wgpu's `gles` backend on Windows (iced `wgpu-bare` plus an explicit `wgpu` feature list per target: dx12 + vulkan on Windows); a dependency/feature change that needs its own task, and it changes which GPUs the app runs on; - make the views generic over the renderer so tests can use `iced_tiny_skia::Renderer` directly (large change: `fluxer_ui::Element` is fixed to `iced::Renderer`). 3. When this is resolved, remove `#![cfg(not(windows))]` from `crates/fluxer-ui/tests/message_view.rs`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#93
No description provided.