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

nautilus: Thumbnail generation fails #50494

Closed
mat8913 opened this issue Nov 17, 2018 · 3 comments
Closed

nautilus: Thumbnail generation fails #50494

mat8913 opened this issue Nov 17, 2018 · 3 comments
Labels
0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform

Comments

@mat8913
Copy link
Contributor

mat8913 commented Nov 17, 2018

Issue description

Thumbnails do not get generated for files. Instead, a 1x1 png file gets written to ~/.cache/thumbnails/fail/gnome-thumbnail-factory/.

Here's the relevant terminal output:

** (nautilus:22461): DEBUG: 23:12:58.008: (Thumbnail Thread) Creating thumbnail: file:///home/matthew/test.png

(nautilus:22461): GnomeDesktop-DEBUG: 23:12:58.009: About to launch script: @BUBBLEWRAP_BIN@ --ro-bind /nix/store /nix/store --proc /proc --dev /dev --chdir / --setenv GIO_USE_VFS local --unshare-all --die-with-parent --setenv G_MESSAGES_DEBUG all --ro-bind /nix/store/ng63219ysswhs4zy6g48m26vqcz55154-gnome-desktop-3.28.2 /nix/store/ng63219ysswhs4zy6g48m26vqcz55154-gnome-desktop-3.28.2 --bind /tmp/gnome-desktop-thumbnailer-0YNMSZ /tmp --ro-bind /home/matthew/test.png /tmp/gnome-desktop-file-to-thumbnail.png --seccomp 30 /nix/store/hjszk4pmhiwby9nlslh8mhvhrvdnbj9c-gdk-pixbuf-2.36.12/bin/gdk-pixbuf-thumbnailer -s 256 file:///tmp/gnome-desktop-file-to-thumbnail.png /tmp/gnome-desktop-thumbnailer.png 

(nautilus:22461): GnomeDesktop-DEBUG: 23:12:58.015: Failed to launch script: Failed to execute child process “@BUBBLEWRAP_BIN@” (No such file or directory)
(nautilus:22461): GnomeDesktop-DEBUG: 23:12:58.015: Thumbnail script ('/nix/store/hjszk4pmhiwby9nlslh8mhvhrvdnbj9c-gdk-pixbuf-2.36.12/bin/gdk-pixbuf-thumbnailer -s %s %u %o') failed for 'file:///home/matthew/test.png': Failed to execute child process “@BUBBLEWRAP_BIN@” (No such file or directory)
** (nautilus:22461): DEBUG: 23:12:58.015: (Thumbnail Thread) Thumbnail failed: file:///home/matthew/test.png

I'm guessing this is caused by #28086 and 6e2c115.

Steps to reproduce

Open nautilus in a folder containing images.

Technical details

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

  • system: "x86_64-linux"
  • host os: Linux 4.18.17, NixOS, 18.09.1206.6d6e4e6b558 (Jellyfish)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.1.1
  • channels(root): "nixos-18.09.1228.a4c4cbb613c"
  • nixpkgs: /home/matthew/.nix-defexpr
@jtojnar jtojnar added 0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform labels Dec 1, 2018
@jtojnar
Copy link
Member

jtojnar commented Dec 1, 2018

Fixed in #45950

@hedning
Copy link
Contributor

hedning commented Dec 12, 2018

I think the fix wasn't sufficient on 3.30 :/ I'm able to reproduce on master at least. IIRC I only checked the fix worked with 3.28.

@pbogdan
Copy link
Member

pbogdan commented Dec 13, 2018

It seems that patch may need to be applied directly to Nautilus too as it now seems to bundle that code? - https://gitlab.gnome.org/GNOME/nautilus/blob/master/src/gnome-desktop/gnome-desktop-thumbnail-script.c

hedning added a commit to hedning/nixpkgs that referenced this issue Dec 13, 2018
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 6.topic: GNOME GNOME desktop environment and its underlying platform
Projects
None yet
Development

No branches or pull requests

4 participants