Skip to content

[Bug] [Vulkan] Windows process crashes during device API shutdown #20396

Description

@sepcnt

Expected behavior

Vulkan initialization and normal Python process exit succeed.

Actual behavior

The query prints True, then the process exits with 0xC0000005.
The stack enters the NVIDIA driver from Vulkan device destruction during
LdrShutdownProcess. A standalone Vulkan DLL with the same static-destructor
pattern reproduces the crash; explicit cleanup before DLL shutdown succeeds.

Environment

  • Windows 11, RTX 5060 Laptop GPU, NVIDIA 591.94; Intel integrated GPU also present
  • TVM ea0cfa320f, USE_VULKAN=ON, Vulkan SDK 1.4.350.0
  • Python 3.12.13

Steps to reproduce

import tvm
print(tvm.vulkan(0).exist)

Triage

  • needs-triage
  • type: bug

Activity

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

    needs-triagePRs or issues that need to be investigated by maintainers to find the right assignees to address ittype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions