Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9
-
None
-
-
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
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
- relates to
-
QTBUG-130970 [wayland] qtmm examples crash on rockchip when using wayland
-
- Closed
-
-
QTBUG-135598 [Windows] Sporadic crashes when call QVideoFrame::toImage() from working thread
-
- Reported
-
-
QTBUG-109039 Can't save QVideoFrame as an image from QML App
-
- Reported
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-131107 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
636409,4 | Don't create thread-local OpenGL RHI in the worker thread | dev | qt/qtmultimedia | Status: NEW | 0 | 0 |