Giter Club home page Giter Club logo

Comments (4)

phillbush avatar phillbush commented on August 18, 2024

Hi,

XFiles should not hang when a thumbnailer fails (returns nonzero); but since it waits for the thumbnailer to exit, XFiles can hang if it does not return.

Can you try to run XFiles on the directory where thumbnailing hangs and check whether it is a thumbnail script not exiting?

On the $HOME error, I could not reproduce it, can you provide more information on how you faced it?

from xfiles.

apprehensions avatar apprehensions commented on August 18, 2024

XFiles should not hang when a thumbnailer fails (returns nonzero); but since it waits for the thumbnailer to exit, XFiles can hang if it does not return.

so what do i do when thumbnail fails? it fails most of the time and i have to manually delete xfiles cache to regenerate thumbanils.

newfstatat(AT_FDCWD, ".steampath", {st_mode=S_IFLNK|0777, st_size=29, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, ".steampath", 0x7ffe5d959820, 0) = -1 ENOENT (No such file or directory)
write(2, "xfiles: ", 8)                 = 8
write(2, "/home/sewn", 10)              = 10
write(2, ": No such file or directory\n", 28) = 28

i believe above is an error from a dangling symlink from scanning a directory, and such the function responsible for getting files is only provided with an argument, the argument is the error.

you can reproduce this by making an invalid symlink.

from xfiles.

alpheratz0 avatar alpheratz0 commented on August 18, 2024

i believe above is an error from a dangling symlink from scanning a directory, and such the function responsible for getting files is only provided with an argument, the argument is the error.

yeah thats the issue, also shouldn't it be printing the name of the file which fails to stat?

xfiles/xfiles.c

Line 520 in e6a181c

warn("%s", cwd->path);

should be something like this

if (!(islink && errno == ENOENT))
	warn("%s", array[i]->d_name);

from xfiles.

phillbush avatar phillbush commented on August 18, 2024

xfiles/xfiles.c

Line 520 in e6a181c

warn("%s", cwd->path);

should be something like this

if (!(islink && errno == ENOENT))
	warn("%s", array[i]->d_name);

Indeed, it was warning an issue related to the directory, but the issue is related to a file in it.
It is fixed now.

i believe above is an error from a dangling symlink from scanning a directory, and such the function responsible for getting files is only provided with an argument, the argument is the error.

XFiles passes the full path of a file to the thumbnailer, even if it is a broken link, it is upon the thumbnailer command to either exit in failure or save a icon indicating the broken symbol as thumbnail. I still think it is the thumbnailer command which is hanging; if it hang again, can you check XFile's process tree and check whether that is the case?

from xfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.