Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942950 - net-im/discord with USE=wayland spams system log
Summary: net-im/discord with USE=wayland spams system log
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Randall
URL: https://issues.chromium.org/issues/33...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-06 13:13 UTC by crabbed halo ablution
Modified: 2024-11-07 19:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix wayland log spam with launch paramter (fix.patch,481 bytes, patch)
2024-11-06 13:15 UTC, crabbed halo ablution
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description crabbed halo ablution 2024-11-06 13:13:55 UTC
When Wayland is enabled, system log will be full of messages like this:
[3718270:1106/133951.028741:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[3718270:1106/133951.028891:ERROR:gpu_channel.cc(502)] Buffer Handle is null.


The root cause is a chromium issue (see URL) that is fixed in Chromium 131.0.6738.0.
Electron e33 is still only at Chromium 130.0.6723.44 (see: https://www.electronjs.org/blog/electron-33-0 ) and discord is still only at Electron e32
There is a workaround: launch discord with --disable-gpu-memory-buffer-video-frames command-line argument when wayland is enabled. 

I propose we add --disable-gpu-memory-buffer-video-frames to the launch parameters of discord when wayland is used till the electron used in discord catches up with latest Chromium.

Reproducible: Always
Comment 1 crabbed halo ablution 2024-11-06 13:15:59 UTC
Created attachment 907998 [details, diff]
Fix wayland log spam with launch paramter

This is the diff of launcher.sh that fixes the problem for me.
Comment 2 Larry the Git Cow gentoo-dev 2024-11-07 19:39:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10edd70862670c0b6a9eb4930e6951192537b27e

commit 10edd70862670c0b6a9eb4930e6951192537b27e
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2024-11-07 19:38:42 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2024-11-07 19:38:42 +0000

    net-im/discord: Fix system log spam on Wayland
    
    Closes: https://bugs.gentoo.org/942950
    
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 net-im/discord/{discord-0.0.73.ebuild => discord-0.0.73-r1.ebuild} | 0
 net-im/discord/files/launcher.sh                                   | 1 +
 2 files changed, 1 insertion(+)