Skip to content

Vulkan memory access violation - handling. #19

@philstopford

Description

@philstopford

CommandList.SetVertexBuffer(0, LinesVertexBuffer);

can yield an exception under certain drivers, it seems:

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Under .NET Framework, this kind of violation can be caught with some extra work (try/catch is not enough by itself - the runtime defaults to managing these exceptions) and with some configuration, it may allow for recovery. .NET Core lacks the ability to manage these exceptions : the runtime catches and silently exits the application.

This looks like an issue within Veldrid itself in terms of driver handling and may well be intentional and/or a bug.

Noting here because I run into this primarily with intel drivers and only ever with Vulkan.

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