yatima1460 / Drill

Search files without indexing, but fast crawling
https://drill.software/
GNU General Public License v2.0
269 stars 21 forks source link

Drill can't find some files. #12

Closed luluco250 closed 5 years ago

luluco250 commented 5 years ago

Linux distro Arch Linux

Runtime type AppImage

Describe the bug Drill can't find some files, specially those under the user home folder, whereas other programs can. It can't even find it's own app image under ~/Downloads.

To Reproduce Steps to reproduce the behavior:

  1. Open Drill.
  2. Type in the name of a file within ~/ (though other folders may be affected as well).
  3. It may not find the file you're looking for, even if it exists and can be opened by other programs (including other app images).

Expected behavior Finding the file correctly, as the user has permissions to read it.

Screenshots image

Other notes Probably not a problem with the permissions of the home folder, or others, I have tried giving full read permissions to the home folder and it still didn't work. Drill is able to find the file(s) as root (through sudo).

RustyRaptor commented 5 years ago

Could this be the result of it having a space in the name? I will test it out.

RustyRaptor commented 5 years ago

Can't reproduce with space in filename.

RustyRaptor commented 5 years ago

Could you compile Drill in debug mode? clone the project using

git clone --recurse-submodules -j8 https://github.com/yatima1460/Drill.git

then run

dub run -c x64-GTK

in it's folder. This will give you feedback about which folders are being crawled when you search something. Just type in the name of the file and see if it ever goes over the folder it's in.

The fact that it's only indexed 488 files is a bit suspicious unless you really only have that many files in your home.

yatima1460 commented 5 years ago

After having a long discussion with @luluco250 we found out it's because the thread scanning /home crashes when it encounters a file owned by root with permissions similar to 700 but that is inside his home folder

This should be fixed now

RustyRaptor commented 5 years ago

Screenshot_20190512_105128 Can not reproduce so looks like it got fixed. Cool.

yatima1460 commented 5 years ago

This got fixed, and I would actually be surprised if this issue reappears