Bug 452610

Summary: WebRTC in Chromium: Failed to query DMA-BUF modifiers
Product: [Plasma] kwin Reporter: postix <postix>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate, postix
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.24.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KWin Wayland Support Information

Description postix 2022-04-14 12:24:38 UTC
Created attachment 148153 [details]
KWin Wayland Support Information

SUMMARY

Using the demo on  `https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing`, screen-sharing randomly works and randomly doesn't (black screen or distorted image).

However, I see lot's of `Failed to query DMA-BUF modifiers.` errors, when the the Screen/Window choosing dialog is opened and also during the sharing:

```
> /usr/bin/chromium --enable-features=WebRTCPipeWireCapturer --ozone-platform=wayland --enable-usermedia-screen-capturing

[7443:7443:0414/135318.713376:ERROR:cursor_loader.cc(116)] Failed to load a platform cursor of type kNull
[7484:7484:0414/135318.728342:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is egl, ANGLE is 
[7484:7484:0414/135318.729957:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[7443:7443:0414/135318.863266:ERROR:cursor_loader.cc(116)] Failed to load a platform cursor of type kNull
[7443:7443:0414/135330.880690:ERROR:egl_dmabuf.cc(660)] Failed to query DMA-BUF modifiers.
[7443:7443:0414/135330.880705:ERROR:egl_dmabuf.cc(660)] Failed to query DMA-BUF modifiers.
[7443:7443:0414/135330.880712:ERROR:egl_dmabuf.cc(660)] Failed to query DMA-BUF modifiers.
[7443:7443:0414/135330.880717:ERROR:egl_dmabuf.cc(660)] Failed to query DMA-BUF modifiers.
[7443:7443:0414/135334.703081:ERROR:screencast_portal.cc(447)] Failed to start the screen cast session.
[7443:7443:0414/135334.703092:ERROR:base_capturer_pipewire.cc(36)] ScreenCastPortal failed: 1
[7443:7443:0414/135341.982907:ERROR:egl_dmabuf.cc(660)] Failed to query DMA-BUF modifiers.
[7443:7443:0414/135341.982924:ERROR:egl_dmabuf.cc(660)] Failed to query DMA-BUF modifiers.
[7443:7443:0414/135341.982932:ERROR:egl_dmabuf.cc(660)] Failed to query DMA-BUF modifiers.
[7443:7443:0414/135341.982940:ERROR:egl_dmabuf.cc(660)] Failed to query DMA-BUF modifiers.
(...)
```

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220412
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.2
Kernel Version: 5.17.1-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series
Version 100.0.4896.88 (openSUSE Build) stable (64-bit) (no addons; fresh profile)
Comment 1 postix 2022-04-15 14:43:51 UTC
As of [1] it looks more like a PipeWire/Chromium issue than a KWin issue. If I'm wrong, please feel to free to reopen of course! :-)

[1] https://jgrulich.cz/2022/02/16/webrtc-journey-to-make-wayland-screen-sharing-enabled-by-default/