Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113559

QML media player example crashes because of the combination FFMPEG + D3D11 (AMD)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.6.0
    • 6.5.0, 6.5.2, 6.6.0 Beta1
    • Multimedia
    • None
    • Windows

    Description

      The default multimedia backend and graphics API for 6.5.0 is FFMPEG + D3D11. However, it causes crash, and the error message is:

      D3D11: Removing Device.
      failed to get textures for frame false
      Device loss detected in Present()
      Graphics device lost, cleaning up scenegraph and releasing RHI

      Running QML media player example can reproduce the issue. I have to either switch multimedia backend to 'windows', or change graphics API to 'OpenGL' or 'Vulkan' to make the example work. Also, macOS does not show the issue since its default graphics API is Metal.

      qputenv("QT_DISABLE_HW_TEXTURES_CONVERSION", "true"); does not help. Also, the QWidget based media player example does not crash, although 'Device loss detected in Present()' warning message keeps coming.

      The issue may be related to hardware, since some people say they cannot reproduce the issue I am facing. So here is my HW and OS specs:

      Device name Chen
      Processor AMD Ryzen 5 PRO 6650U with Radeon Graphics 2.90 GHz
      Installed RAM 16.0 GB (11.8 GB usable)
      Device ID C21699A3-79E1-44EA-B9FE-85050DFEFC46
      Product ID 00342-22087-60091-AAOEM
      System type 64-bit operating system, x64-based processor
      Pen and touch No pen or touch input is available for this display
      Edition Windows 11 Home
      Version 22H2
      Installed on ‎12/‎29/‎2022
      OS build 22621.1702
      Experience Windows Feature Experience Pack 1000.22641.1000.0

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              johanseg Jøger Hansegård
              luqiaochen Luqiao Chen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes