Search Unity

d3d11: failed to create buffer

Discussion in 'Editor & General Support' started by OpticalOverride, Sep 19, 2017.

  1. OpticalOverride

    OpticalOverride

    Joined:
    Jan 13, 2013
    Posts:
    161
    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 (https://forum.unity.com/threads/crash-on-master-build.451724/), 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
    <RI> Initializing input.
    <RI> Input initialized.
    <RI> 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
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    I don't know the answer specifically, though that driver is over 2 years old.
     
  3. Ultroman

    Ultroman

    Joined:
    Mar 10, 2014
    Posts:
    110
    I get the same problem with "Development build" and "Script debugging" turned on. And my drivers are up-to-date.
     
  4. dtupper

    dtupper

    Joined:
    Jul 12, 2017
    Posts:
    1
    Getting the same issue, in the editor, with up to date drivers. Unity support linked me this issue: https://issuetracker.unity3d.com/is...1-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.
     
    Last edited: Dec 12, 2017
    ryo0ka likes this.
  5. ryo0ka

    ryo0ka

    Joined:
    Sep 27, 2015
    Posts:
    37
    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.
     
  6. dheera1996

    dheera1996

    Joined:
    Aug 3, 2017
    Posts:
    5
    this still exists in 2018.2 ? d3d9 is deprecated in 2018.2... any update on the issue?
     
    Last edited: Aug 8, 2018
  7. Drowning-Monkeys

    Drowning-Monkeys

    Joined:
    Mar 6, 2013
    Posts:
    328
  8. xushunwangdh

    xushunwangdh

    Joined:
    Aug 13, 2018
    Posts:
    2
    This issue still happed in 2018.4.3!

    Anyone knows how to fix it ?
     
  9. mQe

    mQe

    Joined:
    Jul 22, 2012
    Posts:
    57
    Seriously no fix for this?
    It's making development practically impossible :/
     
  10. petrvostrel

    petrvostrel

    Joined:
    Oct 30, 2019
    Posts:
    1
    Can confirm this issue is there again in 2018.4.11. Does it mean newer versions suffer with this too?
     
  11. Deleted User

    Deleted User

    Guest

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

    mowax74

    Joined:
    Mar 3, 2015
    Posts:
    97
    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..
     
    Skunk-Software likes this.
  13. DaikiHirayama

    DaikiHirayama

    Joined:
    May 9, 2019
    Posts:
    2
    I'm getting it now as well.
     
    Skunk-Software likes this.
  14. Amitloaf

    Amitloaf

    Joined:
    Jan 30, 2012
    Posts:
    97
    2019.3.7f confirmed to happen too
     
    BroPoly likes this.
  15. the_mr_matt

    the_mr_matt

    Joined:
    Jul 21, 2015
    Posts:
    124
    I'm getting the same errors in 2019.3.0f6. Output log: https://www.dropbox.com/s/rwwvbpe9tolh3xf/Editor.log?dl=0

    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.
     
    Last edited: Jul 15, 2020
  16. Amitloaf

    Amitloaf

    Joined:
    Jan 30, 2012
    Posts:
    97
    Send a bug report with the scene, it might help the unity team to reproduce and fix it
     
  17. Mike_Weicker

    Mike_Weicker

    Joined:
    Sep 11, 2018
    Posts:
    3
    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.
     
  18. Frieza

    Frieza

    Joined:
    Aug 29, 2008
    Posts:
    68
    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?
     
  19. Radu1397

    Radu1397

    Joined:
    Oct 25, 2020
    Posts:
    4
    Having same type of errors running a game called genshin impact, never had issues with d3d11 before...
     
  20. Coredumping

    Coredumping

    Joined:
    Dec 17, 2014
    Posts:
    51
    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.
     
  21. akuno

    akuno

    Joined:
    Dec 14, 2015
    Posts:
    88
    Having these issues here aswell
     
    Last edited: Dec 4, 2020
    PROE_ likes this.
  22. DanteMarshal

    DanteMarshal

    Joined:
    Aug 25, 2020
    Posts:
    10
    Also happens on 2019.3.15f1
    In our case, this only happens on systems with AMD graphics, NVidia works fine.
     
    tgrotte likes this.
  23. psychicparrot

    psychicparrot

    Joined:
    Dec 10, 2007
    Posts:
    884
    Same issues here. Crashes constantly with my project.

    d3d11: failed to create buffer

    2019.4.4.

    Same as the_mr_matt said above:
    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.
     
    Last edited: Oct 30, 2021
  24. midhapulkit28

    midhapulkit28

    Joined:
    Jan 18, 2019
    Posts:
    9
    version 2020.3.20f1 - while developing/testing the game as normal, after pushing play, playing for a few minutes, then attempting to stop the play button on the editor will result in a crash.

    Its next to impossible to do work with this and I see no solution?
     
  25. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,928
    This smells like a driver issue. Unity is asking DirectX to create a buffer, and DirectX is failing.
     
  26. vyomwankhede

    vyomwankhede

    Joined:
    Dec 7, 2021
    Posts:
    1
    PLEASE HELP SAME HERE
     

    Attached Files:

  27. Kopter

    Kopter

    Joined:
    May 23, 2016
    Posts:
    2
    I can't believe this is still a thing.. after so many years, and it's seemingly unavoidable?

    Dang
     
  28. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,928
    Error code 887a0005 in D3D means:
    https://docs.microsoft.com/en-us/windows/win32/direct3ddxgi/dxgi-error

    If you then take a look at ID3D10Device::GetDeviceRemovedReason to see possible causes for the video card to "disappear", you get these:
    https://docs.microsoft.com/en-us/wi.../nf-d3d10-id3d10device-getdeviceremovedreason

    • DXGI_ERROR_DEVICE_HUNG
    • DXGI_ERROR_DEVICE_REMOVED
    • DXGI_ERROR_DEVICE_RESET
    • DXGI_ERROR_DRIVER_INTERNAL_ERROR
    • DXGI_ERROR_INVALID_CALL

    So the GPU hung, was physically yanked out from your computer, reset itself, or the driver encountered an internal error.

    This error is spewed by DirectX, not Unity. Probably either a driver issue, not enough video memory to create a texture, or goblins took your video card :p. I don't think it's Unity's fault.

    I've hit this in the past though, when procedurally creating a S*** ton of textures and not unloading them. Not much to do except carefully managing your resources. If you're absolutely sure you're not doing anything wrong in that regard, then most probable cause imho is a driver crash.
     
    Last edited: Jan 5, 2022
    Reahreic likes this.
  29. Reahreic

    Reahreic

    Joined:
    Mar 23, 2011
    Posts:
    254
    Great post, I figured this was system related and not unity as we're running 30 identical imaged machines and only one has routinely failed in this way. (After a few hours of running VR content at 70% GPU)

    I tied re-seating the GPU but it's a 'VR laptop', so that wasn't achievable. The system itself passed Prime95 & FurMark stress testing fine enough and is using the latest available NVIDIA drivers.

    It could be related the GPU re-calculating output ports if a display cable gets loose. (Still testing) But if that's the case, how can one work around the issue to try{}catch{} the failure mode in order to save progress and attempt to self recover/re-initialize the display adapter.
     
  30. psychicparrot

    psychicparrot

    Joined:
    Dec 10, 2007
    Posts:
    884
    SO .. what I've found is that for every 'failed to create buffer' error in the console, there was a corresponding gameobject with multiple lightmaps in the 'baked lightmaps' sections of its Renderer Component.. and every time I unchecked Contribute Global Illumination so that the baked lightmaps weren't applied, I got one less create buffer error.. and I kept clearing out the baked lightmaps on those objects until the error stopped and the build was stable.

    I wish I could be more specific, but we fixed it a few weeks ago.. I've been mega busy and my memory is hazy about it. all I can say is .. Check the lightmaps! If you find you can remove baked lightmaps and the failed to create buffer errors go away, maybe it's the same thing for you? Wouldn't hurt to try! Good luck!
     
  31. broomtool

    broomtool

    Joined:
    Apr 14, 2021
    Posts:
    1
    Hello! Quite a few of our players are experiencing this same, or very similar issue. It is a crash to desktop each time.
    This issue only first started appearing after we upgraded from Unity version 2019.4.20f1 to 2021.3.11.f1. We never received reports of this issue before the upgrade.

    Three of the common themes to this issue are:

    1. This error:
    d3d11: failed to create buffer (target 0x10 mode 1 size 65576) since compute isn't supported at this feature level
    d3d11: attempt to lock null buffer
    d3d11: failed to create buffer (target 0x10 mode 1 size 65576) since compute isn't supported at this feature level
    d3d11: attempt to lock null buffer
    Crash!!!

    2. The players who experience this crash have some form of Intel integrated graphics. There is no specific driver in common.

    3. For a few players with this issue, but not all, they can reliably crash to desktop with the use of two abilities in our game that utilize Unity's particle system. However, other players will not reliably crash from these abilities, but still crash from this error from some other source that we haven't yet pinned down through reports.

    Nobody on our team can replicate this crash.
     
  32. KYL3R

    KYL3R

    Joined:
    Nov 16, 2012
    Posts:
    135
    I get this errors on some AMD cards. However, 2 friends have the same pc setup and it freezes on one pc but not on the other. It's very likely a driver issue, but I don't know how I could avoid/catch this error.

    It freezes the game (music still playing, but image is frozen, if you press escape and move the mouse, the hover effects still make a sound. So it's not crashed yet.

    It's AMD RX Vega cards like this one:

    Code (CSharp):
    1. Direct3D:
    2.     Version:  Direct3D 11.0 [level 11.1]
    3.     Renderer: Radeon RX Vega (ID=0x687f)
    4.     Vendor:   ATI
    5.     VRAM:     8119 MB
    6.     Driver:   31.0.21902.5
    This is the only related trace:

    Code (CSharp):
    1. d3d11: failed to create buffer (target 0x10 mode 0 size 21600) [0x887A0005]
    2. d3d11: failed to create buffer (target 0x10 mode 0 size 21600) [0x887A0005]
    3. d3d11: failed to create buffer (target 0x10 mode 0 size 5400) [0x887A0005]
    4. d3d11: failed to create buffer (target 0x5 mode 0 size 33168) [0x887A0005]
    5. d3d11: failed to create buffer (target 0x5 mode 0 size 33792) [0x887A0005]

    For me, it happens when I spawn particles in a particle-system, that uses MudBun to create a volumetric raymarching mesh. That probably allocates buffers and starts the chain that leads to that DirectX error in the end. But it works totally fine on other machines.

    One user said he could play the game normally one day but the other day it kept freezing every single time. I suggested clearing the AMD Drivers cache - I am waiting for response.

    Still I'd love to have a fix/workaround. Maybe some fixed amd driver library that we can put the the game's root folder, or a #ifdef AMD thing.
    Sadly we don't even know if it's fixed in a newer Unity version, right?
    I'm on 2021.3.29f1
     
  33. Sluggy

    Sluggy

    Joined:
    Nov 27, 2012
    Posts:
    989
    Just had this issue today (among many others involving the gc that are likely unrelated). I had just upgraded from 2022.3.12f to 2022.3.16f.

    It only happens in a release build. The editor does not appear to be affected. I do dynamically generate some RenderTextures early in the scene so I though maybe it was a runaway bug there. But every seems fine and everything stabalizes within a few seconds. Maybe twenty seconds later when nothing is being generated but many models are being enabled and disabled due to lods then the game completely freezes with the usual logs as reported above.

    Just to clarify again: Only happening in 2022.3.16f, only happening in release build. Does not appear to be the result of daynamic texture generation.
     
  34. dreamanlan

    dreamanlan

    Joined:
    May 6, 2023
    Posts:
    1
    Maybe GraphicsBuffer::GetData is causing the error above. (happening in 2022.3.4f1)
     
  35. Dawid_Matuszewski

    Dawid_Matuszewski

    Joined:
    Mar 2, 2016
    Posts:
    23
    2022.3.21f1 still happening
    Is this the Unity fault or user PC/drivers/GPU?