Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShaderConductorTest abort DxilModuleReflection::_GetConstantBufferByName #66

Open
CatDroid opened this issue Oct 12, 2021 · 1 comment

Comments

@CatDroid
Copy link

Describe the bug
run ShaderConductorTest ,and crash on LinkTest

To Reproduce

  1. vs2019 on Win10 Debug and x64 build
  2. commit id: 30a77c7 branch: maset
  3. start up with ShaderConductorTest
  4. console log :
    [----------] 1 test from LinkTest
    [ RUN ] LinkTest.LinkDxil --- after here, program crash

program is runing TEST(LinkTest, LinkDxil) at ShaderConductorTest.cpp

  1. crash info
    DxilContainerReflection.cpp
    DxilModuleReflection::_GetConstantBufferByName(LPCSTR Name)

crash on "if (it != m_StructuredBufferCBsByName.end()) " map/set iterators in range are from different containers

Name is "cbPS" which i found that in "ShaderConductor/Source/Tests/Data/Input/CalcLight.hlsl"

m_StructuredBufferCBsByName size() is 0
but
m_CBsByName size() is 1 and m_CBsByName contains "cbPS"

@CatDroid
Copy link
Author

more info:
when running:
DxilModuleReflection::CreateReflectionObjects()
m_pDxilModule->GetUAVs()
and
m_pDxilModule->GetSRVs()
both are empty , so "m_StructuredBufferCBsByName" keep empty too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant