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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important 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, Multimedia, weeks 9-10, Multimedia, weeks 11-12, Multimedia, weeks 13-14, Multimedia, weeks 15-16

      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

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

            artemiy Artem Dyomin
            timblechmann tim blechmann
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: