Skip to content

Re-SPIRV crashes with read access violation on my area-lights branch #113561

@CookieBadger

Description

@CookieBadger

Tested versions

CookieBadger:area-light-integration, rebased on fbc9539;

System information

Windows 11, Vulkan, Forward+, RTX3070

Issue description

Upon rebasing my area lights branch CookieBadger:area-light-integration, I keep getting the exception "read access violation" thrown in re-spirv.cpp::3072 **std::vector<respv::Instruction,std::allocator<respv::Instruction> >::operator[]**(...) returned 0x2305F39B9B8.

Not to say there is something wrong with it, since master works fine, but I also do not know what could be the issue with my branch.

When I run the project from the console, it prints before crashing:

SPIR-V Parsing error. Result 3550 is not valid.
SPIR-V Parsing error. Result 3563 is not valid.
SPIR-V Parsing error. Result 3533 is not valid.
SPIR-V Parsing error. Result 3546 is not valid.

Switching the project to D3D12 makes it run normally, i.e. adding the following to project.godot:

[rendering]
rendering_device/driver.windows="d3d12"

Steps to reproduce

switch to my branch, build the engine, and observe how a project crashes, unless it specifies to use Direct3D instead of Vulkan.

Minimal reproduction project (MRP)

AreaLightsTestProjectBroken.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions