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

psst: displays a blank screen on KDE Wayland #220297

Open
dacioromero opened this issue Mar 9, 2023 · 15 comments
Open

psst: displays a blank screen on KDE Wayland #220297

dacioromero opened this issue Mar 9, 2023 · 15 comments
Labels
0.kind: bug Something is broken

Comments

@dacioromero
Copy link
Contributor

dacioromero commented Mar 9, 2023

Describe the bug

On KDE using Wayland the window shows a background reflecting the user's color preferences, but doesn't show any content.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install KDE
  2. Login to Plasma Wayland
  3. Launch Psst

Expected behavior

PSST should display properly as it does on other OS's.

Screenshots

image

Additional context

This had previously worked for me under Gnome Wayland before I switched to KDE and currently works under Arch with KDE Wayland. It works under XWayland with GDK_BACKEND=x11 since its GUI uses druid which depends on GTK3.

jpochyla/psst#211

Notify maintainers

@vbrandl @peterhoeg

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.2.2, NixOS, 23.05 (Stoat), 23.05.20230307.c707238`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos"`
 - channels(xxx): `"home-manager-22.05.tar.gz"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@dacioromero dacioromero added the 0.kind: bug Something is broken label Mar 9, 2023
@peterhoeg
Copy link
Member

peterhoeg commented Mar 9, 2023 via email

@dacioromero
Copy link
Contributor Author

Sure that'd be my "firetower" configuration here. I have some local changes, so I'll get those up later today for your reference.

@dacioromero
Copy link
Contributor Author

Not sure if it's a good test, but I was able to replicate this in a VM.

@dacioromero
Copy link
Contributor Author

Just realized I made a mistake in my original issue, psst currently works on KDE Wayland not Gnome under Arch. Edited it.

@peterhoeg
Copy link
Member

peterhoeg commented Mar 14, 2023 via email

@dacioromero
Copy link
Contributor Author

Other way around: it worked on NixOS Gnome Wayland, doesn't work on NixOS KDE Wayland, and works on Arch KDE Wayland.

@peterhoeg
Copy link
Member

peterhoeg commented Mar 15, 2023 via email

@dacioromero
Copy link
Contributor Author

dacioromero commented Mar 15, 2023

This was an entirely new generation when I switched to KDE and an AMD GPU. This was the commit where I did that: dacioromero/nix-config@a412cf3.

Using a Gnome specialisation just now I was able to make psst work again, branch here: https://github.com/dacioromero/nix-config/tree/specialisations

@peterhoeg
Copy link
Member

What happens if you enable both KDE and GNOME and then just choose the DE when logging in via SDDM?

@baduhai
Copy link
Contributor

baduhai commented Mar 17, 2023

I have the same issue on Plasma Wayland.

[2023-03-17T15:54:42Z INFO  psst_gui::data::config] loading config: "/home/user/.config/Psst/config.json"
[2023-03-17T15:54:42Z INFO  psst_gui::webapi::local] parsing local tracks: "/home/user/.config/spotify/Users/haiwilliam0-user/local-files.bnk"

(psst-gui:15001): Gtk-CRITICAL **: 12:54:42.484: gtk_widget_set_size_request: assertion 'width >= -1' failed
[2023-03-17T15:54:42Z INFO  psst_core::audio::output::cpal] using audio device: "default"
[2023-03-17T15:54:42Z INFO  psst_core::cache] using cache: "/home/user/.cache/Psst"
[2023-03-17T15:54:42Z INFO  psst_core::audio::output::cpal] opening output stream: StreamConfig { channels: 2, sample_rate: SampleRate(44100), buffer_size: Default }
[2023-03-17T15:54:42Z INFO  psst_core::session::access_token] access token expired, requesting
[2023-03-17T15:54:43Z INFO  psst_gui::data::config] saved config: "/home/user/.config/Psst/config.json"
[2023-03-17T15:54:43Z INFO  psst_gui::data::config] saved config: "/home/user/.config/Psst/config.json"

@peterhoeg
Copy link
Member

Strangely I'm seeing this too. Are you by chance still having this problem? Can you launch it from a terminal (works for me when I do that)?

@dacioromero
Copy link
Contributor Author

Unfortunately that doesn't help, the issue is the same as when I first reported it

@toxx1220
Copy link

Same issue here. Plasma6 with Wayland
(psst-gui:12137): Gtk-CRITICAL **: 00:26:51.284: gtk_window_set_default_size: assertion 'width >= -1' failed
image
image
Package: psst-unstable-2024-04-01

@dacioromero
Copy link
Contributor Author

dacioromero commented Jun 26, 2024

I was reminded of this issue and found something related on druid's repo linebender/druid#2396

Adding "x11" to druid-shell's features in psst-gui/Cargo.toml, regenerating the lockfile, producing a patch file, and modifying the derivation makes psst work on KDE Wayland. Alternatively as mentioned before GDK_BACKEND=x11 also works.

EDIT: My branch for the fix: https://github.com/dacioromero/nixpkgs/tree/psst-x11. I'm not sure which route is better or if this should be fixed upstream

@SuperSandro2000
Copy link
Member

This is clearly an upstream issue. Can you upstream your change, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

5 participants