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

[MacOS] Sporadic crashes when call QVideoFrame::toImage()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7.3
    • Multimedia
    • None
    • macOS

    Description

      from QTBUG-135598: Found these crashes in our automated tracking system

      Call stack:

      Fatal Error: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS / 0xc8
      
      Thread 259 Crashed:
      0   AGXMetalG14X                    0x1e44f9ef0         <unknown>
      1   QtGui                           0x1092c2c38         QMetalGraphicsPipeline::makeActiveForCurrentRenderPassEncoder (qrhimetal.mm:1448)
      2   QtGui                           0x1092c2fa4         QRhiMetal::setGraphicsPipeline (qrhimetal.mm:1491)
      3   QtMultimedia                    0x1075ca5e4         qImageFromVideoFrame (qvideoframeconverter.cpp:393)
      4   QtMultimedia                    0x1075beb1c         QVideoFrame::toImage (qvideoframe.cpp:686)
      ...
      9   QtCore                          0x109c0ef50         [inlined] QtPrivate::QSlotObjectBase::call (qobjectdefs_impl.h:469)
      10  QtCore                          0x109c0ef50         doActivate<T> (qobject.cpp:4086)
      11  QtMultimedia                    0x1075c0464         QVideoSink::videoFrameChanged (moc_qvideosink.cpp:203)
      12  libdarwinmediaplugin.dylib      0x317f15a60         AVFVideoRendererControl::updateVideoFrame (avfvideorenderercontrol.mm:158)
      13  QtCore                          0x109c0ef9c         doActivate<T> (qobject.cpp:4098)
      14  libdarwinmediaplugin.dylib      0x317f0bf94         [inlined] AVFDisplayLink::tick (moc_avfdisplaylink_p.cpp:158)
      15  libdarwinmediaplugin.dylib      0x317f0bf94         AVFDisplayLink::event (avfdisplaylink.mm:196)
      16  QtCore                          0x109bc3a18         QCoreApplicationPrivate::notify_helper (qcoreapplication.cpp:1326)
      17  QtCore                          0x109bc34c8         QCoreApplication::notifyInternal2 (qcoreapplication.cpp:1152)
      18  QtCore                          0x109bc4484         [inlined] QCoreApplication::sendEvent (qcoreapplication.cpp:1593)
      19  QtCore                          0x109bc4484         QCoreApplicationPrivate::sendPostedEvents (qcoreapplication.cpp:1951)
      20  libqcocoa.dylib                 0x108066700         QCocoaEventDispatcherPrivate::processPostedEvents (qcocoaeventdispatcher.mm:900)
      21  libqcocoa.dylib                 0x108067834         QCocoaEventDispatcherPrivate::postedEventsSourceCallback (qcocoaeventdispatcher.mm:922)
      ...
      

      for reference, this is qt-6.7.3:

      void QMetalGraphicsPipeline::makeActiveForCurrentRenderPassEncoder(QMetalCommandBuffer *cbD)
      {
          [cbD->d->currentRenderPassEncoder setRenderPipelineState: d->ps]; // <--------- line 1448
      

      Attachments

        Issue Links

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

          Activity

            People

              timblechmann tim blechmann
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes