Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VENMIC] Inconveniences in Wayland on Screenshare. (I have solutions) #47

Open
3 tasks done
treviasxk opened this issue Nov 4, 2024 · 8 comments
Open
3 tasks done
Labels
bug Something isn't working electron issue this issue cant be fixed by us good first issue Good for newcomers

Comments

@treviasxk
Copy link

Discord Account

No response

Operating System

Arch Linux

Linux Only ~ Desktop Environment

KDE on Wayland

What happens when the bug or crash occurs?

Hello, I found some small bugs and the solution for them.

1 - Screenshare always shows the application and window selection screen twice to work.

Solution:
In ArchWiki (5.9.4) some versions of Electron need to add the following line command below, when adding this command, Equibope will ask for screen selection only once and then it will work.
--ozone-platform=wayland


2 - Problem with GPU memory buffer video in WebKit with Wayland, whenever sharing the screen, errors occur in the buffer, it is possible to see it by initializing Equibop through the terminal (and this error may probably be affecting performance)

image

Solution:
I found the solution here, if possible, leave this webkit flag disabled chrome://flags/#use-multi-plane-format-for-software-video, or make the commandline initialize with the program
--disable-gpu-memory-buffer-video-frames


You can avoid these problems by creating a config file for Electron, it will always start the application with the commands.
file .config/electron33-flags.conf:

--enable-features=UseOzonePlatform
--ozone-platform=wayland
--disable-gpu-memory-buffer-video-frames

but I ask that you add these command lines directly to the project, which will be better than creating this file.

What is the expected behaviour?

1 - that screenshare shows the selection only once.
2 - that the terminal does not show a buffer error.

How do you recreate this bug or crash?

1 - Start the program through the terminal.
2 - Share any screen.

Debug Logs

[37068:1104/122401.118691:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.118923:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.118998:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.119235:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.119320:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.153543:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.153652:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.153883:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.153937:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.154092:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.154134:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.188364:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.188441:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.188562:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.188600:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.188721:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.188760:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.221831:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.221932:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.222176:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.222235:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.222386:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.222428:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.257428:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.257546:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.257749:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.257805:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.258070:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.258134:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.294199:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.294331:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.294702:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.294805:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.295054:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.295140:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.329988:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.330089:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.330246:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.330287:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.330420:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.330466:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.362400:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.362481:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.362622:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.362671:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.362810:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.362841:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
^C[37068:1104/122401.397457:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.397642:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.397847:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.397934:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.398363:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.398853:ERROR:gpu_channel.cc(503)] Buffer Handle is null.

Request Agreement

  • I have searched the existing issues and found no similar issue
  • I am using the latest Equibop and Equicord versions
  • This issue occurs on an official release (not just the AUR packages)
@treviasxk treviasxk added the bug Something isn't working label Nov 4, 2024
@refurbishing refurbishing added the good first issue Good for newcomers label Nov 4, 2024
@refurbishing
Copy link
Member

refurbishing commented Nov 5, 2024

I have experience the same and as it also happens on Vesktop, however this seems to be a system-wise issue and not related to venmic/electron (???).
as explained by Ven itself
image
even though im not sure about this statement, it could maybe actually be a problem with the portal itself.

@refurbishing refurbishing changed the title [Bug] Small bugs in Electron with wayland in screenshare. (I have solutions) [Bug] Inconveniences in Wayland on Screenshare. (I have solutions) Nov 5, 2024
@refurbishing refurbishing added bug Something isn't working and removed bug Something isn't working labels Nov 5, 2024
@treviasxk
Copy link
Author

I don't think it's a GPU Driver problem, with X11 it works perfectly without these command lines.

I believe it's just a compatibility problem with Wayland, Electron and Webkit.

@NextWork123
Copy link

Discord Account

No response

Operating System

Arch Linux

Linux Only ~ Desktop Environment

KDE on Wayland

What happens when the bug or crash occurs?

Hello, I found some small bugs and the solution for them.

1 - Screenshare always shows the application and window selection screen twice to work.

Solution: In ArchWiki (5.9.4) some versions of Electron need to add the following line command below, when adding this command, Equibope will ask for screen selection only once and then it will work. --ozone-platform=wayland

2 - Problem with GPU memory buffer video in WebKit with Wayland, whenever sharing the screen, errors occur in the buffer, it is possible to see it by initializing Equibop through the terminal (and this error may probably be affecting performance)

image

Solution: I found the solution here, if possible, leave this webkit flag disabled chrome://flags/#use-multi-plane-format-for-software-video, or make the commandline initialize with the program --disable-gpu-memory-buffer-video-frames

You can avoid these problems by creating a config file for Electron, it will always start the application with the commands. file .config/electron33-flags.conf:

--enable-features=UseOzonePlatform
--ozone-platform=wayland
--disable-gpu-memory-buffer-video-frames

but I ask that you add these command lines directly to the project, which will be better than creating this file.

What is the expected behaviour?

1 - that screenshare shows the selection only once. 2 - that the terminal does not show a buffer error.

How do you recreate this bug or crash?

1 - Start the program through the terminal. 2 - Share any screen.

Debug Logs

[37068:1104/122401.118691:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.118923:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.118998:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.119235:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.119320:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.153543:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.153652:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.153883:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.153937:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.154092:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.154134:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.188364:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.188441:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.188562:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.188600:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.188721:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.188760:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.221831:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.221932:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.222176:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.222235:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.222386:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.222428:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.257428:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.257546:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.257749:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.257805:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.258070:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.258134:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.294199:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.294331:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.294702:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.294805:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.295054:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.295140:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.329988:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.330089:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.330246:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.330287:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.330420:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.330466:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.362400:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.362481:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.362622:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.362671:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.362810:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.362841:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
^C[37068:1104/122401.397457:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.397642:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.397847:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.397934:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
[37068:1104/122401.398363:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
[37068:1104/122401.398853:ERROR:gpu_channel.cc(503)] Buffer Handle is null.

Request Agreement

* [x]  I have searched the existing issues and found no similar issue

* [x]  I am using the latest Equibop and Equicord versions

* [x]  This issue occurs on an official release (not just the AUR packages)

isn't the proper solution you can fix with new electron beta about the terminal spam is a bug fixed of chromium you know about how we can fix like blurring on much movement?

@treviasxk
Copy link
Author

isn't the proper solution you can fix with new electron beta about the terminal spam is a bug fixed of chromium you know about how we can fix like blurring on much movement?

I need more details, there was no blur here in Equibob.

Is blurring only occurring in Wayland for you? In all electron apps?

@treviasxk

This comment was marked as off-topic.

@refurbishing

This comment was marked as off-topic.

@NextWork123
Copy link

isn't the proper solution you can fix with new electron beta about the terminal spam is a bug fixed of chromium you know about how we can fix like blurring on much movement?

I need more details, there was no blur here in Equibob.

Is blurring only occurring in Wayland for you? In all electron apps?

on vesktop when i screen share like a game or other it can blurry i think is a bitrate thing idk

@treviasxk
Copy link
Author

on vesktop when i screen share like a game or other it can blurry i think is a bitrate thing idk

Yes, I also think it could be the bits, look at the plugins installed, there is a plugin that is Webscreensharefixes, check if activated or deactivated it solves anything.

image

bit drops happen due to 2 factors, 1-internet, 2-the hardware can't handle it.

Share the screen of a video that is playing and see if the bits remain stable. If so, it is because your game is very heavy and is using all of your hardware. In this case, you would have to reduce the graphics and lock the FPS.

@refurbishing refurbishing added the electron issue this issue cant be fixed by us label Feb 3, 2025
@refurbishing refurbishing changed the title [Bug] Inconveniences in Wayland on Screenshare. (I have solutions) [VENMIC] Inconveniences in Wayland on Screenshare. (I have solutions) Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working electron issue this issue cant be fixed by us good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants