Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. We are looking for your feedback about Templates! Tell us about your experiences by taking our survey.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug Video player throws Got null handle from IDXGIResource::GetSharedHandle on some Windows computers

Discussion in 'Audio & Video' started by apalasthy, May 14, 2020.

  1. apalasthy

    apalasthy

    Joined:
    Nov 13, 2019
    Posts:
    8
    I'm working on a multi-platform project that plays mp4 videos from and external source (and can not change to other format).

    The unity video player is working fine on macOS, and Android and on all tested windows computers (around 4) except for mine.

    I get the "Got null handle from IDXGIResource::GetSharedHandle." repeated over and over again.
    In unity editor, there is no image and no sound.
    In build, there is no image but audio is playing.

    I was able to find these three mentions of the same exception, but their solutions were either wait for a fix or change the video format.

    https://forum.unity.com/threads/vid...le-from-idxgiresource-getsharedhandle.867523/
    https://answers.unity.com/questions/1712939/unity-video-player-getting-audio-but-no-video.html
    https://steamcommunity.com/app/1122120/discussions/0/3040432535357625965/

    I have Windows 10 Enterprise 64-bit, build 18363; Directx 12; newest graphics card drivers.
    The project runs on unity 2019.3.7f1( even tried latest 2020.2.0a10, but the issue persisted)

    I was also unable to find a bug issue tracking this.
    It seems to be happening since end of march 2020.

    Is this something that unity team knows about?

    Any ideas that could help?
     
  2. apalasthy

    apalasthy

    Joined:
    Nov 13, 2019
    Posts:
    8
    I've dug some more into this issue and found out that in my case it's likely an AMD graphics card driver fault.
    After setting the unity editor to run on my Intel UHD Graphics instead of AMD graphics card the video plays fine.
    Same works for the build.

    So as a workaround: On windows 10, going to Settings -> Display -> Graphics Settings and setting the C:\ProgramFiles\Unity\Hub\Editor\20xx.xxx\Editor\UnityHelper.exe to run on Intel UHD Graphics sidestepped my issue.
     
  3. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    229
    Hi!

    As you have pointed out, this same problem has been reported over here: https://forum.unity.com/threads/vid...le-from-idxgiresource-getsharedhandle.867523/

    Thanks for taking the time to identify that AMD seems to be the source of it. This matches the description that the other user provided when submitting the bug. The bug report itself is still under investigation; its id will be 1237818 when initial triage is over, if you want to track it. I've added a link to this thread in the case description so the customer QA - and ultimately the dev fixing it - gets all the info.

    You are mentioning the use of DX12: can you also give it a try with DX11? Also, please let us know the graphics card model so we can validate our fix on a comparable system.

    Thanks for helping understand the issue,

    Dominique
    A/V developer at Unity
     
  4. BonitaPersona

    BonitaPersona

    Joined:
    Feb 20, 2014
    Posts:
    15
    Are there any news on this bug? I can't find the id 1237818 in the issue tracker.

    We released the demo of our game last week, and the people who can't see the videos are giving us bad reviews. They are relevant to the plot, so skipping them is just a las resort workaround. We're releasing the game next week and we'd like to at least know the state the issue is currently at, so we can plan our communication.

    Is there a stable workaround changing the transcode settings? We don't want for a workaround to consequently break the videos for other players.

    Edit: I can confirm that at least two of the cases reported are using AMD hardware. One of the specified AMD Radeon R8 M445DX (GPU) with AMD A10-9600P 3.30 GHz (CPU)

    I'm very sorry for the double post, I want to make sure that I post on the thread that is watched.
     
  5. Shaunyowns

    Shaunyowns

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    328
    Hey @AutumnYard, let me see if I can find out what's going on with the bug ID for you
     
    BonitaPersona likes this.
  6. mekartikshah

    mekartikshah

    Joined:
    Jan 10, 2017
    Posts:
    63
    We have a live application and the customer is complaining about the video not working, can any workarounds which We can try?
     
  7. wechat_os_Qy001EV5Uy_JFXR3x7Xyx5aco

    wechat_os_Qy001EV5Uy_JFXR3x7Xyx5aco

    Joined:
    Mar 3, 2020
    Posts:
    4
    not display video from videoplayer,but have sound,
    i use videoplayer url to play local .mp4 video

    platform windows10 ,AMD GPU
    log error Got null handle from IDXGIResource::GetSharedHandle.
    unity 2019.4.16f1c1
    help
     
  8. wechat_os_Qy001EV5Uy_JFXR3x7Xyx5aco

    wechat_os_Qy001EV5Uy_JFXR3x7Xyx5aco

    Joined:
    Mar 3, 2020
    Posts:
    4

    Change PlayerSetting -> OtherSettings->AutoGraphics API for Windows (false) and add Vulkan to first
    is work in AMD GPU
     
unityunity