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

Spotify cannot add local file #120070

Closed
applePrincess opened this issue Apr 21, 2021 · 5 comments · Fixed by #130226
Closed

Spotify cannot add local file #120070

applePrincess opened this issue Apr 21, 2021 · 5 comments · Fixed by #130226

Comments

@applePrincess
Copy link
Contributor

Describe the bug
When adding a local directory to spotify client, it always fails due to missing gtk schema(s)
To Reproduce
Steps to reproduce the behavior:

  1. run spotify
  2. open Settings
  3. turn on Show Local Files
  4. click ADD A SOURCE button

Expected behavior
Open a file chooser to select which directory to be added.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Running spotify with --console flag from console gives me

/nix/store/rajr6ndrlh4pirx9mq00m9h0ys5lx557-spotify-1.1.55.494.gca75f788/bin/.spotify-wrapped: /nix/store/z48avjcfcd0wvdnr7ykmylpgb427wsxn-curl-7.74.0/lib/libcurl-gnutls.so.4: no version information available (required by /nix/store/rajr6ndrlh4pirx9mq00m9h0ys5lx557-spotify-1.1.55.494.gca75f788/bin/.spotify-wrapped)
/nix/store/xgf3hmgkvnlxgzgnzd8knyqjrslkmi9l-spotify-unwrapped-1.1.55.494.gca75f788/share/spotify/.spotify-wrapped: /nix/store/z48avjcfcd0wvdnr7ykmylpgb427wsxn-curl-7.74.0/lib/libcurl-gnutls.so.4: no version information available (required by /nix/store/xgf3hmgkvnlxgzgnzd8knyqjrslkmi9l-spotify-unwrapped-1.1.55.494.gca75f788/share/spotify/.spotify-wrapped)
/nix/store/xgf3hmgkvnlxgzgnzd8knyqjrslkmi9l-spotify-unwrapped-1.1.55.494.gca75f788/share/spotify/.spotify-wrapped: /nix/store/z48avjcfcd0wvdnr7ykmylpgb427wsxn-curl-7.74.0/lib/libcurl-gnutls.so.4: no version information available (required by /nix/store/xgf3hmgkvnlxgzgnzd8knyqjrslkmi9l-spotify-unwrapped-1.1.55.494.gca75f788/share/spotify/.spotify-wrapped)
/proc/self/exe: /nix/store/z48avjcfcd0wvdnr7ykmylpgb427wsxn-curl-7.74.0/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

(.spotify-wrapped --console:13091): GLib-GIO-ERROR **: 14:51:57.142: No GSettings schemas are installed on the system
Trace/breakpoint trap (core dumped)

Notify maintainers

@eelco @ftrvxmtrx @sheenobu @mudri @timokau @Ma27

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 5.11.13, NixOS, 20.09.3827.389249fa9b3 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210326_dd77f71`
 - channels(root): `"nixos-20.09.3827.389249fa9b3, nixos-unstable-21.05pre282843.dcdf30a78a5"`
 - channels(applePrincess): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@colonelpanic8
Copy link
Contributor

I think that this issue is not NixOS specific: https://www.reddit.com/r/archlinux/comments/jqbyku/cant_add_local_source_in_spotify/

Artturin added a commit to Artturin/nixpkgs that referenced this issue Jul 14, 2021
SuperSandro2000 added a commit that referenced this issue Jul 15, 2021
spotify-unwrapped: add wrapGAppsHook to fix #120070
@nigelgbanks
Copy link

Still seems to be an issue.

nix-shell -p nix-info --run "nix-info -m"                                                                                                                                                                                                                                                                                                                  Mon 24 Jan 2022 18:46:38 GMT
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.12, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4`
 - channels(nbanks): `""`
 - channels(root): `"nixos-21.05.4116.46251a79f75"`
 - nixpkgs: `/etc/nixpkgs`

I'm using flakes so channels above is not applicable I'm on.

    "nixos-stable": {
      "locked": {
        "lastModified": 1641423937,
        "narHash": "sha256-iIBSDySeZ79FDFiI5but9EtOIRc5Ncu/gq27Hg/yXjo=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "e67c94a1adbb5cf8a0448bc9c434589b2dd293c2",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "nixos-21.11",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
Spotify version 1.1.72.439.gc253025e, Copyright (c) 2021, Spotify Ltd

@nigelgbanks
Copy link

Tail end of strace.

openat(AT_FDCWD, "/run/current-system/sw/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/var/nix/profiles/default/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/profiles/per-user/nbanks/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/nbanks/.nix-profile/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/gwywia8kbi42na7zhxbjrxaa7ymrid00-desktops/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/nbanks/.local/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
futex(0x7f72dbe4cfc8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
getpeername(2, 0x7fffa8815b10, [128])   = -1 ENOTSOCK (Socket operation on non-socket)
futex(0x7f72dbe4cfc8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
getpid()                                = 2197639
newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0444, st_size=3648, ...}, 0) = 0
write(2, "\n(.spotify-wrapped:2197639): GLi"..., 131
(.spotify-wrapped:2197639): GLib-GIO-ERROR **: 19:01:39.012: No GSettings schemas are installed on the system
) = 131
--- SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL} ---
+++ killed by SIGTRAP (core dumped) +++
fish: Job 1, 'strace spotify' terminated by signal SIGTRAP (Trace or breakpoint trap)

@applePrincess
Copy link
Contributor Author

Yep I can confirm that. However, as IvanMalison commented above, the bug might be not by nixos but by upstream.

@leon-erd
Copy link
Contributor

I'm getting the same issue as OP when clicking the ADD A SOURCE button

~ spotify
/home/leon/.nix-profile/bin/spotify: /nix/store/78avj53r2gfxdp141kj7cymbzsdnsjpl-curl-8.6.0/lib/libcurl-gnutls.so.4: no version information available (required by /home/leon/.nix-profile/bin/spotify)
/nix/store/yzbh0fbhy957whanxw0bd49y7dfv7v1c-spotify-1.2.31.1205.g4d59ad7c/share/spotify/.spotify-wrapped: /nix/store/78avj53r2gfxdp141kj7cymbzsdnsjpl-curl-8.6.0/lib/libcurl-gnutls.so.4: no version information available (required by /nix/store/yzbh0fbhy957whanxw0bd49y7dfv7v1c-spotify-1.2.31.1205.g4d59ad7c/share/spotify/.spotify-wrapped)
/nix/store/yzbh0fbhy957whanxw0bd49y7dfv7v1c-spotify-1.2.31.1205.g4d59ad7c/share/spotify/.spotify-wrapped: /nix/store/78avj53r2gfxdp141kj7cymbzsdnsjpl-curl-8.6.0/lib/libcurl-gnutls.so.4: no version information available (required by /nix/store/yzbh0fbhy957whanxw0bd49y7dfv7v1c-spotify-1.2.31.1205.g4d59ad7c/share/spotify/.spotify-wrapped)

(spotify:3442): Gtk-WARNING **: 21:46:55.501: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
/proc/self/exe: /nix/store/78avj53r2gfxdp141kj7cymbzsdnsjpl-curl-8.6.0/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

(spotify:3442): GLib-GIO-CRITICAL **: 21:46:55.652: g_settings_schema_source_lookup: assertion 'source != NULL' failed

(spotify:3442): GLib-GIO-ERROR **: 21:47:31.136: No GSettings schemas are installed on the system
[1]    3442 trace trap (core dumped)  spotify

I also tried this on EndeavourOS with the same version of spotify and there it works flawlessly. So I think this is actually a nixpkgs problem and not something upstream related.

Maybe the issue can be reopened?

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

Successfully merging a pull request may close this issue.

4 participants