mdgunn Posted October 20 Share Posted October 20 In brief: If I am on Ultra Engine 0.98 and Radeon driver 24.8.1 then things are OK but moving either forwards (either to hot beta branch) or later Radeon (24.9 or 24.10.1) drivers leads to instant crash trying to do anything which would cause the viewport (or viewers) to render in 3D. In a bit more detail: This is probably something in my setup but I have it on 2 different machines. Both machines are AMD based GPU + CPU + Windows 11. One is Ryzen 3600X with Radeon 6600 other is Ryzen 5800X3D with Radeon 6800 XT. When on latest Radeon drivers the edtor will crash with no particular error at the point where I add something that must be rendered on the screen. By this I mean I can add icon types things such as cameras, lights, probes etc to either perspective or 2d viewport with no problem. I can also add brushes to 2D viewports but if I switch to 4 viewports then the editor crashes and I suspect it is because it has to render the brush in 3D not 2D. It is not limited to brushes though, I think adding terrain will do it and clicking on a model file in the asset browser to make it render a 3D version in the viewer will make it crash. Josh has already said he can run a Radeon 6600 (same as one of my cards) on latest hot branch of Ultra Engine and Radeon 24.10.1 so there is something about both of my machines that is causing the issue but I do not know how to gather more information on what the cause would be. Can anyone help? For example is there a crash log somewhere or are there any suggestions to turn anything off to rule things out and narrow down the cause? 1 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted October 21 Share Posted October 21 Currently I am on driver 24.7.1. Updating now... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted October 21 Share Posted October 21 Installed 24.10.1 and I get the same result you described. Testing further... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted October 21 Share Posted October 21 Same result if I revert the engine to 0.9.7... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted October 21 Share Posted October 21 PBR shader family crashes, but unlit shader family seems to work correctly. The error is in the driver, no OpenGL errors occur. Commenting out RenderLighting in Shaders/PBR/Fragment.glsl prevents the crash... #include "UltraEngine.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { auto displays = GetDisplays(); auto window = CreateWindow("Ultra Engine", 0, 0, 1280 * displays[0]->scale, 720 * displays[0]->scale, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR); auto framebuffer = CreateFramebuffer(window); auto world = CreateWorld(); auto cam = CreateCamera(world); cam->Move(0, 0, -2); cam->SetClearColor(0.125); auto box = CreateBox(world); auto mtl = CreateMaterial(); auto fam = LoadShaderFamily("Shaders/Unlit.fam"); //auto fam = LoadShaderFamily("Shaders/PBR.fam"); mtl->SetShaderFamily(fam); mtl->SetColor(0, 0, 1, 1); box->SetMaterial(mtl); //Main loop while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { box->Turn(0, 1, 0); world->Update(); world->Render(framebuffer, true); } return 0; } Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted October 21 Share Posted October 21 Okay, it looks like in the latest drivers these commands cause problems if they are used on samplers that come from bindless texture handles: textureSize textureQueryLevels I think I just need to encode this information in the light entity data and remove these calls... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted October 22 Share Posted October 22 Reported to AMD: https://community.amd.com/t5/general-discussions/opengl-bindless-texture-crash-in-driver-24-10-1/td-p/719064 https://github.com/GPUOpen-Drivers/AMD-Gfx-Drivers/issues/27 In the meantime I recommend reverting to driver 24.7.1. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
mdgunn Posted October 22 Author Share Posted October 22 Can confirm 24.7.1 OK with with latest beta 0.98c. Thanks. Quote Link to comment Share on other sites More sharing options...
Josh Posted October 22 Share Posted October 22 Glad to hear that works for you. I will keep this "unsolved" until AMD puts out a new driver. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted October 24 Share Posted October 24 Also reported here: https://community.amd.com/t5/pc-drivers-software/opengl-bindless-texture-crash-in-driver-24-10-1/m-p/719662#M198972 I find their forum structure incredibly confusing and I don't know where I am supposed to report bugs. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted October 29 Share Posted October 29 AMD has responded here: https://github.com/GPUOpen-Drivers/AMD-Gfx-Drivers/issues/27#issuecomment-2443034119 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted November 12 Share Posted November 12 Response from AMD: Quote This issue is understood and fixed internally. The future Adrenalin driver releases will include the complete fix. https://github.com/GPUOpen-Drivers/AMD-Gfx-Drivers/issues/27#issuecomment-2469514182 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
mdgunn Posted November 12 Author Share Posted November 12 Great news. I suppose we wait till the fix is released before closing this off. Thanks. Quote Link to comment Share on other sites More sharing options...
Josh Posted Wednesday at 11:06 PM Share Posted Wednesday at 11:06 PM I am using driver this driver on an AMD 6600 and it seems to work fine. Even my example in the bug report to AMD works correctly. AMDBindlessTexturesBug.zip Adrenalin 24.10.1 (WHQL Recommended) File Size 772 MB Release Date 2024-10-18 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
mdgunn Posted 22 hours ago Author Share Posted 22 hours ago I'm away for at least a week (or 2) so unable to personally confirm it is OK on my AMD machines at the moment. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.