Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Swapchain D3D11 bug issue make Unity unusable in DX11

Discussion in 'General Graphics' started by nasos_333, Oct 31, 2022.

  1. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,291
    Hi,

    I have come across more and more on the swapchain issue

    https://canopy.procedural-worlds.com/forums/topic/114-d3d11-swapchain-error-fix/

    in latest Unity and NVIDIA GPUs

    Is this something that is going to be handled ? At this point is a random crashes matter that make DX11 extremely risky to use in an actual game, due to possible crashes on user side that is not possible to recreate locally without NVIDIA 20xx or 30xx and latest Unity.

    More on the issue:
    https://forum.unity.com/threads/failed-to-present-d3d11-swapchain.1346855/
    https://forum.unity.com/threads/con...d3d11-swapchain-due-to-device-removed.987834/
    https://forum.unity.com/threads/fai...wapchain-due-to-device-reset-removed.1129568/

    Note that the issues does nor happen in DX12 or Vulkan, also not happen in Unity 2019 under any GPUs i tried.

    Thanks
     
  2. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    651
    Yes, if a shader runs for more than a few seconds, Windows will reset the GPU driver because it means that Windows will become unresponsive. If you have a shader running for that long, you are doing something wrong. You have to break it down into smaller workloads.

    I don't think Unity contains shaders that run that long. If Gaia has such shaders, it's a Gaia bug, not a Unity bug.
     
    MaltsGangfoot and nasos_333 like this.
  3. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,291
    I would agree, but the problem is that the same exact thing runs fine in Unity 2019 and in 1050GTX, it is only in latest unity and GPUs that the issue appears.

    Also does not appear in Vulkan or DX12, so is definitly a bug in my mind, and a extremely huge one

    The shader does not run for sure for seconds, given even in the 1050GTX the system runs at real time, around 30-60fps

    The video below is 30fps in HDRP on my 1050GTX laptop, the same creates the swapchain issue and crashes directly in any NVIDIA GPU from 20xx and above.



    I understand though that given DX12 is out make sense that NVIDIA does not care for making their new GPUs work correctly with DX11, cant explain it any other way. So maybe is not just a Unity issue, though the same did not happen in Unity 2019.
     
    Last edited: Oct 31, 2022
  4. lacas8282

    lacas8282

    Joined:
    Apr 25, 2015
    Posts:
    136
    Resolved? How?
     
  5. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,891
    Having the same issue here with a relatively simple compute shader. Runs fine in Vulkan (MacPro, AMD FireProD300), fine in DX12 / Nvidia RTX 3090, runs fine in most computers I've tried which are quite a few, crashes 90% of the time as soon as executed on DX11 / Nvidia RTX 2080 with the swap chain error.
     
    bart_artanim and lacas8282 like this.