Unity error failed to present d3d11swapchain due to device reset removed как исправить ошибку

Unity 2020.1.0a14 Failed to present D3D11 swapchain ,UNITY 2020.1.0a14 BUG Failed to present D3D11 when i open unity Unity 2020.1.0a14,wait a moment alert :Failed to present D3D11 swapchain due to device reset/removed.T$$anonymous$$s error can happen if you draw of dispath very expensive workloads to the GPU,w$$anonymous$$ch can cause Windows to delect a GPU Timeout […]

Содержание

  1. Unity 2020.1.0a14 Failed to present D3D11 swapchain ,UNITY 2020.1.0a14 BUG Failed to present D3D11
  2. 23 Ответов
  3. Failed to present D3D11 swapchain due to device reset/removed Unity 2020
  4. 4 Ответов
  5. Ваш Ответ
  6. Welcome to Unity Answers
  7. Подписаться на вопрос
  8. Как скачать d3d11.dll и исправить ошибки D3D11 при запуске игр
  9. Исправление ошибок D3D11
  10. Как скачать D3D11.dll для Windows 7
  11. D3D11: failed to create the swapchain #36
  12. Comments
  13. Unity error failed to present d3d11swapchain due to device reset removed как исправить ошибку

Unity 2020.1.0a14 Failed to present D3D11 swapchain ,UNITY 2020.1.0a14 BUG Failed to present D3D11

when i open unity Unity 2020.1.0a14,wait a moment alert :Failed to present D3D11 swapchain due to device reset/removed.T$$anonymous$$s error can happen if you draw of dispath very expensive workloads to the GPU,w$$anonymous$$ch can cause Windows to delect a GPU Timeout and Reset the device(see https://docs.microsoft.com/en-us/windows-hardware/drivers/display/timeout-detection-and-recovery) .I am 2080ti DX 12 VERSION,when I OPEN UNITY UNITY 2020.1.0a14 ,wait a moment Alert: Failed to present D3D11 swapchain due to device reset/removed.T$$anonymous$$s error can happen if you draw of dispath very expensive workloads to the GPU,w$$anonymous$$ch can cause Windows to delect a GPU Timeout and Reset the device(see https://docs.microsoft.com/en-us/windows-hardware/drivers/display/timeout-detection-and-recovery)

23 Ответов

Ответ от nerdtron-interactive · 20/12/20 02:34

I had the same issue after a Windows update on my Inspiron 15 7000 gaming laptop and I was able to resolve the issue by disabling the Intel (R) HD Grap$$anonymous$$cs 630 display adapter w$$anonymous$$le keeping my NVIDIA GeForce GTX 1050 adapter enabled.

Ответ от fmwangu3d · 29/07/20 10:35

We used to got a similar error in latest 2020.1.0f1 and finally solved it. I post the investigation here and hopefully it can help someone.

The Error popup is

Launched and connected shader compiler UnityShaderCompiler.exe after 0.05 seconds Shader compiler: failed to get available platforms. Likely the shader compiler crashed at initialization time. Will retry. Error: Failed writing data to socket

check editor folder and find the D3Dcompiler_47.dll has been lost

copy and paste the dll to target location and the problem has been solved

Ответ от aciffar · 08/12/19 14:54

The same as me 我刚好5小时前也遇到了这个问题 你简直像是我的分身来问出这个问题的

Ответ от Jaxtronaut · 01/04/20 16:37

T$$anonymous$$s is likely not the case for everyone, but i have an nvidia gpu, and turning off image sharpening completely fixed t$$anonymous$$s error for me, if there’s an option for that in your gpu driver, try that?

Ответ от WolvenBolt · 11/10/20 09:34

So here are my experiences with t$$anonymous$$s issue:

Every time I upgrade my project it will open it successfully, but after rebooting the PC the problem returns.

After uninstalling Unity and Hub and reinstalling everyt$$anonymous$$ng, the problem is unchanged and persists.

After uninstalling Unity and Hub, updating my drivers and reinstalling, opens project successfully, but after rebooting PC it returns once more.

I’m studying Games Design in college and t$$anonymous$$s is messing with my grades as I’m not able to work on my project. I have not found a single fix or solution for t$$anonymous$$s issue anywhere.

Источник

Failed to present D3D11 swapchain due to device reset/removed Unity 2020

I got t$$anonymous$$s error in every 2020 unity version. I tried putting D3Dcompiler_47.dll file in C:Program FilesUnityHubEditor\EditorDataTools it works but then 2 blank erros appear in the console w$$anonymous$$ch don’t let me $$anonymous$$t play button.

4 Ответов

Ответ от diabo1231 · 15/10/20 17:52

I have the same problem, managed to solve?

Ответ от Qhuhuit · 22/10/20 18:34

I also have it, more and more often it seems, never had it before 2020.1, Tried the tdrDelay register method and the firewall exception method, none of them worked ! Come on Unity, it is not a matter of how many geometry the scene have, I have the issue with a small scene, and never had it with much bigger ones on previous versions !

Ответ от alexanderlarsen · 02/01/21 16:43

I have the issue as well in 2020.1.16. TdrDelay and firewall exceptions doesn’t work here either!

Ответ от FrostedCookies · 11/03/21 11:31

Had t$$anonymous$$s problem with 2020.2.7f1 release (was not happening with the 2019 LTS version) I was using NVidia 460.89 drivers with the 2020.1, updated to current 461.72 (as of t$$anonymous$$s day) and it seemed to stop

Ваш Ответ

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Подписаться на вопрос

Ответы Ответы и комментарии

214 пользователей подписаны.

Источник

Как скачать d3d11.dll и исправить ошибки D3D11 при запуске игр

В последнее время пользователи часто сталкиваются с ошибками, такими как D3D11 CreateDeviceAndSwapChain Failed, «Не удалось инициализировать DirectX 11», «Запуск программы невозможен, так как файл d3dx11.dll отсутствует на компьютере» и подобными. Чаще это происходит в Windows 7, но при некоторых условиях можно столкнуться с проблемой и в Windows 10.

Как видно из текста ошибки, проблема заключается в инициализации DirectX 11, а точнее, Direct3D 11, за что и отвечает файл d3d11.dll. При этом, несмотря на то, что, используя инструкции в Интернете, вы уже могли заглянуть в dxdiag и увидеть, что DX 11 (а то и DirectX 12) установлен, проблема может сохраняться. В этой инструкции — подробно о том, как исправить ошибку D3D11 CreateDeviceAndSwapChain Failed или d3dx11.dll отсутствует на компьютере.

Исправление ошибок D3D11

Причиной рассматриваемой ошибки могут быть различные факторы, самые распространенные из которых

  1. Ваша видеокарта не поддерживает DirectX 11 (при этом, нажав клавиши Win+R и введя dxdiag, вы можете там видеть, что установлена именно 11 или 12 версия. Однако, это ничего не говорит о том, что есть поддержка этой версии со стороны видеокарты — только о том, файлы данной версии установлены на компьютере).
  2. Не установлены последние оригинальные драйверы на видеокарту — при этом начинающие пользователи часто пробуют обновить драйверы, используя кнопку «Обновить» в диспетчере устройств, это неправильный метод: сообщение о том, что «Драйвер не нуждается в обновлении» при данном способе обычно мало что означает.
  3. Не установлены необходимые обновления для Windows 7, что может приводить к тому, что даже при наличии DX11, файла d3d11.dll и поддерживаемой видеокарты, игры, наподобие Dishonored 2 продолжают сообщать об ошибке.

Первые два пункта взаимосвязаны и в равной степени могут встречаться как у пользователей Windows 7, так и Windows 10.

Правильным порядком действий при ошибках в данном случае будет:

  1. Вручную скачать оригинальные драйверы видеокарты с официальных сайтов AMD, NVIDIA или Intel (см., например, Как установить драйверы NVIDIA в Windows 10) и установить их.
  2. Зайти в dxdiag (клавиши Win+R, ввести dxdiag и нажать Enter), открыть вкладку «Экран» и в разделе «Драйверы» обратить внимание на поле «DDI для Direct3D». При значениях 11.1 и выше ошибки D3D11 появляться не должны. При меньших — скорее всего дело в отсутствии поддержки со стороны видеокарты или ее драйверов. Либо, в случае Windows 7, в отсутствии необходимого обновления платформы, о чем — далее.

Также вы можете посмотреть отдельно установленную и поддерживаемую аппаратно версию DirectX в сторонних программах, например, в AIDA64 (см. Как узнать версию DirectX на компьютере).

В Windows 7 ошибки D3D11 и инициализации DirectX 11 при запуске современных игр могут появляться даже в тех случаях, когда необходимые драйверы установлены, а видеокарта не из старых. Исправить ситуацию можно следующим образом.

Как скачать D3D11.dll для Windows 7

В Windows 7 по умолчанию может не быть файла d3d11.dll, а в тех образах, где он присутствует, может не работать с новыми играми, вызывая ошибки инициализации D3D11.

Его можно скачать и установить (или обновить, если он уже есть на компьютере) с официального сайта Майкрософт в составе выпущенных для 7-ки обновлений. Скачивать этот файл отдельно, с каких-то сторонних сайтов (или брать с другого компьютера) не рекомендую, навряд ли это исправит ошибки d3d11.dll при запуске игр.

  1. Для правильной установки необходимо скачать Обновление платформы Windows 7 (для Windows 7 SP1) — https://www.microsoft.com/ru-ru/download/details.aspx?id=36805.
  2. После загрузки файла, запустите его, и подтвердите установку обновления KB2670838.

По завершении установки и после перезагрузки компьютера, рассматриваемая библиотека будет в нужном расположении (C: Windows System32 ), а ошибок, связанных с тем, что d3d11.dll или отсутствует на компьютере или D3D11 CreateDeviceAndSwapChain Failed, появляться не будет (при условии, что у вас достаточно современное оборудование).

Источник

D3D11: failed to create the swapchain #36

I’m getting this error logged Diligent Engine: ERROR in Diligent::EngineFactoryD3D11Impl::CreateSwapChainD3D11() (RenderDeviceFactoryD3D11.cpp, 355): Failed to create the swap chain

then a null exception
Exception thrown: read access violation. this->m_pSwapChain.**m_pObject** was nullptr. occurred

would be better to throw the exception right after create swapchain failure

The text was updated successfully, but these errors were encountered:

I do not think I fully understand the issue. If swap chain creation fails, an exception is thrown and then caught by the CreateSwapChainD3D11() function, which sets the pointer to null. The application should not use null pointer.

If it can help I’m on windows7, my system doesn’t implement D3D11 1.1, I’m running 1.0.
I’ll keep an eye on Diligent, but I’m going to wait it gets more stable before giving it another try.

Again, not sure what you mean by D3D11 1.1. For render devices, Diligent creates feature level 11.0 device. It only tries to create feature level 11.1 device on Universal windows. But I assume that if you get an error during the swap chain initialization, the device has been created successfully. IDXGIFactory2 seems to be supported on Windows7, so it is hard to tell what exactly is going wrong.
I don’t have Windows7 so if you can give little bit more information, I may be able to fix this. Is there anything in the debug output?

of course you know I meant 11.1. Nothing in the debug output, here is a screenshot, I hope it helps

Ok, it does show that the device has been created successfully, so it is not D3D11.1 issue. There should be something in the output, or if you can step into the CreateSwapChainD3D11 function and see where exactly the error happens, this would be helpful.

I can’t get GraphicsEngineD3D11_64d.pdb loaded, I don’t know why

Hmm. Not sure why this could be happening. You can try to link against static versions of libraries by changing get_backend_libraries_type function in https://github.com/DiligentGraphics/DiligentCore/blob/master/BuildUtils.cmake

@DiligentGraphics I am also on Win7 x64 trying to run a tutorial (specifically cube) with the 11.0 backend. I was able to get the runtime exception that occurs:

Seems to be missing support for DXGI_SCALING_NONE on Win7?

Will take a look. Do other backends work?

@arookas can you try other scaling modes and see if they work? I don’t have Win7, so I will not be able to verify solutions.

@DiligentGraphics Thanks for the reply. I selected the OpenGL backend and it appears to run the demo just fine. My computer unfortunately does not support the other backends.

As for the scaling mode, I changed this line to the other scaling modes ( DXGI_SCALING_STRETCH and DXGI_SCALING_ASPECT_RATIO_STRETCH ) and they both make the demo run fine:

Is this scaling functionality specific to DirectX?

Ok, good. TBH, I can’t remember what implications different scaling modes have, will need to refresh this.

Источник

Unity error failed to present d3d11swapchain due to device reset removed как исправить ошибку

How to reproduce:
1. Open new Unity project
2. Unplug the laptop from charging
3. Turn on Battery Boost on GeForce Experience
4. Change Editor layouts several times and move any window afterward
5. After one tab turns completely white, change the layout a few more times
——————————
Observe the crash

Reproduced with: 2018.3.6f1, 2019.1.0b4, 2019.2.2f1, 2019.3.0a12

Notes:
1) IMPORTANT! The laptop must be unplugged and GeForce Experience Battery Boost must be turned on.
2) Lately, there have been users stating that the issue reproduces even when the laptop is plugged in and GeForce Experience Battery Boost is disabled

Errors:
Assertion failed on expression: ‘SUCCEEDED(hr)’
d3d11: swap chain: w=1143 h=542 fmt=28
d3d11: failed to create swap chain [0x887a0005]
D3D11: Failed to create RenderTexture (910 x 397 fmt 27 aa 1), error 0x887a0005
D3D11: Failed to create render texture primary DSV (error 0x80070057)

This issue is caused because of Timeout Detection Recovery (TDR). This is a way for the Windows display manager to recover from bad situations or potentially hung GPUs, however it can be very aggressive and we as programmers or content producers have to be careful not to throw too much work on the GPU in the same «batch» unless it triggers.

The principle is this: if you submit work for a frame (or more correctly a piece of a frame) that takes more than a certain amount of time TDR kicks in and restarts the driver. It’s nothing we at Unity can do much about sadly. However we have already added a new message dialogue for this in upcoming versions so you should get more information.

What you, as a user, can do is to either reduce workload (less vertices, fewer objects, simpler shaders), ensure the GPU can run at full speed (have laptop plugged in and cooled) or you can potentially increase the timeout as described on this Microsoft page:
https://docs.microsoft.com/en-us/windows-hardware/drivers/display/tdr-registry-keys

NVIDIA also has some tools in the Control Panel to play around this limitation.

Источник

Исправление ошибок D3D11В последнее время пользователи часто сталкиваются с ошибками, такими как D3D11 CreateDeviceAndSwapChain Failed, «Не удалось инициализировать DirectX 11», «Запуск программы невозможен, так как файл d3dx11.dll отсутствует на компьютере» и подобными. Чаще это происходит в Windows 7, но при некоторых условиях можно столкнуться с проблемой и в Windows 10.

Как видно из текста ошибки, проблема заключается в инициализации DirectX 11, а точнее, Direct3D 11, за что и отвечает файл d3d11.dll. При этом, несмотря на то, что, используя инструкции в Интернете, вы уже могли заглянуть в dxdiag и увидеть, что DX 11 (а то и DirectX 12) установлен, проблема может сохраняться. В этой инструкции — подробно о том, как исправить ошибку D3D11 CreateDeviceAndSwapChain Failed или d3dx11.dll отсутствует на компьютере.

Исправление ошибок D3D11

Причиной рассматриваемой ошибки могут быть различные факторы, самые распространенные из которых

  1. Ваша видеокарта не поддерживает DirectX 11 (при этом, нажав клавиши Win+R и введя dxdiag, вы можете там видеть, что установлена именно 11 или 12 версия. Однако, это ничего не говорит о том, что есть поддержка этой версии со стороны видеокарты — только о том, файлы данной версии установлены на компьютере). DirectX 11 установлена но не поддерживается
  2. Не установлены последние оригинальные драйверы на видеокарту — при этом начинающие пользователи часто пробуют обновить драйверы, используя кнопку «Обновить» в диспетчере устройств, это неправильный метод: сообщение о том, что «Драйвер не нуждается в обновлении» при данном способе обычно мало что означает.
  3. Не установлены необходимые обновления для Windows 7, что может приводить к тому, что даже при наличии DX11, файла d3d11.dll и поддерживаемой видеокарты, игры, наподобие Dishonored 2 продолжают сообщать об ошибке.

Первые два пункта взаимосвязаны и в равной степени могут встречаться как у пользователей Windows 7, так и Windows 10.

Ошибка d3d11.dll отсутствует на компьютере

Правильным порядком действий при ошибках в данном случае будет:

  1. Вручную скачать оригинальные драйверы видеокарты с официальных сайтов AMD, NVIDIA или Intel (см., например, Как установить драйверы NVIDIA в Windows 10) и установить их.
  2. Зайти в dxdiag (клавиши Win+R, ввести dxdiag и нажать Enter), открыть вкладку «Экран» и в разделе «Драйверы» обратить внимание на поле «DDI для Direct3D». При значениях 11.1 и выше ошибки D3D11 появляться не должны. При меньших — скорее всего дело в отсутствии поддержки со стороны видеокарты или ее драйверов. Либо, в случае Windows 7, в отсутствии необходимого обновления платформы, о чем — далее. Поддерживаемая версия Direct 3D

Также вы можете посмотреть отдельно установленную и поддерживаемую аппаратно версию DirectX в сторонних программах, например, в AIDA64 (см. Как узнать версию DirectX на компьютере).

Поддерживаемая версия DirectX в AIDA64

В Windows 7 ошибки D3D11 и инициализации DirectX 11 при запуске современных игр могут появляться даже в тех случаях, когда необходимые драйверы установлены, а видеокарта не из старых. Исправить ситуацию можно следующим образом.

Как скачать D3D11.dll для Windows 7

Ошибка D3D11CreateDeviceAndSwapChain Failed в Windows 7

В Windows 7 по умолчанию может не быть файла d3d11.dll, а в тех образах, где он присутствует, может не работать с новыми играми, вызывая ошибки инициализации D3D11.

Его можно скачать и установить (или обновить, если он уже есть на компьютере) с официального сайта Майкрософт в составе выпущенных для 7-ки обновлений. Скачивать этот файл отдельно, с каких-то сторонних сайтов (или брать с другого компьютера) не рекомендую, навряд ли это исправит ошибки d3d11.dll при запуске игр.

  1. Для правильной установки необходимо скачать Обновление платформы Windows 7 (для Windows 7 SP1) — https://www.microsoft.com/ru-ru/download/details.aspx?id=36805. Скачать обновление платформы Windows 7 с d3d11.dll
  2. После загрузки файла, запустите его, и подтвердите установку обновления KB2670838. Подтвердить установку обновления платформы Windows 7

По завершении установки и после перезагрузки компьютера, рассматриваемая библиотека будет в нужном расположении (C: Windows System32 ), а ошибок, связанных с тем, что d3d11.dll или отсутствует на компьютере или D3D11 CreateDeviceAndSwapChain Failed, появляться не будет (при условии, что у вас достаточно современное оборудование).

Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2019.4.X, 2020.3.X, 2021.2.X, 2021.3.X, 2022.1.X

Votes

0

Found in

Issue ID

1353308

Regression

No


DirectX11

Jul 26, 2021

Issuing a lot of CopyCount() commands causes the «Failed to present D3D11 swapchain due to device removed» crash.

Repro steps :

— Open a Unity editor, with DX11 as API.

— Make sure Unity uses an Intel integrated GPU.

— Import the CrashCopyCount unitypackage.

— Open Crash Scene.

— Press play.

Expected result : the Player runs without crash.

Observed result : «Failed to present D3D11 swapchain due to device removed» crash.

It is believed to be the root problem of this bug : https://issuetracker.unity3d.com/issues/vfx-editor-crashes-when-spawning-large-amount-of-vfx-using-integrated-graphics-driver

  1. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.32f1

Log in to vote on this issue

Add comment

If you are a human, ignore this field

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.

Latest issues

  • PSVR2: Foveated Rendering: Gaze is not tracked correctly when using instanced rendering
  • Crash on __pthread_kill when rapidly pressing Enter after changing Property Field
  • Unity crashes when a specific .obj file is imported
  • The emissive of GBuffer is empty when a Scene is loaded additively
  • «NavMeshAgent» not being carved by «NavMeshObstacle» during agent movement in Player

See all new issues

Понравилась статья? Поделить с друзьями:
  • Unity error cs0619
  • Unity error cs0104
  • Unity error building player because scripts had compiler errors
  • Unity curl error 52 empty reply from server
  • Unity crash handler 32 как исправить