How to Fix ‘Unreal Engine is exiting due to D3D device being lost’ Error?

The error message Unreal Engine is exiting due to D3D device being lost occurs when Unreal fails to communicate with the D3D device on your computer. This troublesome error is common and can occur even when no apparent issues are detected on users’ computers.

Unreal Engine is exiting due to D3D device being lost

According to the Unreal Engine developers, this issue usually occurs when a computer’s graphics or hardware components do not synchronize well with Unreal Engine, causing it to malfunction with the D3D device. This article will outline potential causes for this issue and provide solutions to resolve it.

What Causes this Error?

After investigating numerous user reports, we identified common factors that might cause the error message:

  • Outdated Unreal Engine: If the Unreal Engine isn’t up to date with the latest build, communication issues may occur with recently updated system components, and vice versa.
  • Antivirus software: Many antivirus applications mistakenly block Unreal Engine, causing a false positive. This can be resolved by creating an exception or disabling the antivirus temporarily.
  • Outdated Device Drivers: The error can also come from having outdated or corrupt device drivers. Reinstalling or updating the drivers usually fixes this problem.
  • Incomplete Steam Files: As Steam often works alongside Unreal Engine, corrupt or incomplete game/installation files within Steam can prompt the error.
  • NVIDIA GeForce Settings: Certain GeForce settings can interfere with gameplay. Resolving this usually involves disabling specific settings or the entire module.
  • Overclocking: Though overclocking can enhance PC performance, it can lead to conflicts with resource-intensive applications like Unreal Engine. Disabling overclocking might resolve these issues.
  • Default Graphics Card: In some cases, integrated graphics might remain active even when a more powerful dedicated graphics card is installed, causing conflicts and issues.

Before attempting any solutions, make sure you are logged in as an administrator and have an active internet connection.

1. Update Unreal Engine, Windows, and Steam

By updating Unreal Engine, Windows, and Steam, you make sure that all components speak the same language and work together smoothly. Updates often include important patches for bugs or compatibility issues that, if left unaddressed, could cause errors. Regular updates maintain system stability and can often be the simplest fix to such frustrating problems.

  1. Open the Launcher and go to the Library.
  2. In the Library, if an update is available for the Engine version, you’ll see a plus icon.
  3. Click on Add versions to download and install the new engine version. Then, click Update.
    Updating Unreal Engine
    Updating Unreal Engine

Next, update Windows:

  1. Press Windows + S, type update in the dialogue box, and select the Update option when it appears.
  2. Click Check for updates. Windows will check for available updates.
    Updating Windows

Let the process finish and, if required, restart your computer. Then, update Steam:

  1. Start the Steam client with an active internet connection.
  2. Steam will automatically download the latest update. Restart your computer again after the update completes.

Now, try running Unreal Engine to see if the error has been resolved. If the error persists.

2. Disable NVIDIA Game Booster (or other functions)

Features like NVIDIA’s Game Booster are designed to optimize game performance by tweaking various settings automatically. However, sometimes these adjustments might not align well with specific games or applications, leading to glitches and crashes.

By turning off Game Booster or similar enhancements, you eliminate the possibility of these automated modifications conflicting with Unreal Engine, thereby stabilizing your gaming experience.

Disabling NVIDIA Features

Disable these features in your GeForce Experience application or temporarily disable GeForce Experience itself to test whether it resolves the issue.

3. Change the Preference for Dedicated Graphics

When you set your system to prioritize dedicated graphics, you’re directing it to use the more powerful standalone graphics card over the default integrated one.

This can fix the issue as it makes sure that Unreal Engine utilizes the full capabilities of your dedicated GPU, leading to smoother performance and preventing conflicts that may occur from dual-GPU setups. By doing so, the game’s rendering tasks are handled more efficiently, which can help eliminate the error.

  1. Right-click on the Desktop and select NVIDIA control panel.
  2. Click on Manage 3D Settings then Program settings.
  3. Add Unreal Engine from the program list and select NVIDIA (Dedicated graphics) from the graphics processor options.
    Changing preference of Graphics Card
  4. Save changes and restart your computer. Try launching the game or application to check if the issue is resolved.

4. Disable on-board Graphics

When you disable the onboard graphics, you basically optimize the process by which your system decides which graphics unit to use for rendering. This action eliminates any confusion that might occur when both onboard (integrated) and dedicated graphics cards are trying to run simultaneously.

By turning off the onboard chipset, you make sure that all graphics tasks are solely handled by the dedicated GPU, thereby reducing the chances of this error occurring.

  1. Press Windows + R, type devmgmt.msc and press Enter.
  2. In Device Manager, expand Display adapters and right-click on the onboard graphics option.
  3. Select Disable.
    Disabling on-board Graphics
    Disabling on-board Graphics

Your screen may go blank temporarily as the system switches to dedicated graphics. Save any changes and exit. Then, launch Unreal Engine to see if the problem has been fixed.

5. Disabling Antivirus/Firewall Software

These security programs scan every operation on your system to intercept malicious activities. Sometimes, they are overprotective and mislabel legitimate software, like Unreal Engine, as a potential threat, thereby restricting its access to essential system resources.

By disabling these programs, you restore Unreal Engine’s ability to operate uninterrupted. Always remember to reactivate your antivirus or firewall once you’ve finished troubleshooting to make sure your system remains protected.

Disabling Antivirus Software

Refer to our guide on How to turn your Antivirus off. Restart your computer and try using Unreal Engine again. If there’s no change, consider uninstalling the antivirus software temporarily. Avast and AVG are two known reasons of such interference, but the principle applies to any antivirus tool you’re using.

6. Disable Overclocking and SLI Technology

Overclocking forces your CPU and GPU to operate at speeds higher than their factory settings to enhance performance. However, this can introduce instability and lead to errors with demanding applications like Unreal Engine. Restoring these components to their default speeds can eliminate these conflicts.

SLI Technology

Similarly, SLI technology links multiple NVIDIA GPUs to produce a combined output, which can also cause compatibility issues with certain programs. Deactivating SLI can ensure that Unreal Engine only utilizes a single graphics processor, thereby preventing the error from occurring.

7. Updating Graphics Drivers

New drivers often contain bug fixes, performance enhancements, and compatibility improvements that can resolve issues like the error at hand. By updating these drivers, you’re basically aligning your GPU’s software to work smoothly with the latest games and engines, reducing the risk of unexpected crashes or performance drops.

  1. Download and install DDU (Display Driver Uninstaller) from its official website.
  2. Boot your computer in safe mode and launch DDU, then select Clean and restart to remove the current drivers.
  3. Boot normally, open Device Manager (Windows + R, type devmgmt.msc), right-click and select Search for hardware changes to install default drivers.
    Cleaning Drivers
  4. Install the latest drivers either through Windows Update or by downloading them from the manufacturer’s website, then restart your computer to see if the issue is resolved.

Note: After updating drivers, you might need to revisit the first solution.

8. Disable Full-screen Mode

In Full-screen mode, a game has complete control over the display, which can sometimes lead to conflicts with the graphics driver or operating system’s display settings.

By switching to Windowed mode, you allow the system to manage these interactions better, potentially avoiding the issue causing Unreal Engine to lose connection with the D3D device. This small adjustment often results in increased stability, especially if the error is related to display or graphics driver conflicts.

9. Reinstall DirectX and Changing FreeSync Settings

DirectX is a collection of APIs that handle tasks related to multimedia and game programming on Microsoft platforms. An outdated or corrupt DirectX installation can lead to errors in applications that depend on it—like Unreal Engine. Reinstalling DirectX makes sure that all these multimedia functionalities are up-to-date and running as intended, eliminating any inconsistencies that might cause the engine to crash.

On the other hand, FreeSync is AMD’s adaptive synchronization technology built to reduce screen tearing and stuttering—a common issue in gaming when the monitor’s refresh rate and the game’s frame rate are out of sync. However, certain settings in FreeSync could interfere with how Unreal Engine renders its graphics.

By adjusting your FreeSync monitor settings, particularly toggling the Full-Screen option or enabling settings for a selected display, you can create a more stable environment for the engine to operate in, potentially avoiding the D3D device errors.

  1. Reinstall DirectX on your computer and restart.
  2. If you use a FreeSync monitor, navigate to GSync settings in the GeForce Experience application. Enable the Full-Screen option and check the box for Enable settings for selected Display.
  3. Restart your computer after making changes and check if the issue is resolved.

You can also attempt the same process for Windowed mode.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

51
    RE
    Retromind Jan 27, 2020

    The first solution is absolutely unnecessary because it basically says to download an Unreal Engine E D I T O R which is used to make games from the Epic Store library. It won’t affect any games you have in your library. Did the person who wrote the article even read it ?

      SW
      Shane Warren Author Jan 30, 2020

      It can sometimes fix the issue because certain games can get glitched.

    SS
    SodaSaint the Sleepy Apr 13, 2020

    With exception to Solution 1, I find the rest of these fairly helpful. I have been having nonstop issues with EasyAntiCheat lately on Halo MCC for Steam.

    PO
    PottsyG May 23, 2020

    Good information; I’ll try the ideas when I can. I also found on the net suggestions to add a tdr delay registry key.Regarding the above suggestions, I have an AMD card. Could someone help me with the dedicated graphics steps when not using NVidia?

      SW
      Shane Warren Author May 27, 2020

      That is mostly only an issue with Nvidia but to do that, right-click and select “AMD Radeon Settings”.
      Click on “System” and then click on “Switchable Graphics” from here you can select the GPU.

    SA
    sapphiresky83 Jun 30, 2020

    Tried all of these and still the game Satisfactory (which uses Unreal Engine) crashes with this error.

      SW
      Shane Warren Author Jul 3, 2020

      We can for a reinstall at this point. Do let me know if it fixes it.

        SA
        sapphiresky83 Jul 3, 2020

        Thanks for jumping in to help.
        I removed the game completely and reinstalled. Still crashing.Thanks anyway for trying!

          SW
          Shane Warren Author Jul 4, 2020

          Use DDU and install an older version of the drivers instead of the ones that you already have installed.

          SA
          sapphiresky83 Jul 6, 2020

          Alright so, issue appears to be solved, albeit seems little silly, but I un-ticked the “fullscreen” option in the Satisfactory game settings and it hasn’t crashed all day. Running in windowed mode now, but fullscreen but then the crashing so. Windowed it is. Thanks again for your help.

          SW
          Shane Warren Author Jul 8, 2020

          Thank you for sharing your solution. We have added it to our article as well.

          FE
          Fernando May 7, 2022

          @sapphiresky83:disqus Do you have more than one monitor?

    EV
    Estevan Valladares Aug 10, 2020

    First of all, I develop on UE4, and since my old projects to this day never had this problem in any of them.
    All the games I was a patron of that were not using steam, never had this problem.
    Friends who have games on Steam, the version I get from them that is not on Steam, never had this problem.
    Same game, same basic structure, if I use the steam downloaded version, I get this problem.
    Even if I run the steam verification, it works once or twice, but after 3 or 4 times it gets back, and if I change the Steam account, I get this problem. If I logout and one, I get this problem.For me it is clear what the problem is: Steam.

      SW
      Shane Warren Author Aug 11, 2020

      Try clearing Steam’s download cache or go for reinstallation of Steam.

      YK
      Yiğit Külahlı Apr 13, 2021

      I don’t think it’s just steam. I have the same issue with Epic Launcher too

    RY
    Ryan Oct 5, 2020

    Mine seems fixed… the last two things I did:
    1 – Rinstalleed DirectX
    2 – I have a FreeSync Monitor, went into GSynch settings on the GEForce experience. On my FreeSync Monitor, Enabled for Full Screen Mode (now testing windowed as well) and checked the box for “Enable settings for selected display”

    Reply
    RI
    Rich Oct 11, 2020

    I have found that Image sharpening on nidiva 3D setting cause me to get this error after dragging from an exce pin for 30seconds to 1 minute. turning this off I have dragged from the pin for more than 3 minutes without a crash.

    RI
    Rich Oct 11, 2020

    Turn of image sharpening if you are using it on nvidia 3d settings.

    Reply
    JL
    Jordan Loftus Oct 13, 2020

    not helpful if you have a AMD Graphics Card

    NI
    Nils Nov 23, 2020

    Try lowering GPU temperature
    I noticed that my GPU temperature was at 85 C at almost full load (90-98%) and the Satisfactory crashed within 3 minutes with this “D3D device being lost” error message.

    When I increased cooling which lowered my GPU temp to 77 C, the game ran stable for over 40 minutes without crashing.

    Before trying this, I tried pretty much all the methods suggested, and none of them worked for me.

    This might be something to add to the article and try out?

    Reply
    GR
    Grcn Feb 17, 2021

    I have tried all thing but still, have the same issue. Now I’m trying to run the Winter survival simulator demo and it doesn’t have the game settings menu so I am not able to uncheck full screen. I have a Lenovo notebook with an NVIDIA graphic card and I am getting this error in most Unreal 4 games now.

      MZ
      Muhammad Zubyan Author Feb 19, 2021

      Where are you trying to install the drivers from? Official website or your Laptop’s official support website. Anyways, I suggest you try doing this:-

      (Note: please create a restore point before changing anything in Regedit as it can cause some serious issues if not done properly. We won’t be responsible for any issues)

      1. Press and hold the Windows + R keys together to open the Run program.
      2. Once the run is opened type “Regedit” and press enter to open the Registry editor.
      3. Navigate to “HKEY_LOCAL_MACHINESystemCurrentControlSetControlGraphicsDrivers”
      4. Now Right-click on GraphicsDrivers and go to new and click “DWORD (32 bit) value”.
      5. Rename the new key that appeared to “TdrDelay”
      6. Double-click on it and enter 10 make sure you have Decimal selected.
      7. Press okay and restart your system.

      Reply
        GR
        Grcn Feb 20, 2021

        Thanks for your help @zubyangul:disqus
        I am trying to install the drivers from NVIDIA official website.
        The suggestion above, I had already done before by reading this on a different website but my issue still persists. Not only Winter survival simulator, but a few more games I have this issue and I think I read and tried all solutions on the net but couldn’t solve my issue:(

          MZ
          Muhammad Zubyan Author Feb 20, 2021

          Just because you are on a Laptop sometimes the drivers provided by Nvidia don’t work as they aren’t compatible sometimes with Laptops so I suggest you head over to your Laptop’s product page and download the driver they have provided over there. Check to see if the issue still persists.

          GR
          Grcn Feb 20, 2021

          Thank you so much for your answer @zubyangul:disqus.
          I’ve just checked the Lenovo website. There was no automatic driver update but I downloaded and installed the Display and Video Graphics just in case. After installation, tried to run the game and I have seen the game logo and heard the game music the very first time and thought I fixed the issue. However, after a couple of seconds, I got the same error and unfortunately, the issue still persists. 🙁

          MZ
          Muhammad Zubyan Author Feb 20, 2021

          Okay so here is what I suggest you to do:-

          First of all Download DDU on your Computer and boot into safe mode (Check Solution 7)
          After DDU boot into normal mode and install the driver you just downloaded from the Manufacturer’s website. Let me know how it goes.

          GR
          Grcn Feb 20, 2021

          @zubyangul:disqus I’ve just tried your solution but unfortunately, it is still the same. 🙁

          MZ
          Muhammad Zubyan Author Feb 22, 2021

          The last thing you can try is to set the TdrDelay to 20 let me know if you find any difference in the crash time of the game. Also, Let me know which game is giving you this error we can try to remove the configuration file.

          GR
          Grcn Feb 25, 2021

          @zubyangul:disqus Thanks for your answer. I’ve just tried to do this but nothing changed. When I click the game icon I see a black screen for 5 seconds and then the game crashes. (I never achieve to play the game yet 🙂 ) The game actually is a demo. Winter Survival Simulator Demo. You can find it in the Steam store. Ridiculously, I think I got this error only in demo games. I had this error in a couple of more demos but to be honest I don’t remember the others.

    CP
    conservative patriot May 23, 2021

    I have tried many of these fixes I updated my video card…PANZER CORPS 2 played perfectly before the .21 or latest update…then this weird unreal engine bug showed up…I am an older guy and not a techie who can fix all these problems…isnt there an update or something real easy I can try???

      MZ
      Muhammad Zubyan Author May 24, 2021

      Try solution 7, if that doesn’t fix the problem you are having. Let me know if you are using a laptop along with the model number of your laptop.

        CP
        conservative patriot May 26, 2021

        I have a DELL LAPTOP…inspiron 5755…I updated my video card that came with the laptop…but nothing is working..I also just update my windows 10….

          MZ
          Muhammad Zubyan Author May 26, 2021

          Your comments wasn’t being deleted, they were getting hold for approval. We manually check all the comments to make sure there is no spam.

          Anyways, some laptop manufacturers actually release their own modified driver on the product page of that laptop. Some laptops don’t really support the updated drivers from the GPU manufacturers. Try installing the driver provided on product page here:-

          https://www.dell.com/support/home/en-pk/product-support/product/inspiron-17-5755-laptop/drivers

          CP
          conservative patriot May 26, 2021

          All I am getting now on PANZER CORP 2 when I hit the play button is a mess of distorted and mixed colors…I updated all my drivers at the DELL COMPUTER website.
          What is causing this distorted colors window?

          MZ
          Muhammad Zubyan Author May 27, 2021

          Can you send me a photo of the distorted colors Window you are talking about?

          CP
          conservative patriot May 27, 2021

          I will try to make a copy of it…do you know how I can do that??..I tried to right click on it but nothing happens…not sure how to make a copy.

          MZ
          Muhammad Zubyan Author May 27, 2021

          Try reinstalling, that’s way better than making a copy of that game. Simply uninstall it and install it again.

          CP
          conservative patriot Jun 4, 2021

          I tried uninstalling the full game and reinstall it
          (PANZER CORPS 2) from SLITHERINE GAMES and that did not fix the unreal engine problem….this game worked fine for a long time and then they came out with an update…that update messed up the game. I have updated all my drivers and tried other such fixes,,still no game.

          MZ
          Muhammad Zubyan Author Jun 9, 2021

          It seems like the update of that game isn’t sitting right with the hardware on your laptop so I suggest you report the issue to the developer and check if there is anything wrong with his side. I personally think that there is something wrong going on with your laptop hardware because you mentioned that you are getting distorted colors Window, if that’s the case, please attach the photo of those distorted colors to me as it’s possible there is something wrong with your laptop’s graphics card. Also, let me know what is the model number of your laptop?

    ST
    Shreksly theGreat Jul 1, 2021

    Could the problem be that I just have a potato pc (too slow but modern enough) or is it another problem, cause I dont really want to go through a huge hassle to find out it wont work on this pc anyways.

      MZ
      Muhammad Zubyan Author Jul 27, 2021

      Which game are you trying to play? and let me know the specifications of your computer.

    TO
    The Observinator Aug 27, 2021

    So, what you said about Unreal Engine being outdated implies that you need to have Unreal Engine downloaded in order to play Unreal Engine games, but the only downloads I can find on their website seem to be for creators.

    NI
    Nightroadsora Sep 22, 2021

    If you are working on laptop (windows) : plug in your ac cable and configure the windows energy plan to high performance. Otherwise it may happen that your on board graphics card starts working and the real graphic card tries to overtake the work. That can confuse unreal engine and lead it to crash (observed this behavior yesterday evening on my own system)

    Reply
    PE
    Perpi Nov 2, 2021

    I tried all the steps above (except the overcloocking: my PC is not
    overclocked), but still was unsuccesfull. My Unreal Engine 5 UE still
    crashed after 3-5 mins. I did find the solution for me though and like
    to add it here. I found that rolling back from Windows 11 to Windows 10
    (update done 3 days earlier) worked for me. Not optimal, but when
    everything else fails…

    Reply
    CV
    Crazy Party VLOGS Nov 18, 2021

    i’m getting this error in new gta trilogy remasterd tried these all but still not fixing

      MZ
      Muhammad Zubyan Author Nov 18, 2021

      Which GPU are you using and which game from Trilogy you are trying to run?

    VA
    Vasile Alexandru Dec 26, 2021

    https://uploads.disquscdn.c… Hi !
    My,friend try to play Lunch lady when he start the game get this. What he can do to resolve this ?

      MZ
      Muhammad Zubyan Author Dec 28, 2021

      Try the methods shown above they should help you. Also, is this your first time opening this game or the game was working before but now it is not working?

    ST
    Stalker Feb 7, 2022

    have same problem.. win 11 2990wx 3090 nv,, problem comming with win11 , recomeding downgrade,to win 10

    FO
    fornost Sep 5, 2022

    I play Icarus, well I try to. Sometimes I can play uninterrupted for as long as I like, other times it hangs and needs you to sign out of your account to close the game. It hangs like this after 5-10 seconds of play sometimes, very short times. But this changes from day to day, one day it is perfect and the next for no reason that I know it is unplayable. Obviously everything is identical ( software and hardware) between the two instances. If it plays as perfectly as it does sometimes its difficult to believe that there is much wrong with the game, then the next day it won’t do a thing.

    AF
    andres felipe Oct 26, 2022

    i play motortown in intel celeron n3050