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

QVideoFrame::toImage / qImageFromVideoFrame not safe to call from worker thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.9
    • Multimedia
    • None
    • Linux/Wayland
    • Multimedia wk 47-48

    Description

      when built for opengl (as in QT_CONFIG(opengl)), qImageFromVideoFrame cannot be used from worker threads:

      • qImageFromVideoFrame calls initializeRHI
      • initializeRHI calls QRhiGles2InitParams::newFallbackSurface
      • QRhiGles2InitParams::newFallbackSurface docs state that "This function must only be called on the gui/main thread"

      when running with the wayland qpa plugin, a warning is emitted:
      > Attempting to create QWindow-based QOffscreenSurface outside the gui thread. Expect failures

      we should either document/assert or try to lift this requirement

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-131107
          # Subject Branch Project Status CR V

          Activity

            People

              mikko.hallamaa Mikko Hallamaa
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change