Skip to content

Deadlock on device destruction due to mutex #1739

@PancakeTAS

Description

@PancakeTAS

Hey there, this is a bit of an odd one. I've written a Vulkan layer which requires a separate Vulkan device to be created internally. This is where I'm encountering an issue.

It seems that when the layer gets unloaded as part of the application closing, that mutex is locked, meaning the destruction of my library is unable to destroy internally created devices.

Creating the internal device via the next layers function is not viable. I've thought about this days and I couldn't find a solution.

Source is here, though I hope this issue is understandable without requiring to sit through my code (please ask followup questions!).

I wouldn't call this a bug, but I do really need help to work around this, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions