KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
30.83k stars 1.28k forks source link

Spotube crashes on start after updating from 3.7.0->3.8.1: Unknown GPU error #1904

Closed abrushworkriot closed 1 month ago

abrushworkriot commented 2 months ago

Is there an existing issue for this? (Please read the description)

Current Behavior

When I launch Spotube in console I get: ac: Unknown GPU, using 0 for raster_config Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered) fish: Job 1, 'spotube' terminated by signal SIGSEGV (Address boundary error)

Expected Behavior

App should launch successfully

Steps to reproduce

No response

Logs

Logs ``` ```

Operating System

Linux Desktop (Wayland)

Spotube version

3.8.1

Installation source

GitHub Releases (Binary)

Additional information

Downloaded from nixpkgs unstable branch.

          ▗▄▄▄       ▗▄▄▄▄    ▄▄▄▖            username@nixos
          ▜███▙       ▜███▙  ▟███▛            -----------
           ▜███▙       ▜███▙▟███▛             OS: NixOS 24.05.4997.086b448a5d54 (Uakari) x86_64
            ▜███▙       ▜██████▛              Host: LENOVO LNVNB161216
     ▟█████████████████▙ ▜████▛     ▟▙        Kernel: 6.6.51
    ▟███████████████████▙ ▜███▙    ▟██▙       Uptime: 1 day, 21 hours, 51 mins
           ▄▄▄▄▖           ▜███▙  ▟███▛       Packages: 2766 (nix-system), 664 (nix-user), 159 (nix-default)
          ▟███▛             ▜██▛ ▟███▛        Shell: bash 5.2.32
         ▟███▛               ▜▛ ▟███▛         Resolution: 1920x1080
▟███████████▛                  ▟██████████▙   DE: Hyprland (Wayland)
▜██████████▛                  ▟███████████▛   Terminal: alacritty
      ▟███▛ ▟▙               ▟███▛            CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 4.463GHz
     ▟███▛ ▟██▙             ▟███▛             GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
    ▟███▛  ▜███▙           ▝▀▀▀▀              GPU: AMD ATI Radeon RX 6600/6600 XT/6600M
    ▜██▛    ▜███▙ ▜██████████████████▛        Memory: 4869MiB / 27921MiB
     ▜▛     ▟████▙ ▜████████████████▛
           ▟██████▙       ▜███▙
          ▟███▛▜███▙       ▜███▙
         ▟███▛  ▜███▙       ▜███▙
         ▝▀▀▀    ▀▀▀▀▘       ▀▀▀▘

Self grab

KRTirtho commented 1 month ago

Please create this issue in https://github.com/NixOS/nixpkgs as I don't maintain the package officially.

jakubkaczor commented 1 month ago

I have experienced the same issue on both, Arch Linux package and Nix package, so I am not sure if it's package related. I didn't use Spotube before continuously, so I cannot tell when the issue raised, but somewhere in the past, Spotube worked on my setup.

abrushworkriot commented 1 month ago

@jakubkaczor It worked for me for something like june and everything was more or less fine. I started to get this error after updating from 3.7.0, so it's one of the three releases. I didn't get deep into changelogs, so I don't know what caused this, but the error suggest it being related to GPU support. I don't think packaging is to blame here.

jakubkaczor commented 1 month ago

I have found the cause of the problem. The Spotube versions I tested were either from nixpkgs-unstable or AUR, but I used it with an incompatible version of the Mesa driver, that is, from nixpkgs 24.05. For more details, you can read my comment in the analogous Hyprland issue.

@abrushworkriot, I am not sure if nixGL is meant to be used also on NixOS, but if you want to run Spotube from nixpkgs-unstable, try by invoking

nix run --override-input nixpkgs nixpkgs/nixpkgs-unstable --impure github:nix-community/nixGL -- spotube
abrushworkriot commented 1 month ago

Thank you. I'll see once nixpkgs unstable gets up to date with newest release. Do you think anything can be done about it so it works properly? Did you report the issue to pkg maintainers?

jakubkaczor commented 1 month ago

I am afraid there is nothing to do within the realm of the package.

abrushworkriot commented 1 month ago

The command you gave me does indeed work. Thank you! I bet there is a way to write a derivation that makes it work but I'm a noob with Nix, so probably not gonna have luck attempting it.

le0nAg commented 1 month ago

I'm experiencing a similar with chromium based browsers... Is it a common issue with nix/NixOS? linkt to thread