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
    • P2: Important
    • None
    • 6.9
    • Multimedia
    • None
    • Linux/Wayland
    • 3de2cafdd (dev), 25c27eaa3 (6.8), f9b21ed6d (tqtc/lts-6.5)
    • Multimedia wk 47-48, Multimedia wk 51-2, Multimedia wk 5-6, Multimedia wk 7-8

    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

              qtmultimediateam Qt Multimedia Team
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes