Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2019.4.X, 2020.3.X, 2021.1.X

Votes

23

Found in

2019.3.2f1

2019.4

Issue ID

1237818

Regression

Yes

Video player fails to start playing and null handle errors are thrown when running Unity Editor/Build with specific hardware

Video

-

Reproduction steps:
1. Make a new Unity project
2. Import the user's attached video ("Opening Cinematic for Demo.mp4")
3. Add the video to the scene and check that it is being played by entering Play Mode
4. Make a standalone build and run it

Expected result: Video plays without issues (no crashes, video can be seen playing)
Actual result: Video is not being played and "Got null handle from IDXGIResource::GetSharedHandle" errors can be found in the logs.

Users were able to reproduce with:
AMD Radeon R8 M445DX
AMD Radeon R7 M440
*Please report other GPUs with which the problem happens. We're trying to find systems to reproduce but the laptops with the Radeon models above are out of production.*

No repro with:
AMD Radeon Pro 570 (Mac)
Radeon Pro 580 (two different Macs)
AMD Radeon R9 200 Series (Windows)
Radeon Pro WX 7100 (Windows)
Radeon Pro WX 9100 (Windows)
NVIDIA GeForce RTX 2060 (Windows)

  1. Response avatar

    Resolution Note (fix version 2021.2):

    Earlier generations of Radeon switchable graphics (R7 340, R7 440, 520, 530) have driver issues that make then incompatible with Unity's hardware-accelerated video decoding. We are adding detection of these issues so we can enable a software decoding fallback that will enable video playback.

  2. Response avatar

    Resolution Note (fix version 2021.2):

    FIxed in: 2021.2.0b10

  3. Response avatar

    Resolution Note (fix version 2021.1):

    Fixed in: 2021.1.18f1

  4. Response avatar

    Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.17f1

  5. Response avatar

    Resolution Note (fix version 2019.4):

    Fixed in: 2019.4.30f1

Comments (6)

  1. E97b29d020f8fa14d332f017e9029d39?d=mm

    Grivas_Publications

    Jun 24, 2021 09:54

    Same Issue with Radeon 520 on a dell inspiron laptop 15 3000.
    using Unity.2019.4

  2. F413441f3d1a817646ca6cb56466cad1?d=mm

    InteractivaStudios

    May 31, 2021 04:32

    Also having this problem with Radeon 530

  3. C8e6f42ec9179a9461c8ca9396c2e35b?d=mm

    nabilhamouda10

    May 23, 2021 19:37

    I have the same problem until now I made a script to load my video (mp4) from Azure server and i got in Unity : Got null handle from IDXGIResource::GetSharedHandle.

    I can hear only the voice but the video doesn't Appear. :( ….. from local it works when I change it to low quality and codec vp8 but in my project I need to load it from a server :( ,,, is there anyone who found a solution ?

  4. Fefe73ae25b6c22255ea6aaec461df82?d=mm

    adafish

    Mar 20, 2021 19:23

    We have a few reports of the same error and similar behavior--video does not play, but we do have audio--trying to play an MP4 from Streaming Assets using 2019.4.

    From the player log--
    Version: Direct3D 11.0 [level 11.1]
    Renderer: Radeon (TM) 520 (ID=0x6665)
    Vendor:
    VRAM: 2039 MB
    Driver: 27.20.14535.3005

    And the error:
    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1316)

  5. 42f4e697d44439b367c84074fb5ab915?d=mm

    reev4eg

    Mar 11, 2021 20:07

    Mono path[0] = 'C:/Program Files (x86)/Steam/steamapps/common/ATOM RPG/AtomRPG_x64_Data/Managed'
    Mono config path = 'C:/Program Files (x86)/Steam/steamapps/common/ATOM RPG/MonoBleedingEdge/etc'
    Initialize engine version: 2019.4.20f1 (6dd1c08eedfa)
    [Subsystems] Discovering subsystems at path C:/Program Files (x86)/Steam/steamapps/common/ATOM RPG/AtomRPG_x64_Data/UnitySubsystems
    GfxDevice: creating device client; threaded=1
    Direct3D:
    Version: Direct3D 11.0 [level 11.1]
    Renderer: Radeon (TM) 530 (ID=0x6900)
    Vendor:
    VRAM: 2039 MB
    Driver: 26.20.12001.7006
    Begin MonoManager ReloadAssembly
    - Completed reload, in 0.450 seconds
    D3D11 device created for Microsoft Media Foundation video decoding.
    <RI> Initializing input.

    <RI> Input initialized.

    <RI> Initialized touch support.

    UnloadTime: 12.557500 ms
    DETECT GPU TIER2
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    Looking for mods (C:/Program Files (x86)/Steam/steamapps/common/ATOM RPG/AtomRPG_x64_Data/StreamingAssets)...
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    Found dlc bundle (C:/Program Files (x86)/Steam/steamapps/common/ATOM RPG/AtomRPG_x64_Data/StreamingAssets\dlc_1.bundle). Try to load...
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    Asset bundle added:dlc_1.bundle
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    SteamInput Init
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    SteamInput GetConnectedControllers
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    SteamInput Free
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Got null handle from IDXGIResource::GetSharedHandle.
    (Filename: Line: 1370)

    Unloading 6 Unused Serialized files (Serialized files now loaded: 1)
    LoadDB: 409
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    UnloadTime: 424.785800 ms

    Unloading 5 unused Assets to reduce memory usage. Loaded Objects now: 1469.
    Total: 3.250400 ms (FindLiveObjects: 0.188200 ms CreateObjectMapping: 0.077800 ms MarkObjects: 2.943100 ms DeleteObjects: 0.040100 ms)

    Unloading 5 Unused Serialized files (Serialized files now loaded: 1)
    UnloadTime: 15.382400 ms

    Unloading 9 unused Assets to reduce memory usage. Loaded Objects now: 1464.
    Total: 1.857100 ms (FindLiveObjects: 0.149400 ms CreateObjectMapping: 0.090100 ms MarkObjects: 1.196800 ms DeleteObjects: 0.419800 ms)

    Setting up 1 worker threads for Enlighten.
    Thread -> id: 654 -> priority: 1
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/CameraFacingBillboardTree' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/TerrainLayerUtils' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    Unloading 5 Unused Serialized files (Serialized files now loaded: 1)
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/Details/Vertexlit' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/Details/Vertexlit' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/GenerateNormalmap' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/Details/BillboardWavingDoublePass' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/BillboardTree' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/CrossBlendNeighbors' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/HeightBlitCopy' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader Unsupported: 'Hidden/TerrainEngine/PaintHeight' - All passes removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    UnloadTime: 27.082200 ms
    EARLY_ACCESS_1
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    1556563420
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    EARLY_ACCESS_1
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    Unloading 9358 unused Assets to reduce memory usage. Loaded Objects now: 17145.
    Total: 51.418300 ms (FindLiveObjects: 5.573200 ms CreateObjectMapping: 6.760100 ms MarkObjects: 30.905900 ms DeleteObjects: 8.178000 ms)

    !
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    !
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

    !
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

  6. Fb98842613f8ae1c32244886bc52c274?d=mm

    samcak_rv

    Nov 20, 2020 11:15

    also reproduced on 2020.1

Add comment

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.