Skip to content

native_symbol_integration_test fails on Windows when run alone: raw DynamicLibrary.open before the runtime is loaded #952

Closed

Description

@leehack

Found in the 0.11.0 release smokes on a GCE Windows x64 VM (CUDA, Vulkan and CPU builds alike). Test defect, not a runtime defect.

"Verify the pinned wrapper exports the exit-teardown API the service resolves" (test/integration/backends/llama_cpp/native_symbol_integration_test.dart, added in #943) opens .dart_tool\lib\llamadart.dll with DynamicLibrary.open(<absolute path>) at ~line 600, before ExitTeardownApi.tryResolve at ~line 605. On a cold process Windows cannot resolve the sibling imports (mtmd.dll, llama-common.dll, llama.dll, ggml-base.dll) and the open fails with error 126.

  • Run alone: 1 failure, 18 pass. With .dart_tool\lib on PATH: 20/20.
  • Hosted CI passes only because Test Native (windows-latest) runs all files in one process and an earlier file has already loaded the runtime.
  • Apps are unaffected: loading through the package works cold (all validation packs and exit probes passed on the same VM).

Fix: resolve through the package first (swap the two calls), or open the sibling DLLs before the raw open.

Activity

  1. added
    bug
    priority:P3
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions