WickedEngine icon indicating copy to clipboard operation
WickedEngine copied to clipboard

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

Open docstrang opened this issue 1 year ago • 6 comments

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.

docstrang avatar Aug 16 '24 10:08 docstrang

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

turanszkij avatar Aug 16 '24 12:08 turanszkij

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 .

docstrang avatar Aug 16 '24 14:08 docstrang

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

brakhane avatar Aug 16 '24 14:08 brakhane

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

turanszkij avatar Aug 16 '24 17:08 turanszkij

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/

docstrang avatar Aug 16 '24 17:08 docstrang

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.

turanszkij avatar Aug 17 '24 07:08 turanszkij