-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
ID3D12CommandQueue errors cause blank screen and error spam #14936
Comments
For ease of searching, here are the errors:
|
UPDATE: Tested on bevy 0.13.2 and all I got was a bunch of errors, on bevy 0.14.1, it also crashes. |
Are your graphics drivers up to date? This sort of issue is often a driver bug. |
Thanks for the tip! I upgraded to the latest graphics drivers and it no longer crashes, and when running in release mode, I also get no errors. Unfortunately, for some reason, when I run in debug mode I still get error spam: |
Okay, that's good to hear! I'm not personally able to debug much further, but I appreciate your investigations so far. |
It's been almost a month and this issue still persists. I tried running the async_compute example in both release mode and debug mode and I get the errors only in debug mode. I also removed all drivers and did a factory reset before reinstalling them. 2024-09-22.15-20-35.mp42024-09-22T12:22:24.635838Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using ClearRenderTargetView on Command List (0x00000247903D4E60:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0xA96F9320: D3D12_RESOURCE_STATE_[COMMON|PRESENT]) of resource (0x00000247903C8E40:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a render target. Expected State Bits (all): 0xA96F9300: D3D12_RESOURCE_STATE_RENDER_TARGET, Actual State: 0xA96F92E0: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Missing State: 0x4: D3D12_RESOURCE_STATE_RENDER_TARGET. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]
2024-09-22T12:22:24.644697Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using IDXGISwapChain::Present on Command List (0x0000024790350B20:'Internal DXGI CommandList'): Resource state (0xAE33E9B0: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource (0x00000247903C8E40:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a PRESENT_SOURCE. Expected State Bits (all): 0xAE33E990: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Actual State: 0xAE33E970: D3D12_RESOURCE_STATE_RENDER_TARGET, Missing State: 0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT]. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE] |
Having the same issue with the latest amd driver:
getting the following messages:
Sample is working fine tho, its just unusable with that console spam |
Can you try to reproduce this on |
found this one in wgpu: gfx-rs/wgpu#4247 |
|
Bevy version: 0.14.1
Relevant system information: Windows 11 Laptop with Ryzen 7 7840HS CPU, 780M intergrated graphics and 7700S GPU
If you cannot get Bevy to build or run on your machine, please include:
cargo 1.80.1 (376290515 2024-07-16)
OS Name: Microsoft Windows 11 Pro
Version: 10.0.22631 Build 22631 (23H2)
If your bug is rendering-related, copy the adapter info that appears when you run Bevy.
AdapterInfo { name: "AMD Radeon(TM) RX 7700S", vendor: 4098, device: 29824, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "23.40.18.02 (LLPC)", backend: Vulkan }
Here is the code:
And here is the error:
https://pastebin.com/bxT4nCTH
P.S. The reason it exits after 3 frames is because otherwise the error spam would fill the console up so much that I couldn't copy the adapter info.
I also tried a bunch of wgpu examples including halmark and they worked just fine: https://github.com/gfx-rs/wgpu/tree/trunk/wgpu-hal
What went wrong
I wanted to learn how to make a 3D graph, so I started out with the 3D Shapes WebGL example and removed all objects except the cube. It worked fine on my PC, but when I moved the project to my laptop everything started to break. I got a blank screen with a bunch of errors spammed in the console and it would close after a few frames. I then removed everything except the boilerplate code for a new bevy project and it stopped closing on its own but continued spamming errors.
Bevy is unusable for me right now, and I would really like to do some coding so any help would be appreciated!
The text was updated successfully, but these errors were encountered: