xou816 / spot

Native Spotify client for the GNOME desktop
MIT License
2.25k stars 119 forks source link

Spot does not start #631

Closed pkosel closed 1 year ago

pkosel commented 1 year ago

Describe the bug Spot does not start.

General information:

Stack trace: If applicable, run the application from a terminal and paste relevant log output.

(process:23635): Adwaita-WARNING **: 21:56:09.256: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
thread 'main' panicked at 'assertion failed: !self.ptr.is_null()', /build/spot-0.3.3-vendor.tar.gz/gtk4/src/subclass/widget.rs:1310:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
jmc-figueira commented 1 year ago

I can confirm I have the same issue, also on NixOS (unstable), with spot version 0.3.3

xou816 commented 1 year ago

Hi! Could you try running with RUST_BACKTRACE=full to get more details? Is there the same issue with 0.4.0? It's most likely an issue with the version of Gtk not matching the one needed for spot. What version of Gtk do you have? Also, it's probably a good idea to involve the package maintainer as well, I'm not familiar with NixOS.

pkosel commented 1 year ago

I thinks it's GTK 4.8.2. See spot and gtk4 in the nixpkgs repo. I installed version 0.4.0 locally and can confirm that it is working without any issues. So, it seems to be an issue with the nix package. There's already an open PR to bump the version to 0.4.0 which should resolve this issue. Closing.

justdie386 commented 9 months ago

I seem to be having such an issue on gnome x11 with fedora i installed gtk4 and gtk4-devel and it still says the same

with the rust_backatrace=full i get this

thread 'main' panicked at 'Failed to initialize GTK', src/main.rs:92:36
stack backtrace:
   0:     0x55f1d49ffb3a - <unknown>
   1:     0x55f1d4a2817e - <unknown>
   2:     0x55f1d49fbe05 - <unknown>
   3:     0x55f1d49ff905 - <unknown>
   4:     0x55f1d4a011df - <unknown>
   5:     0x55f1d4a00f1b - <unknown>
   6:     0x55f1d4a01788 - <unknown>
   7:     0x55f1d4286b0a - <unknown>
   8:     0x55f1d4285b06 - <unknown>
   9:     0x55f1d3ed260a - <unknown>
  10:     0x55f1d430fd01 - <unknown>
  11:     0x55f1d4285b73 - <unknown>
  12:     0x55f1d408ab59 - <unknown>
  13:     0x55f1d49f346c - <unknown>
  14:     0x55f1d43111d5 - main
  15:     0x7f359fc2958a - <unknown>
  16:     0x7f359fc2964b - __libc_start_main
  17:     0x55f1d3f2a495 - <unknown>
  18:                0x0 - <unknown>