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

MediaPlayer QML type with FFmpeg multimedia backend crashes with certain audio files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.5.0
    • Multimedia
    • None
    • Windows 10 Pro 22H2, Dell Latitude 3190 2-in-1
    • Windows

    Description

      For many/most audio files, the FFmpeg backend works fine, but for some, it crashes when I set the source to it.

      Tested on windows, haven't yet tried on any other operating system.

      I've attached the two mp3's i was using for testing.

      It works fine in qt 6.5 when I set QT_MEDIA_BACKEND to windows, so its a problem with the ffmpeg backend.

      If it's just that the format or codec of the file is not supported by this build of ffmpeg, then it should simply give an error, like what happens when you try to load a nonexistent file or an image file, instead of crashing.

       

      import QtQuick
      import QtQuick.Controls
      import QtMultimedia
      ApplicationWindow {
          id: root
          visible: true
          width: 800
          height: 600    
          MediaPlayer {
              id: player
              /*crashes*/ source: "file:///C:/Users/alex/Music/Yves Tumor - Heaven To A Tortured Mind - mp3/Heaven To A Tortured Mind-01-009-Yves Tumor-Folie Imposée.mp3"
              /*works*/ //source: "file:///C:/Users/alex/Music/LEYA - Flood Dream/LEYA - Flood Dream - 07 Mariah.mp3"
              audioOutput: AudioOutput {}
              onMediaStatusChanged: {
                  if (player.mediaStatus === MediaPlayer.LoadedMedia) {
                      play();
                  }
              }
          }
      }
       

      the stack trace for the crash looks like this.

      Also, for whatever reason, probably not relevant to this bug report, whenever the app crashes in this specific way when the debugger is attached, QtCreator hangs, says not responding until QtCreator crashes. It doesn't do that for any other crashes (of my programs not qtcreator) I've encountered.

      Attachments

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

        Activity

          People

            artemiy Artem Dyomin
            jirauser62869 user-8aa0b (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes