Search Unity

Bug Windows resuming from sleep: D3D11 device reset closes editor

Discussion in 'Editor & General Support' started by istandalonetoo, Feb 12, 2022.

  1. istandalonetoo

    istandalonetoo

    Joined:
    Jun 2, 2020
    Posts:
    3
    I have Unity open on my laptop. My laptop goes to sleep and most of the time when resuming I am greeted with this message.

    upload_2022-2-11_21-29-22.png

    My assumption for this happening during sleep/resume is that Unity was attempting to present to the swap chain at the time of sleep. When resume happens, it finds that the device has been reset and cannot complete the DirectX call.

    Generally, this type of error is recoverable. Rebuild the swapchain on top of the new device.
     

    Attached Files:

  2. lacas8282

    lacas8282

    Joined:
    Apr 25, 2015
    Posts:
    139
    Resolved? How?