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

No screen sharing, work for individual windows but not the screen it self #75

Open
olafkfreund opened this issue Aug 8, 2024 · 2 comments

Comments

@olafkfreund
Copy link

Thanks for a great desktop.

Have an issue with the screen sharing. Slack and google chrome running with wayland flags do not share the screen.
I can see the screen share dialog and choose the screen but it does not share it.
Here is the log it self:

From google-chrome:

Aug 08 00:02:39 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:02 razer playerctld[3136]: could not get properties for active player: GDBus.Error:org.freedesktop.DBus.Error.Failed: error occurred in GetAll
Aug 08 00:03:02 razer playerctld[3136]: could not get properties for active player: GDBus.Error:org.freedesktop.DBus.Error.Failed: error occurred in GetAll
Aug 08 00:03:02 razer bluetoothd[1531]: Player registered: sender=:1.50 path=/_1_374
Aug 08 00:03:07 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:08 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:11 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:27 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:27 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:29 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:31 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:33 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:35 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:35 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:48 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:54 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:54 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:03:58 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:04:29 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:04:29 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:04:58 razer pipewire[3329]: pw.node: (alsa_output.pci-0000_01_00.1.hdmi-stereo-63) graph xrun (0 suppressed)
Aug 08 00:04:58 razer pipewire[3329]: pw.node: (Google Chrome-53) xrun state:0x7fd53df44008 pending:0/1 s:2398624552030 a:2398614302274 f:2398614323954 waiting:18446744073699301860 process:21680 status:triggered
Aug 08 00:04:58 razer pipewire[3329]: pw.node: (Google Chrome-149) xrun state:0x7fd53ddc4008 pending:0/1 s:2398624552030 a:2398614324657 f:2398614333209 waiting:18446744073699324243 process:8552 status:triggered
Aug 08 00:05:28 razer systemd[3120]: Started Application launched by COSMIC.
Aug 08 00:05:30 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:05:42 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer pipewire[3329]: pw.node: (slack-130) xrun state:0x7fd53dcf5008 pending:1/1 s:2442552188366 a:2442552273986 f:2442546917349 waiting:85620 process:18446744073704194979 status:awake (266 suppressed)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:42 razer cosmic-session[3151]: [2024-08-07T23:05:42Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:46 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:05:47 razer cosmic-session[3151]: [2024-08-07T23:05:47Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:47 razer cosmic-session[3151]: [2024-08-07T23:05:47Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:47 razer pipewire[3329]: pw.node: (slack-114) xrun state:0x7fd53dd9f008 pending:1/1 s:2447448071161 a:2447448163488 f:2447442791224 waiting:92327 process:18446744073704179352 status:awake (15 suppressed)
Aug 08 00:05:47 razer cosmic-session[3151]: [2024-08-07T23:05:47Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:05:47 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)

and here is from slack client:

ug 08 00:56:16 razer .cosmic-comp-wrapped[3185]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 64 > 32)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer pipewire[3329]: pw.node: (slack-163) xrun state:0x7fd53dd63008 pending:1/1 s:5477256597498 a:5477256666960 f:5477251337846 waiting:69462 process:18446744073704222502 status:awake (120 suppressed)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)
Aug 08 00:56:16 razer cosmic-session[3151]: [2024-08-07T23:56:16Z ERROR xdg_desktop_portal_cosmic::screencast_thread] screencopy failed: Value(BufferConstraints)

My version of NVIDIA driver is:
560.28.03

I'm running Nixos

@olafkfreund
Copy link
Author

Just as an update to this. Screen sharing work on my laptop screen when running dual mode. Still no luck with the external one. This reminded me of a bug we had earlier in Wayland when screen sharing was not working without setting: bitdepth=10 for the external screen. Is that possible in Cosmic?

@dmac-au
Copy link

dmac-au commented Dec 19, 2024

I am still experiencing this issue on a NVIDIA laptop with external monitors. Does the attached pull request fix this issue?

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

2 participants