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

[Wayland] not able to resize window and strange cursor on Gnome Wayland #96

Closed
Mershl opened this issue Oct 6, 2024 · 37 comments
Closed

Comments

@Mershl
Copy link

Mershl commented Oct 6, 2024

576b5fb enabled Wayland support by default. On Gnome 47 (Wayland session, Fedora 41, AMDGPU) this shows two issues:

  • the WebCord window starts rather small and is not resizeableable at any of the four corners or edges
  • the cursor is small and pixelated while hovering the WebCord window compared to the default Gnome cursor

I'm not using fractional scaling, or any display scaling for that matter.

@SpidFightFR
Copy link
Collaborator

576b5fb enabled Wayland support by default. On Gnome 47 (Wayland session, Fedora 41, AMDGPU) this shows two issues:

* the WebCord window starts rather small and is not resizeableable at any of the four corners or edges

* the cursor is small and pixelated while hovering the WebCord window compared to the default Gnome cursor

I'm not using fractional scaling, or any display scaling for that matter.

That's weird, i don't see that issue although i'm seeing another one with the filepicker....
Did you try removing $HOME/.var/app/io.github.spacingbat3.webcord/config/WebCord/windowState.json , before reloading the app ?

@SpidFightFR
Copy link
Collaborator

SpidFightFR commented Oct 7, 2024

If that doesn't work try disabling fallback-x11, using either the cli or a tool like flatseal, if you're on wayland only ?

@Mershl
Copy link
Author

Mershl commented Oct 7, 2024

Did you try removing $HOME/.var/app/io.github.spacingbat3.webcord/config/WebCord/windowState.json , before reloading the app ?

Removing windowState before reloading does not seem to affect the two issues.

If that doesn't work try disabling fallback-x11, using either the cli or a tool like flatseal

Disabling fallback-x11 does not seem to affect the two issues.

if you're on wayland only ?

This is on Fedora 41 Workstation (Gnome). Xwayland is available, but there's no longer an Xorg session.

For completeness: disabling the socket wayland again (basically reverting the commit) fixes both issues.

@SpidFightFR
Copy link
Collaborator

For completeness: disabling the socket wayland again (basically reverting the commit) fixes both issues.

By doing that you stick with xwayland instead of a native wayland execution. I wouldn't advise it.

@Mershl
Copy link
Author

Mershl commented Oct 7, 2024

By doing that you stick with xwayland instead of a native wayland execution. I wouldn't advise it.

I agree in general, though on Fedora 41 / Gnome 47 WebCord Flatpak is not practically useable while the wayland socket is enabled.

@SpidFightFR
Copy link
Collaborator

SpidFightFR commented Oct 8, 2024

By doing that you stick with xwayland instead of a native wayland execution. I wouldn't advise it.

I agree in general, though on Fedora 41 / Gnome 47 WebCord Flatpak is not practically useable while the wayland socket is enabled.

I doubt it's a problem caused by wayland, it works nicely on wayland on my side, even with the update.

I'd rather think it's a problem caused by gnome or it's a webcord problem directly. Please make sure webcord has read-only access to your cursors and themes directories.

If that solves the issue then i'll consider adsing those to the flatpak.

@j20001970
Copy link
Contributor

j20001970 commented Oct 10, 2024

576b5fb enabled Wayland support by default. On Gnome 47 (Wayland session, Fedora 41, AMDGPU) this shows two issues:

Commit author here, can confirm that wayland-native Webcord on Gnome 47 cannot resize window, and cursor size is different from outside of it. I tested wayland Webcord on Plasma and it worked without issue when creating the PR, but didn't test on Gnome.

Can you try copying /usr/share/icons to ~/.local/share and override --filesystem=xdg-data/icons:ro and see if cursor appearance can be fixed? That worked for me but window still cannot resize.

EDIT: Can you try #98 to see whether the cursor problem can be fixed by this?

@Mershl
Copy link
Author

Mershl commented Oct 10, 2024

EDIT: Can you try #98 to see whether the cursor problem can be fixed by this?

can confirm, #98 fixes the cursor issue on Fedora 41, Gnome Wayland

@Mershl Mershl changed the title [Wayland] not able to resize window and strange cursor [Wayland] not able to resize window and strange cursor on Gnome Wayland Oct 10, 2024
@SpidFightFR
Copy link
Collaborator

#98 merged. It will be up in a few moments.

@Mershl
Copy link
Author

Mershl commented Oct 10, 2024

The window resize issue is not affected by #98. The window cannot be resized and remains its initial size on Gnome Wayland.

@SpidFightFR SpidFightFR reopened this Oct 10, 2024
@SpidFightFR
Copy link
Collaborator

The window resize issue is not affected by #98. The window cannot be resized and remains its initial size on Gnome Wayland.

hard to say that way. Are you able to launch webcord via the terminal, and record the issue please ?
or give us log for that matter ?

@SpidFightFR
Copy link
Collaborator

At least logs, they are the only way i can help you 😅

@Mershl
Copy link
Author

Mershl commented Oct 10, 2024

Are you able to launch webcord via the terminal, and record the issue please ?

The window edges and corners are not grabable when starting Webcord in Native Wayland mode on Gnome Wayland.
The mouse cursor doesn't turn into the grab icon. clicking and dragging anyway does not show any reaction.

This behaviour was confirmed by @j20001970 as well. KDE Wayland is not affected by this issue. It affects only Gnome Wayland.

$ flatpak run io.github.spacingbat3.webcord
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[... waitpid lines removed ...]
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/205106.143106:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/205106.573957:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] Application is up-to-date!

@SpidFightFR
Copy link
Collaborator

Are you able to launch webcord via the terminal, and record the issue please ?

The window edges and corners are not grabable when starting Webcord in Native Wayland mode on Gnome Wayland. The mouse cursor doesn't turn into the grab icon. clicking and dragging anyway does not show any reaction.

This behaviour was confirmed by @j20001970 as well. KDE Wayland is not affected by this issue. It affects only Gnome Wayland.

$ flatpak run io.github.spacingbat3.webcord
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[... waitpid lines removed ...]
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/205106.143106:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/205106.573957:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] Application is up-to-date!

I'm currently trying to search for an answer.
In the meantime, may you try running this command please:

flatpak run io.github.spacingbat3.webcord --ignore-gpu-blocklist --enable-features=UseOzonePlatform,VaapiVideoDecoder,WebRTCPipeWireCapturer,smooth-scrolling,gpu-rasterization,zero-copy --ozone-platform=wayland

(it's the one i use with recommended settings for wayland, it will prolly not resolve your issue but while i search for an answer, it will minimize possible bugs while debugging)

@SpidFightFR
Copy link
Collaborator

Are you able to launch webcord via the terminal, and record the issue please ?

The window edges and corners are not grabable when starting Webcord in Native Wayland mode on Gnome Wayland. The mouse cursor doesn't turn into the grab icon. clicking and dragging anyway does not show any reaction.

This behaviour was confirmed by @j20001970 as well. KDE Wayland is not affected by this issue. It affects only Gnome Wayland.

$ flatpak run io.github.spacingbat3.webcord
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[... waitpid lines removed ...]
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/205106.143106:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/205106.573957:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] Application is up-to-date!

After looking at your logs, nothing's weird on your side that's for sure.
I need to make sure you indeed disabled both x11 and x11-fallback permissions in flatseal or any tools you use for handling permissions.
If so, may you try uninstalling webcord (you don't need to purge the files), then reinstalling the test branch i currently use here:

flatpak install --user https://dl.flathub.org/build-repo/135881/io.github.spacingbat3.webcord.flatpakref

I noticed weird behaviors on the latest release of webcord, upstream is aware of it, the latest release should work but it would be a neat way to test if it's a release issue.

If not, it can only mean it's related to the run.sh script, to which i'll make change if needed.

please keep me in touch.
✌️

@SpidFightFR
Copy link
Collaborator

SpidFightFR commented Oct 10, 2024

Alright last message for today on my side (i'll continue to researches tomorrow).

Here is the link to the previous version of the run.sh script, which the flatpak uses in order to launch webcord.

It's dirty but try replacing the one located in
$HOME/.local/share/flatpak/app/io.github.spacingbat3.webcord/<arch>/<branch>/<shasum>/files/bin/run.sh with the one provided in the link. (after making a backup of the original one, just in case)

If it solves the issue, i'll just put a check for gnome desktops with a fix (more or less dirty depending on what answers i got).

If the original script doesn't work despite all the tests stated above, then i have no other choice, but i can't help you there.

@Mershl
Copy link
Author

Mershl commented Oct 10, 2024

please keep me in touch.

But of course, thank you for your excellent support @SpidFightFR

I need to make sure you indeed disabled both x11 and x11-fallback permissions in flatseal or any tools you use for handling permissions.

I reset all changes just to be sure and disabled only x11 and x11-fallback via Flatseal.
The Gnome debugging tools (lg) also confirm that Webcord produces a Wayland native window.
image

flatpak run io.github.spacingbat3.webcord --ignore-gpu-blocklist --enable-features=UseOzonePlatform,VaapiVideoDecoder,WebRTCPipeWireCapturer,smooth-scrolling,gpu-rasterization,zero-copy --ozone-platform=wayland

The resize issue is not affected by the flags. The log does not show additional hints.

flatpak install --user https://dl.flathub.org/build-repo/135881/io.github.spacingbat3.webcord.flatpakref

$ flatpak install --user https://dl.flathub.org/build-repo/135881/io.github.spacingbat3.webcord.flatpakref
$ flatpak run io.github.spacingbat3.webcord//test
[6 zypak-helper] Wait found events, but sd-event found none
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[... waitpid lines removed ...]
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/224257.070183:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/224257.486718:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] New application version is available! (v4.10.1 → v4.10.2)

(webcord:66): libnotify-WARNING **: 22:42:57.724: Running in confined mode, using Portal notifications. Some features and hints won't be supported
[6 preload-host-spawn-strategy] Warning: waitpid override ignores groups

The resize issue is not affected by repo build 135881. The log shows some additional lines, see above.

@SpidFightFR
Copy link
Collaborator

please keep me in touch.

But of course, thank you for your excellent support @SpidFightFR

I need to make sure you indeed disabled both x11 and x11-fallback permissions in flatseal or any tools you use for handling permissions.

I reset all changes just to be sure and disabled only x11 and x11-fallback via Flatseal. The Gnome debugging tools (lg) also confirm that Webcord produces a Wayland native window. image

flatpak run io.github.spacingbat3.webcord --ignore-gpu-blocklist --enable-features=UseOzonePlatform,VaapiVideoDecoder,WebRTCPipeWireCapturer,smooth-scrolling,gpu-rasterization,zero-copy --ozone-platform=wayland

The resize issue is not affected by the flags. The log does not show additional hints.

flatpak install --user https://dl.flathub.org/build-repo/135881/io.github.spacingbat3.webcord.flatpakref

$ flatpak install --user https://dl.flathub.org/build-repo/135881/io.github.spacingbat3.webcord.flatpakref
$ flatpak run io.github.spacingbat3.webcord//test
[6 zypak-helper] Wait found events, but sd-event found none
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[... waitpid lines removed ...]
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/224257.070183:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/224257.486718:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] New application version is available! (v4.10.1 → v4.10.2)

(webcord:66): libnotify-WARNING **: 22:42:57.724: Running in confined mode, using Portal notifications. Some features and hints won't be supported
[6 preload-host-spawn-strategy] Warning: waitpid override ignores groups

The resize issue is not affected by repo build 135881. The log shows some additional lines, see above.

Okay thanks for making sure !

Welp, fingers crossed for the run script...!

@Mershl
Copy link
Author

Mershl commented Oct 10, 2024

Here is the link to the previous version of the run.sh script, which the flatpak uses in order to launch webcord.
It's dirty but try replacing the one located in
$HOME/.local/share/flatpak/app/io.github.spacingbat3.webcord////files/bin/run.sh with the one provided in the link. (after making a backup of the original one, just in case)

$ cp ~/Downloads/run.sh ~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh
cp: overwrite '~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh'? y
$ chmod +x ~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh
$ flatpak run io.github.spacingbat3.webcord//test
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/224718.364314:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/224718.771503:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] New application version is available! (v4.10.1 → v4.10.2)

(webcord:66): libnotify-WARNING **: 22:47:19.077: Running in confined mode, using Portal notifications. Some features and hints won't be supported

sorry @SpidFightFR. this does not show an effect on the resize issue on Gnome Wayland.

@SpidFightFR
Copy link
Collaborator

SpidFightFR commented Oct 10, 2024

Here is the link to the previous version of the run.sh script, which the flatpak uses in order to launch webcord.
It's dirty but try replacing the one located in
$HOME/.local/share/flatpak/app/io.github.spacingbat3.webcord////files/bin/run.sh with the one provided in the link. (after making a backup of the original one, just in case)

$ cp ~/Downloads/run.sh ~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh
cp: overwrite '~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh'? y
$ chmod +x ~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh
$ flatpak run io.github.spacingbat3.webcord//test
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/224718.364314:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/224718.771503:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] New application version is available! (v4.10.1 → v4.10.2)

(webcord:66): libnotify-WARNING **: 22:47:19.077: Running in confined mode, using Portal notifications. Some features and hints won't be supported

sorry @SpidFightFR. this does not show an effect on the resize issue on Gnome Wayland.

dangit, that's crazy...!
try completely purging webcord and re-installing the latest release again, then try again with the script method, please ?
*just in case, if needed:

flatpak uninstall --delete-data io.github.spacingbat3.webcord

Right now, it's pretty bad, it means that even with the state of Webcord before the 2 commits (for the version bump and the wayland fix) webcord is broken... :/

@SpidFightFR
Copy link
Collaborator

Also which version of gnome do you use please ?

@SpidFightFR
Copy link
Collaborator

If nothing works, try purging webcord (again - sorry) and try up this build please :

flatpak install --user https://dl.flathub.org/build-repo/135875/io.github.spacingbat3.webcord.flatpakref

(the build i tried as an attempt to fix another issue i got, but unrelated to yours, it reverts 576b5fb in the built app itself (purging what seems to be the root cause of your issue).

@Mershl
Copy link
Author

Mershl commented Oct 10, 2024

Here is the link to the previous version of the run.sh script, which the flatpak uses in order to launch webcord.
It's dirty but try replacing the one located in
$HOME/.local/share/flatpak/app/io.github.spacingbat3.webcord////files/bin/run.sh with the one provided in the link. (after making a backup of the original one, just in case)

$ cp ~/Downloads/run.sh ~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh
cp: overwrite '~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh'? y
$ chmod +x ~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh
$ flatpak run io.github.spacingbat3.webcord//test
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/224718.364314:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/224718.771503:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] New application version is available! (v4.10.1 → v4.10.2)

(webcord:66): libnotify-WARNING **: 22:47:19.077: Running in confined mode, using Portal notifications. Some features and hints won't be supported

sorry @SpidFightFR. this does not show an effect on the resize issue on Gnome Wayland.

dangit, that's crazy...! try completely purging webcord and re-installing the latest release again, then try again with the script method, please ? *just in case, if needed:

flatpak uninstall --delete-data io.github.spacingbat3.webcord

Right now, it's pretty bad, it means that even with the state of Webcord before the 2 commits (for the version bump and the wayland fix) webcord is broken... :/

$ flatpak remove webcord
Similar installed refs found for ‘webcord’:

   1) app/io.github.spacingbat3.webcord/x86_64/stable (system)
   2) app/io.github.spacingbat3.webcord/x86_64/test (user)
   3) All of the above

Which do you want to use (0 to abort)? [0-3]: 2


        ID                                    Branch         Op
 1. [-] io.github.spacingbat3.webcord         test           r

Uninstall complete.
$ flatpak remove webcord --delete-data
Found installed ref ‘app/io.github.spacingbat3.webcord/x86_64/stable’ (system). Is this correct? [Y/n]: 


        ID                                    Branch         Op
 1. [-] io.github.spacingbat3.webcord         stable         r

Uninstall complete.
Delete data for io.github.spacingbat3.webcord? [y/n]: y
$ flatpak install webcord
        ID                                  Branch       Op      Remote       Download
 1. [✓] io.github.spacingbat3.webcord       stable       i       flathub      101,4 MB / 110,1 MB

Installation complete.
$ sudo cp ~/Downloads/run.sh /var/lib/flatpak/app/io.github.spacingbat3.webcord/x86_64/stable/adce348565ea7f84dd1a74c41608ef7fb47a04eb8048e8f531f069edab6c722f/files/bin/run.sh
$ sudo chmod +x /var/lib/flatpak/app/io.github.spacingbat3.webcord/x86_64/stable/adce348565ea7f84dd1a74c41608ef7fb47a04eb8048e8f531f069edab6c722f/files/bin/run.sh
$ flatpak run io.github.spacingbat3.webcord
[3 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[3 zypak-helper] (it appears to be a shell script?)
[3 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[3 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[63 zypak-helper] Using spawn strategy test 1 as set by environment
[63:1010/230123.607459:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[114:1010/230124.039485:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] Application is up-to-date!

latest flathub webcord + linked run.sh does not affect the Gnome Wayland resize issue.

Also which version of gnome do you use please ?

Gnome 47.0 (Fedora Workstation 41)

@Mershl
Copy link
Author

Mershl commented Oct 10, 2024

If nothing works, try purging webcord (again - sorry) and try up this build please :

flatpak install --user https://dl.flathub.org/build-repo/135875/io.github.spacingbat3.webcord.flatpakref

(the build i tried as an attempt to fix another issue i got, but unrelated to yours, it reverts 576b5fb in the built app itself (purging what seems to be the root cause of your issue).

$ flatpak install --user https://dl.flathub.org/build-repo/135875/io.github.spacingbat3.webcord.flatpakref
error: No such ref 'app/io.github.spacingbat3.webcord/x86_64/test' in remote webcord-origin

@SpidFightFR
Copy link
Collaborator

Here is the link to the previous version of the run.sh script, which the flatpak uses in order to launch webcord.
It's dirty but try replacing the one located in
$HOME/.local/share/flatpak/app/io.github.spacingbat3.webcord////files/bin/run.sh with the one provided in the link. (after making a backup of the original one, just in case)

$ cp ~/Downloads/run.sh ~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh
cp: overwrite '~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh'? y
$ chmod +x ~/.local/share/flatpak/app/io.github.spacingbat3.webcord/x86_64/test/dc2bfde5d3ad6974c58ba07a97e8662f5d61c0aead4fc3b0c87fd41055a85ca5/files/bin/run.sh
$ flatpak run io.github.spacingbat3.webcord//test
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/224718.364314:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/224718.771503:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] New application version is available! (v4.10.1 → v4.10.2)

(webcord:66): libnotify-WARNING **: 22:47:19.077: Running in confined mode, using Portal notifications. Some features and hints won't be supported

sorry @SpidFightFR. this does not show an effect on the resize issue on Gnome Wayland.

dangit, that's crazy...! try completely purging webcord and re-installing the latest release again, then try again with the script method, please ? *just in case, if needed:

flatpak uninstall --delete-data io.github.spacingbat3.webcord

Right now, it's pretty bad, it means that even with the state of Webcord before the 2 commits (for the version bump and the wayland fix) webcord is broken... :/

$ flatpak remove webcord
Similar installed refs found for ‘webcord’:

   1) app/io.github.spacingbat3.webcord/x86_64/stable (system)
   2) app/io.github.spacingbat3.webcord/x86_64/test (user)
   3) All of the above

Which do you want to use (0 to abort)? [0-3]: 2


        ID                                    Branch         Op
 1. [-] io.github.spacingbat3.webcord         test           r

Uninstall complete.
$ flatpak remove webcord --delete-data
Found installed ref ‘app/io.github.spacingbat3.webcord/x86_64/stable’ (system). Is this correct? [Y/n]: 


        ID                                    Branch         Op
 1. [-] io.github.spacingbat3.webcord         stable         r

Uninstall complete.
Delete data for io.github.spacingbat3.webcord? [y/n]: y
$ flatpak install webcord
        ID                                  Branch       Op      Remote       Download
 1. [✓] io.github.spacingbat3.webcord       stable       i       flathub      101,4 MB / 110,1 MB

Installation complete.
$ sudo cp ~/Downloads/run.sh /var/lib/flatpak/app/io.github.spacingbat3.webcord/x86_64/stable/adce348565ea7f84dd1a74c41608ef7fb47a04eb8048e8f531f069edab6c722f/files/bin/run.sh
$ sudo chmod +x /var/lib/flatpak/app/io.github.spacingbat3.webcord/x86_64/stable/adce348565ea7f84dd1a74c41608ef7fb47a04eb8048e8f531f069edab6c722f/files/bin/run.sh
$ flatpak run io.github.spacingbat3.webcord
[3 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[3 zypak-helper] (it appears to be a shell script?)
[3 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[3 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[63 zypak-helper] Using spawn strategy test 1 as set by environment
[63:1010/230123.607459:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[114:1010/230124.039485:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] Application is up-to-date!

latest flathub webcord + linked run.sh does not affect the Gnome Wayland resize issue.

Also which version of gnome do you use please ?

Gnome 47.0 (Fedora Workstation 41)

Noted
It looks bad ngl, according to my observations we slowly tend on a gnome issue...

The webcord client doesn't even see you operating the window that's weird...

@SpidFightFR
Copy link
Collaborator

If nothing works, try purging webcord (again - sorry) and try up this build please :

flatpak install --user https://dl.flathub.org/build-repo/135875/io.github.spacingbat3.webcord.flatpakref

(the build i tried as an attempt to fix another issue i got, but unrelated to yours, it reverts 576b5fb in the built app itself (purging what seems to be the root cause of your issue).

$ flatpak install --user https://dl.flathub.org/build-repo/135875/io.github.spacingbat3.webcord.flatpakref
error: No such ref 'app/io.github.spacingbat3.webcord/x86_64/test' in remote webcord-origin

argh... One second pls 😅

@Mershl
Copy link
Author

Mershl commented Oct 10, 2024

$ flatpak remove webcord --delete-data
$ flatpak install --user https://dl.flathub.org/build-repo/136481/io.github.spacingbat3.webcord.flatpakref
$ flatpak run --socket=wayland io.github.spacingbat3.webcord//test
[6 zypak-helper] /app/bin/webcord/usr/bin/webcord is not an ELF file
[6 zypak-helper] (it appears to be a shell script?)
[6 zypak-helper] WARNING: supplied target /app/bin/webcord/usr/bin/webcord does not look like a valid Chromium binary!
[6 zypak-helper] Zypak needs to be called directly on the executable *binary*, not any wrappers.
[66 zypak-helper] Using spawn strategy test 1 as set by environment
[66:1010/233324.399337:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[116:1010/233324.823619:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=GPU_READ_CPU_READ_WRITE
[WebSocket] Listening at port 6463.
[UPDATE] New application version is available! (v4.10.1 → v4.10.2)

(webcord:66): libnotify-WARNING **: 23:33:25.044: Running in confined mode, using Portal notifications. Some features and hints won't be supported

Does not show an effect on the resize issue on Gnome Wayland.

This might very well be a Gnome issue. Unfortunately I don't have older Gnome releases than 47 available right now for testing.

@j20001970
Copy link
Contributor

If we could reproduce the bug in non-flatpak environment, I think it's better to report this problem upstream to have better discussion.

I tried to run wayland-native webcord with appimage-extracted files directly on Gnome 47 and non-resizeable window problem persists, @Mershl can you try to see if you have the same situation?

@SpidFightFR
Copy link
Collaborator

If we could reproduce the bug in non-flatpak environment, I think it's better to report this problem upstream to have better discussion.

I tried to run wayland-native webcord with appimage-extracted files directly on Gnome 47 and non-resizeable window problem persists, @Mershl can you try to see if you have the same situation?

currently that's what makes the most sense to me.
I observed that webcord doesn't register the "gabbing" mechanism, i guess it's a WM issue, if i had to guess, it would be linked to Mutter or something.

@Mershl
Copy link
Author

Mershl commented Oct 14, 2024

Sorry for the delay. non-flatpak Webcord launched with --ignore-gpu-blocklist --enable-features=UseOzonePlatform,VaapiVideoDecoder,WebRTCPipeWireCapturer,smooth-scrolling,gpu-rasterization,zero-copy --ozone-platform=wayland on Gnome 47 Wayland does not show the cursor issue, but the resize issue is identical to flatpak Webcord.

@SpidFightFR
Copy link
Collaborator

Sorry for the delay. non-flatpak Webcord launched with --ignore-gpu-blocklist --enable-features=UseOzonePlatform,VaapiVideoDecoder,WebRTCPipeWireCapturer,smooth-scrolling,gpu-rasterization,zero-copy --ozone-platform=wayland on Gnome 47 Wayland does not show the cursor issue, but the resize issue is identical to flatpak Webcord.

the cursor issue wasn't fixed on flatpak by #98 ?

@SpidFightFR
Copy link
Collaborator

As for the resizing issue, if it's reproducible on a non-flatpak install, then it's either an upstream webcord issue, or a gnome (mutter) issue...

@Mershl
Copy link
Author

Mershl commented Oct 15, 2024

Sorry for the delay. non-flatpak Webcord launched with --ignore-gpu-blocklist --enable-features=UseOzonePlatform,VaapiVideoDecoder,WebRTCPipeWireCapturer,smooth-scrolling,gpu-rasterization,zero-copy --ozone-platform=wayland on Gnome 47 Wayland does not show the cursor issue, but the resize issue is identical to flatpak Webcord.

the cursor issue wasn't fixed on flatpak by #98 ?

The cursor issue was fixed by #98 for flatpak Webcord, and is not present to begin with in non-flatpak Webcord.

@SpidFightFR
Copy link
Collaborator

Sorry for the delay. non-flatpak Webcord launched with --ignore-gpu-blocklist --enable-features=UseOzonePlatform,VaapiVideoDecoder,WebRTCPipeWireCapturer,smooth-scrolling,gpu-rasterization,zero-copy --ozone-platform=wayland on Gnome 47 Wayland does not show the cursor issue, but the resize issue is identical to flatpak Webcord.

the cursor issue wasn't fixed on flatpak by #98 ?

The cursor issue was fixed by #98 for flatpak Webcord, and is not present to begin with in non-flatpak Webcord.

Alright... Welp... I think you should make an issue on Gnome's gitlab - prolly on the mutter side, since it's related to window management. I would say it's there that people will be able to help you best.

If there's anything i can do to help you more, if people over there ask to tweak permissions or something, please tell us !

take care.
✌️

@SpidFightFR SpidFightFR closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
@Mershl
Copy link
Author

Mershl commented Nov 1, 2024

Feedback from GNOME issue tracker: https://gitlab.gnome.org/GNOME/mutter/-/issues/3754#note_2254327

All wayland compositors without server side decorations seem to hit this issue. This will most likely need to be fixed on electron side.

@SpidFightFR
Copy link
Collaborator

Feedback from GNOME issue tracker: https://gitlab.gnome.org/GNOME/mutter/-/issues/3754#note_2254327

All wayland compositors without server side decorations seem to hit this issue. This will most likely need to be fixed on electron side.

I guess the electron version used is glitched cuz there's also a problem with portals on flatpak (un-noticable on gnome since, the problem is that electron uses GTK filepicker, so gnome's filepicker, ALL THE TIME, even on kde).

Refs:

@EmptyVisual
Copy link

The issue is with Electron specifically. Electron v32 introduced an issue with resizing while running on the wayland backend (does not affect apps running in xwayland) which is also still present in current stable v33 and development builds of Electron. See issues below

The resize issue
electron/electron#44543 (comment)

Reverting to to v31 to use the wayland backend is not an option either, as it suffers from the CSD border issue
electron/electron#42894 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants