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

MediaPlayer examples crashes during programstart under Darwin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8.0 Beta3
    • 6.8.0 Beta2
    • Multimedia
    • None
    • MacBook Pro M3
      MacOS 14.6
      QT_MEDIA_BACKEND=darwin
    • macOS

    Description

      The MediaPlayer example in the Multimedia module crashes during startup when forcing it to use the Darwin backend. It does not happen when using the Ffmpeg backend.

      This happens on a MacBook Pro M3 (ARM), running MacOS 14.6.

      The Darwin backend is forced on with the system variable QT_MEDIA_BACKEND=darwin.

      Steps to reproduce:
      Run the MediaPlayer example in Qt Creator, while force-setting the media backend to Darwin

      Expected behavior:
      MediaPlayer example starts up successfully, without crashing. (Same behavior as Ffmpeg).

      Stack trace:

                                                                    
      1  QExplicitlySharedDataPointer<QVideoFrameFormatPrivate>::QExplicitlySharedDataPointer(QExplicitlySharedDataPointer<QVideoFrameFormatPrivate> const&) qshareddata.h                                                                                                       158  0x1006b421c 
      2  QExplicitlySharedDataPointer<QVideoFrameFormatPrivate>::QExplicitlySharedDataPointer(QExplicitlySharedDataPointer<QVideoFrameFormatPrivate> const&) qshareddata.h                                                                                                       159  0x1006b421c 
      3  QVideoFrameFormat::QVideoFrameFormat(QVideoFrameFormat const&)                                                                                      qvideoframeformat.cpp                                                                                               368  0x1006b421c 
      4  QVideoFrameFormat::QVideoFrameFormat(QVideoFrameFormat const&)                                                                                      qvideoframeformat.cpp                                                                                               368  0x1006b421c 
      5  AVFVideoBuffer::videoFormat() const                                                                                                                 avfvideobuffer_p.h                                                                                                  44   0x1013487b4 
      6  AVFVideoRendererControl::updateVideoFrame(CVTimeStamp const&)                                                                                       avfvideorenderercontrol.mm                                                                                          157  0x1013487a8 
      7  void doActivate<false>(QObject *, int, void * *)                                                                                                    qobject.cpp                                                                                                         4125 0x1034dda7c 
      8  AVFDisplayLink::tick(CVTimeStamp const&)                                                                                                            moc_avfdisplaylink_p.cpp                                                                                            158  0x10133dec0 
      9  AVFDisplayLink::event(QEvent *)                                                                                                                     avfdisplaylink.mm                                                                                                   196  0x10133dea4 
      10 QCoreApplicationPrivate::notify_helper(QObject *, QEvent *)                                                                                         qcoreapplication.cpp                                                                                                1328 0x10348d5b0 
      11 QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                              qcoreapplication.cpp                                                                                                1154 0x10348cff4 
      12 QCoreApplication::sendEvent(QObject *, QEvent *)                                                                                                    qcoreapplication.cpp                                                                                                1598 0x10348e9ac 
      13 QCoreApplicationPrivate::sendPostedEvents(QObject *, int, QThreadData *)                                                                            qcoreapplication.cpp                                                                                                1954 0x10348e99c 
      14 QCocoaEventDispatcherPrivate::processPostedEvents()                                                                                                 qcocoaeventdispatcher.mm                                                                                            901  0x1004ff5d4 
      15 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void *)                                                                                    qcocoaeventdispatcher.mm                                                                                            923  0x100500748 
      16 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__                                                                                          (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1889b54d8 
      17 __CFRunLoopDoSource0                                                                                                                                (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1889b546c 
      18 __CFRunLoopDoSources0                                                                                                                               (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1889b51dc 
      19 __CFRunLoopRun                                                                                                                                      (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1889b3dc8 
      20 CFRunLoopRunSpecific                                                                                                                                (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1889b3434 
      21 RunCurrentEventLoopInMode                                                                                                                           (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox      0x19315d19c 
      22 ReceiveNextEventCommon                                                                                                                              (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox      0x19315cfd8 
      23 _BlockUntilNextEventMatchingListInModeWithFilter                                                                                                    (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox      0x19315cd30 
      24 _DPSNextEvent                                                                                                                                       (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit                                                   0x18c212cc8 
      25 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]                                                              (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit                                                   0x18ca094d0 
      26 -[NSApplication run]                                                                                                                                (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit                                                   0x18c205ffc 
      27 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                         qcocoaeventdispatcher.mm                                                                                            407  0x1004fe10c 
      28 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                    qeventloop.cpp                                                                                                      100  0x1034981dc 
      29 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                             qeventloop.cpp                                                                                                      191  0x1034981b8 
      30 QCoreApplication::exec()                                                                                                                            qcoreapplication.cpp                                                                                                1499 0x10348d818 
      31 main                                                                                                                                                main.cpp                                                                                                            89   0x10000a278 
      32 start                                                                                                                                               (arm64e) /usr/lib/dyld                                                                                                   0x18854b154 

      Attachments

        Issue Links

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

          Activity

            People

              tpochep Timur Pocheptsov
              npskalerud Nils Petter Skålerud
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes