Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Unity Player Crash after some time - error 0x887a0005

Discussion in 'Windows' started by Josh_He, Sep 14, 2020.

  1. Josh_He

    Josh_He

    Joined:
    Nov 19, 2013
    Posts:
    14
    Hi,
    I encountered a crash on my windows builds. Unfortunately, this crash only happens after some time and is not consistently reproducible. We run this application on 15 machines (same hardware config) and get at least 2-5 crashes in 4 hours. I attached a crash dump and logs.

    The player log looks very normal until it ends with this:


    D3D11: Failed to create RenderTexture (1920 x 1080 fmt 27 aa 1), error 0x887a0005
    (Filename: Line: 207)
    D3D11: Failed to create RenderTexture (1920 x 1080 fmt 19 aa 1), error 0x887a0005
    (Filename: Line: 207)
    Crash!!!


    I checked the error code 0x877a0005 and it maps to DXGI_ERROR_DEVICE_REMOVED. The graphics card in all these is Intel UHD Graphics 630 so physically removing the graphics card is not possible. Here is some info on that:


    Direct3D:
    Version: Direct3D 11.0 [level 11.1]
    Renderer: Intel(R) UHD Graphics 630 (ID=0x3e91)
    Vendor:
    VRAM: 3982 MB
    Driver: 26.20.100.7323


    Any help / hint / solution is appreciated.

    Best regards,
    Josh
     

    Attached Files:

    Meatloaf4 and akuno like this.
  2. RakNet

    RakNet

    Joined:
    Oct 9, 2013
    Posts:
    313
    I saw this for the first time as well, Unity 2019.3.15f1

    D3D11: Failed to create RenderTexture (1920 x 1080 fmt 9 aa 1), error 0x887a0005
    (Filename: Line: 207)

    d3d11: failed to create staging 2D texture w=128 h=2 d3dfmt=10 [887a0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 1472) [0x887A0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 700) [0x887A0005]
    d3d11: failed to create buffer (target 0x1 mode 0 size 111360) [0x887A0005]
    d3d11: failed to create buffer (target 0x2 mode 0 size 5568) [0x887A0005]
    d3d11: failed to create staging 2D texture w=128 h=2 d3dfmt=10 [887a0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 1472) [0x887A0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 700) [0x887A0005]
    d3d11: failed to create staging 2D texture w=128 h=2 d3dfmt=10 [887a0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 1472) [0x887A0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 700) [0x887A0005]
    d3d11: failed to create staging 2D texture w=128 h=2 d3dfmt=10 [887a0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 1472) [0x887A0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 700) [0x887A0005]
    d3d11: failed to create staging 2D texture w=128 h=2 d3dfmt=10 [887a0005]
    d3d11: failed to create buffer (target 0x10 mode 0 size 1472) [0x887A0005]
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,431
    These issues can be notoriously hard to investigate and fix. DXGI_ERROR_DEVICE_REMOVED means that the graphics driver crashed.

    They can be due to driver bugs, memory corruption, going out of memory, etc. The best way to address them is reporting a bug in Unity and then working with our QA get to the bottom of it.
     
  4. DavyHsk

    DavyHsk

    Joined:
    Sep 3, 2020
    Posts:
    3
    Hello @Josh_He , we have an identical problem on 20 or so devices similar to yours (Intel NUC7i5, Intel UHD 640 graphics).

    Since your post, have you been in touch with the Unity QA team to get this resolved?
     
  5. Josh_He

    Josh_He

    Joined:
    Nov 19, 2013
    Posts:
    14
    Hey, we tried to replicate the issue on some devices used for testing during development and weren't able to get the same crash. The actual devices are not connected to the internet so they never updated any drivers and that's what we did to resolve the error.
    However I can't yet fully confirm it doesn't happen anymore. Because of the pandemic the exhibition (museum) is closed and the application is not used at the moment.

    So my best advice is double check the (graphics-)drivers since we have not seen the crash after that.

    Best regards,
    Josh
     
  6. DavyHsk

    DavyHsk

    Joined:
    Sep 3, 2020
    Posts:
    3
    Hello Josh,

    We're indeed looking into driver issues (latest and older ones), but can't seem to find consistency in the behaviour using either.

    Thanks a lot for the swift reply, we'll keep on looking!

    kind regards,
    Davy
     
  7. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    189
    Any luck guys? Having the same issue.
     
  8. DavyHsk

    DavyHsk

    Joined:
    Sep 3, 2020
    Posts:
    3
    Hi Joe, we had better results using OpenGLCore (OpenGL 4.5) instead of DirectX on these particular devices.
     
    yoroppmaro and Sugarbear like this.
  9. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    189
    We figured out our issue. It came from an infinite loop inside of a Shader, specifically from the asset Volumetric Lights (Kronnect). The dev was extremely helpful and we managed to fix the issue.
     
  10. Sugarbear

    Sugarbear

    Joined:
    Jan 18, 2017
    Posts:
    2
    Thanks!!
    Really helped with: Intel(R) UHD Graphics 640
     
  11. manish191

    manish191

    Joined:
    Jul 6, 2017
    Posts:
    9
    @Tautvydas-Zilys. We are also facing the same issue with the standalone windows build using Unity 2019.4.30 LTS version. The build is getting after some time not at all places, but on some places. Same Crash with below message:

    "D3D11: Failed to create RenderTexture (1920 x 1080 fmt 27 aa 1), error 0x887a0005
    (Filename: Line: 207)

    D3D11: Failed to create RenderTexture (1920 x 1080 fmt 19 aa 1), error 0x887a0005
    "

    Any help on this would be great. Also, I have one concern regarding Graphics API. If we make windows standalone build with using OpenGLCore API only, will it improve the performance?
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,431
    Please, file a bug report on this.

    No, I don't think so. If anything, it will make your game perform worse as OpenGL is not a great graphics API choice on Windows. You can do it as a workaround to these crashes, but I wouldn't change the default.
     
  13. mustafabektasx

    mustafabektasx

    Joined:
    Oct 16, 2019
    Posts:
    3
    I got the same problem right now. can you help me ? my unity version is 2021.3.25f1 LTS version
     

    Attached Files:

  14. wangwenxinx

    wangwenxinx

    Joined:
    Mar 25, 2020
    Posts:
    7
    I got it also
     

    Attached Files:

  15. yobuddy

    yobuddy

    Joined:
    Jul 4, 2012
    Posts:
    7
    Hello, We have same problem too. (2022.3.3f1 LTS)
     

    Attached Files:

  16. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,431