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

Crash when compiling with non-semantic debuginfo #3189

Open
arcady-lunarg opened this issue Apr 14, 2023 · 5 comments
Open

Crash when compiling with non-semantic debuginfo #3189

arcady-lunarg opened this issue Apr 14, 2023 · 5 comments

Comments

@arcady-lunarg
Copy link
Contributor

When compiling the shader in the attached file with glslangValidator -gVS --target-env vulkan1.3 3188.frag -o 3188.dbg.spv, glslang crashes with the following assert:

glslangValidator: /home/arcady/glslang/SPIRV/SpvBuilder.cpp:967: spv::Id spv::Builder::makeMemberDebugType(const spv::Id, const spv::Builder::DebugTypeLoc &): Assertion `debugId[memberType] != 0' failed.

https://github.com/KhronosGroup/glslang/files/11224475/glslang.3188.zip

@arcady-lunarg
Copy link
Contributor Author

Here is a reduced version of the shader that still exhibits the issue.
reduced.frag.txt

@arcady-lunarg
Copy link
Contributor Author

After #3359 this will no longer crash, but will not generate debug info for the buffer reference struct members. The full fix is awaiting a pending spec change that will allow forward references in extended instruction sets' instructions.

@helviett
Copy link

-gVS for some reason can't handle large shaders with a lot of helper functions. It just silently fails with -1073741819 error code. You can take any shader from the @TheForge to reproduce.

@arcady-lunarg
Copy link
Contributor Author

@helviett That seems like a separate issue. Could you file a separate issue with a link to a specific shader that reproduces it?

@helviett
Copy link

helviett commented Feb 4, 2024

@arcady-lunarg #3497

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

No branches or pull requests

2 participants