d3d11: failed to create buffer

One of my players is getting a very strange error… Apparently their game will freeze (just the image) but the audio will continue on. According to another thread ( Crash on Master build ), the “[0x887A0005]” error means the graphics card drivers crashed. Not sure exactly what that means or how I should fix this… They have plenty of VRAM for the game (on low settings it uses about 80 MB). Here is the output log.

output_log.txt:

Initialize engine version: 5.6.3p1 (9c92e827232b)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: Intel(R) HD Graphics Family (ID=0xa16)
Vendor: Intel
VRAM: 1136 MB
Driver: 10.18.15.4279
Begin MonoManager ReloadAssembly
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\UnityEngine.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\UnityEngine.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\Assembly-CSharp-firstpass.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\Assembly-CSharp-firstpass.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\Assembly-CSharp.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\Assembly-CSharp.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\UnityEngine.UI.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\UnityEngine.UI.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\UnityEngine.Networking.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\UnityEngine.Networking.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\AmplifyMotion.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\AmplifyMotion.dll into Unity Child Domain

  • Completed reload, in 0.283 seconds
    Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\System.Core.dll (this message is harmless)
    Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\System.dll (this message is harmless)
    Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Null Vector\Null_Vector_Data\Managed\System.Xml.dll (this message is harmless)
    desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
    Initializing input.
    Input initialized.
    Initialized touch support.
    UnloadTime: 1.482316 ms
    Setting up 2 worker threads for Enlighten.
    Thread → id: 2adc → priority: 1
    Thread → id: 6ec → priority: 1
    Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
    UnloadTime: 20.745325 ms

Unloading 39 unused Assets to reduce memory usage. Loaded Objects now: 1397.
Total: 3.897051 ms (FindLiveObjects: 0.416864 ms CreateObjectMapping: 0.351729 ms MarkObjects: 2.253673 ms DeleteObjects: 0.871625 ms)

Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 827.060791 ms

Unloading 92 unused Assets to reduce memory usage. Loaded Objects now: 13077.
Total: 11.068621 ms (FindLiveObjects: 1.903128 ms CreateObjectMapping: 1.071768 ms MarkObjects: 7.749495 ms DeleteObjects: 0.343439 ms)

Target is null for Canvas. Cleaning up.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

d3d11: failed to create buffer (target 0x1 mode 1 size 3600) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 1 size 120) [0x887A0005]
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: failed to create buffer (target 0x1 mode 1 size 3600) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 1 size 120) [0x887A0005]
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer

Thank you!

  • Alex

I don’t know the answer specifically, though that driver is over 2 years old.

I get the same problem with “Development build” and “Script debugging” turned on. And my drivers are up-to-date.

Getting the same issue, in the editor, with up to date drivers. Unity support linked me this issue: Unity Issue Tracker - Editor/Player freeze and Crash with error message "d3d11: failed to create buffer" after moving canvas

I have done everything short of a full format and reinstall: GPU drivers update, full uninstall/reinstall of Unity (including clearing registry), new projects, everything. The only thing that works is swapping to D3D9-- which, of course, breaks all my shaders. Using the -force-driver-type-warp launch option also appears to fix it, but slows Unity down to a crawl.

I cannot upgrade beyond Unity 5.6.3p1 due to project constraints (VRChat)

E: Forcing OpenGL 4.5 via launch options is a viable workaround.

1 Like

Thank you dtupper for the workaround suggestion. Forcing OpenGL 4.5 did solve the issue.
For anyone in the issue (on Windows): Specify -force-glcore45 as a launch option of your Unity client.

this still exists in 2018.2 ? d3d9 is deprecated in 2018.2… any update on the issue?

bump

This issue still happed in 2018.4.3!

Anyone knows how to fix it ?

Seriously no fix for this?
It’s making development practically impossible :confused:

Can confirm this issue is there again in 2018.4.11. Does it mean newer versions suffer with this too?

I receive this when running Unity in batch mode for building my game with Unity 2018.4.15f1

Same errors:

d3d11: failed to create buffer (target 0x1 mode 0 size 7200) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 900) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 8640) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 1080) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 7200) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 900) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 8736) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 1092) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 1 size 87312) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 1 size 3852) [0x887A0005]
d3d11: attempt to lock null buffer
d3d11: attempt to lock null buffer
d3d11: failed to create buffer (target 0x1 mode 0 size 4128) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 516) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 3264) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 408) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 4512) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 564) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 4512) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 564) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 5280) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 660) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 5280) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 660) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 7296) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 912) [0x887A0005]

Unity 2019.3.9f1 Everything works fine in the editor, but the win build freezed at some point with that errors as the last entries in the Player.log and i have no idea how to fix that…

1 Like

I’m getting it now as well.

1 Like

2019.3.7f confirmed to happen too

1 Like

I’m getting the same errors in 2019.3.0f6. Output log: Dropbox - File Deleted - Simplify your life

Unity editor freezes but audio continues. This only happens when I’m loading a specific scene, and does not happen on all occasions.

This happens about every half hour or so. Makes development near impossible.

Send a bug report with the scene, it might help the unity team to reproduce and fix it

2019.4.8f1 LTS
After a couple years of development, a select few of our users get this error seemingly randomly. The logs are spammed with some combination of these 3 types of errors.

d3d11: attempt to lock null buffer
d3d11: failed to create staging 2D texture w=128 h=2 d3dfmt=10 [887a0005]
d3d11: failed to create buffer (target 0x1 mode 1 size 6720) [0x887A0005]

We see anywhere from 500 to 10,000 lines of errors before a crash happens. I suspect that it is just running out of memory when this happens.

I’ve had a player report a crash in a live build of my game with dx11 using Unity 2019.3.13f1, unfortunately I cannot force them to use GL, I would be interested to know what is causing this and if there’s a work-around I could use?

Having same type of errors running a game called genshin impact, never had issues with d3d11 before…

Had a similar issue in Unity 2017.4 caused by Calling Graphics.CopyTexture to a Texture2D created in code with mipmapping enabled, and having less than full resolution for texture quality, e.g. QualitySettings.masterTextureLimit > 0. Unity seems to crash or freeze in this case using DirectX 11.