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

[macOS] Crash in qt_convert_NV12_to_ARGB32

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.4.2, 6.5.0 Beta1
    • 6.2.4, 6.3.2
    • Multimedia
    • None
    • MacBook Pro 13" (Retina, Touch, Mid-2020) macOS 12.0.1
      MacBook Pro 16" (Retina, Touch, Mid-2019) macOS 12.3.1
      MacBook Pro 13" (Mid-2012) macOS 10.15.7
    • macOS

    Description

      QVideoFrame::toImage() is crashing on qt_convert_NV12_to_ARGB32() call

      I see such crashes among users crash reports on AppCenter.
      It's never reproduced for me locally, probably it happens with some specific video files.

      Stack trace:

      Exception Type:  SIGSEGV
      Exception Codes: SEGV_MAPERR at 0x7fcae1ea1414
      Crashed Thread:  0
      
      Thread 0 Crashed:
      0   QtMultimedia                         0x0000000107d12b1d qt_convert_NV12_to_ARGB32(QVideoFrame const&, unsigned char*) (qvideoframeconversionhelper.cpp:86)
      1   QtMultimedia                         0x0000000107d09607 QVideoFrame::toImage() const (qvideoframe.cpp:775)
      ...
      3   QtCore                               0x000000010c3e7403 void doActivate<false>(QObject*, int, void**) (qobjectdefs_impl.h:375)
      4   QtMultimedia                         0x0000000107d0b32c QPlatformVideoSink::setVideoFrame(QVideoFrame const&) (moc_qvideosink.cpp:161)
      5   QtMultimedia                         0x0000000107d2c843 AVFVideoRendererControl::updateVideoFrame(CVTimeStamp const&) (avfvideorenderercontrol.mm:197)
      6   QtCore                               0x000000010c3e76f2 void doActivate<false>(QObject*, int, void**) (qobject.cpp:3924)
      7   QtMultimedia                         0x0000000107cc40b4 AVFDisplayLink::tick(CVTimeStamp const&) (moc_avfdisplaylink_p.cpp:149)
      8   QtMultimedia                         0x0000000107d2497b AVFDisplayLink::event(QEvent*) (avfdisplaylink.mm:232)
      ...
      

      Seems it doesn't depend on mac model or macOS version, see Environment.

      Attachments

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

        Activity

          People

            piotr Piotr Srebrny (Inactive)
            studiosus Vladimir Belyavsky
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes