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

[BUG] Exception thrown: read access violation. shader_internal was nullptr. #925

Open
docstrang opened this issue Aug 16, 2024 · 6 comments

Comments

@docstrang
Copy link

I have an amd rx 7600 graphics card with the latest driver and when it finishes compiling it shows this error and does not start the editor, the file is "wiGraphicsDevice_DX12.cpp" and the line number is 4119 this is the error line and the message is "Exception thrown: read access violation. shader_internal was nullptr."

stream.stream1.PS = { shader_internal->shadercode.data(), shader_internal->shadercode.size() };

Greetings.

@turanszkij
Copy link
Owner

Sorry, this should be fixed, it was caused by today's commit.

@docstrang
Copy link
Author

Thanks for the quick fix, now there is another problem, in the editor if I add a cube and select allow mesh shader the cube is not shown and if I try to load a scene for example sponza the GPU stops responding and the screen goes completely black and a few seconds later it returns showing this message
Screenshot 2024-08-16 163056
.

@brakhane
Copy link
Contributor

brakhane commented Aug 16, 2024

are you running in debug or release mode? Most error checking is only done in asserts; if you were running in release, I assume the createfence call earlier failed and fence is uninitialized

@turanszkij
Copy link
Owner

The mesh shader is not working on AMD GPU for the moment, I couldn't find the reason why.

@docstrang
Copy link
Author

I don't know if this link can help you to know the config limits of the mesh shaders on amd gpu.

https://gpuopen.com/learn/mesh_shaders/mesh_shaders-optimization_and_best_practices/

@turanszkij
Copy link
Owner

Those are just recommendations for performance. My implementation is within the dx12 and vulkan specs so it should work on AMD, but it doesn't, and no errors are given.

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

3 participants