After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773333 - The file chooser's built-in search frequently misses results
The file chooser's built-in search frequently misses results
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-10-21 23:46 UTC by Andy Lutomirski
Modified: 2018-05-02 17:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andy Lutomirski 2016-10-21 23:46:46 UTC
I don't have a complete understanding of what the bug is, but the file chooser's built-in search seems to fail to show complete results on a regular basis.

As a trivial reproducer, go to "Save as..." in any application, click "Home", and type "music".  You'll see the Music folder.  Then hit backspace five times, pausing a bit between each one.  You'll see the full contents of Home.  Now type "music" again and hold down backspace until the search bar is blank.  You'll see a very small subset of the full contents.

(As an aside: shouldn't hitting backspace when the search box is empty dismiss the search box?)
Comment 1 Daniel Boles 2016-10-21 23:59:50 UTC
(In reply to Andy Lutomirski from comment #0)

> As a trivial reproducer, go to "Save as..." in any application, click
> "Home", and type "music".  You'll see the Music folder.  Then hit backspace
> five times, pausing a bit between each one.  You'll see the full contents of
> Home.  Now type "music" again and hold down backspace until the search bar
> is blank.  You'll see a very small subset of the full contents.

the FileChooser spawns threads to enumerate each new directory browsed into. Maybe they give up if called in rapid succession, or something like that. It certainly looks like the search just gets cancelled if restarted quickly.

> (As an aside: shouldn't hitting backspace when the search box is empty
> dismiss the search box?)

Hmm, not necessarily. That would seem to punish users who hold down backspace and don't stop quite quickly enough. Unless some hacking was added to detect isolated presses with no text after a long enough pause, or something, but pressing Esc is easy enough. ;)
Comment 2 Daniel Boles 2016-10-22 00:06:04 UTC
(In reply to djb from comment #1)

> the FileChooser spawns threads to enumerate each new directory browsed into.

...I should really finish writing messages before posting them. This applies to searches too, so the rest holds. We can observe this in either case with gdb.
Comment 3 Andy Lutomirski 2016-10-22 00:15:45 UTC
(In reply to djb from comment #1)
> (In reply to Andy Lutomirski from comment #0)
> 
> > As a trivial reproducer, go to "Save as..." in any application, click
> > "Home", and type "music".  You'll see the Music folder.  Then hit backspace
> > five times, pausing a bit between each one.  You'll see the full contents of
> > Home.  Now type "music" again and hold down backspace until the search bar
> > is blank.  You'll see a very small subset of the full contents.
> 
> the FileChooser spawns threads to enumerate each new directory browsed into.
> Maybe they give up if called in rapid succession, or something like that. It
> certainly looks like the search just gets cancelled if restarted quickly.

A bug like that could easily explain the weird results I've been seeing.

> 
> > (As an aside: shouldn't hitting backspace when the search box is empty
> > dismiss the search box?)
> 
> Hmm, not necessarily. That would seem to punish users who hold down
> backspace and don't stop quite quickly enough. Unless some hacking was added
> to detect isolated presses with no text after a long enough pause, or
> something, but pressing Esc is easy enough. ;)

How so?  If you hit backspace too many times and start typing again, the search bar will reappear.
Comment 4 Daniel Boles 2016-10-22 00:21:43 UTC
(In reply to Andy Lutomirski from comment #3)
> 
> A bug like that could easily explain the weird results I've been seeing.

Yeah, this is an interesting one, as it seems to break the reliability of search results, since the user might not realise they're missing things... and even if they do, then the only way to 'fix' it is to - slowly! - change the search, then change back.

Correct me if I'm wrong - Nautilus doesn't seem to share this issue, right?

> How so?  If you hit backspace too many times and start typing again, the
> search bar will reappear.

Indeed, never mind. I should also be fully awake before writing posts. :D
Comment 5 GNOME Infrastructure Team 2018-05-02 17:41:16 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/692.