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

QML video media player segmentation fault on AMD GPU with FFMPEG

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.3, 6.7.0
    • Multimedia
    • None
    • Linux/Wayland, Linux/X11
    • 4f91b409c (dev), 9316208b5 (6.7), 06a613296 (tqtc/lts-6.5)
    • Multimedia wk 17-18, Multimedia wk 19-20

    Description

      Trying to play one or multiple videos using the Video type while running on AMD gpu it crashes, here's the output:

      QSG_INFO=1 QT_LOGGING_RULES="qml.debug=true" qml test.qml 
      [AVHWFramesContext @ 0x71cc40004ec0] Failed to sync surface 0x19: 13 (the requested VAEntryPoint is not supported).
      Error transferring the data to system memory: -5
      Cannot map a video frame in ReadOnly mode!
      Cannot represent the plane 0 as an image
      Cannot represent the plane 1 as an image
      malloc(): mismatching next->prev_size (unsorted)
      Aborted (core dumped) 

      Attached the backtrace

      Running the same file with Intel or Nvidia GPU plays normally on my system.

       

      Additional context:

      Found this bug while developing a KDE Plasma Wallpaper Plugin (Qml only) that plays videos as wallpaper and users started reporting plasmashell crashes on AMD, I isolated the video player into a test.qml and users are able to reproduce the crash outside plasmashell.

      Attachments

        1. backtrace_qml_video_amd_crash.txt
          144 kB
        2. qml_terminal_log.txt
          16.06 MB
        3. video_test-1.qml
          2 kB
        For Gerrit Dashboard: QTBUG-124586
        # Subject Branch Project Status CR V

        Activity

          People

            lars.sutterud Lars Sutterud
            luisbocanegra Luis Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes