Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug Incessant GPU crashing

Discussion in '2022.2 Beta' started by Slashscreen, Aug 29, 2022.

  1. Slashscreen


    Jul 2, 2015
    For many months, even on earlier versions, Unity crashes my Radeon 6800xt (Windows) multiple times a day, for seemingly no reason, causing a "swapchain timeout." It is severely hindering my workflow, having my entire computer get screwed up as my card reboots. It is jacking up my stease (style and ease) so to speak. I have done the following to remedy this:
    - Latest drivers
    - Changed registry key to allow for a longer GPU timeout window (crashes now take longer to occur and did not fix the problem)
    - Disabled fast boot
    This is what my stack trace looks like:

    Code (csharp):
    1. 0x00007FF72104FF65 (Unity) GfxDeviceD3D12Base::DrawBuffersCommon
    2. 0x00007FF72104F2EE (Unity) GfxDeviceD3D12Base::DrawBufferRanges
    3. 0x00007FF72104F570 (Unity) GfxDeviceD3D12Base::DrawBuffers
    4. 0x00007FF722661912 (Unity) GfxDeviceWorker::RunCommand
    5. 0x00007FF7226640FD (Unity) GfxDeviceWorker::RunExt
    6. 0x00007FF722664218 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
    7. 0x00007FF720CFDE37 (Unity) Thread::RunThreadWrapper
    8. 0x00007FFA9D0D7034 (KERNEL32) BaseThreadInitThunk
    9. 0x00007FFA9D642651 (ntdll) RtlUserThreadStart
    What can I do to fix this? Unity is barely usable in this state. Normally it crashes several times a day, but just now it crashed 3 times in as many minutes. How can I fix this? It's driving me up the wall!
    I'm using the latest compatible version of HDRP, UI Toolkit, and VFX graph, if that makes any difference.
  2. hippocoder


    Digital Ape Moderator

    Apr 11, 2010
    Driver cleaner, reboot reinstall drivers direct from amd, no fancy stuff.
    Check PSU is well-functioning.

    Keep vsync on at all times. Update Unity. Ensure Unity is using vsync as well. Check temps.

    The listed combo (HDRP + VFX) are likely to pressure the GPU in both power draw and temperature. Also any dodgy drivers will also be big problems with VFX.

    It's not actually Unity doing something dodgy here, but the tech will pressure any GPU, so any weak spots like power, temperature, drivers will cause it to go.

    If you are using middleware, or DX12 there is a chance they can be the culprits. Are you leaving anything out?

    I also recommend reporting it as a bug from the reporter menu, from your project. Feel free to include this thread URL and more information for Unity's QA team as they're top-level but also might need extra context since why not?

    (You said many months so it probably has been a few versions, not just this beta, right?)