Skip to content

Some samples crash on cleanup if VVL not available in Debug mode #1523

@SRSaunders

Description

@SRSaunders

The samples texture_loading, texture_mipmap_generation, hpp_pipeline_cache, pipeline_cache crash during cleanup if the VVL is not available when running in Debug mode. This can happen in a few cases: a) on Windows with no SDK installed, and b) on the iOS Simulator where the VVL is not built for that target.

The root cause of the crash is that the VVL is marked as Required for Debug mode vs. Optional, and because of this the Vulkan device is never defined. The above samples should check if the Vulkan device is defined before running their cleanup code.

I will submit a PR that addresses both issues: a) VVL marked as Optional, and b) fixes for the cleanup code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions