! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Finding a file by typing stops working randomly
Status:
RESOLVED: FIXED

Comments

Description mrniex 2019-01-29 18:40:58 CET
Somewhere between the last 2 Thunar releases "finding" a file/folder by typing its name stopped working on random intervals. 

Expected behavior: I should be able to write the whole name of the file/folder I am looking for

Actual behavior: At random intervals (ie, cannot be replicated every single time) Thunar will only take the first letter of the input and ignore any other keyboard input after it - including Enter or ctrl+key - Esc may be an exception.

There is no reliable way to reproduce this behavior.
Comment 1 alexxcons editbugs 2019-01-30 14:48:47 CET
Most likely related to latest exo changes: Bug #14994

You are using exo-0.12.4   (libexo)  ?
Comment 2 mrniex 2019-01-30 18:24:53 CET
Yep, thats the version on my system. I noticed that the bug is related to two monitors though, I only use one, is that relevant?
Comment 3 alexxcons editbugs 2019-01-30 21:51:43 CET
Well, if the bug only appeared after upgrade to exo 0.12.4, than probably it is the cause. 

Can you switch back to the old version and see if you can reproduce the bug there ?

I cannot reproduce this bug .. for me the search works like expected, tried for 5min now.
Comment 4 mrniex 2019-02-02 17:39:31 CET
Im not sure if I can downgrade -- at least I dont know how to do it on Arch.

It doesnt help that the bug appears completely randomly either. It can go day without me hitting it, and then it suddenly reappears again. 

Also, this probably isnt really helpful at all, but just in case Im describing the things wrong, this is a recording of the bug - no inputs after the first letter get registered, and only some keys work (backspace did work, but I believe delete and ctrl commands didnt).
https://my.mixtape.moe/fdrfva.webm
Comment 5 mrniex 2019-02-02 17:42:01 CET
OK, I just hit the bug again literally 30 seconds after sending the last post - this time not even backspace or enter worked, the whole Thunar window just locked up input-wise until the prompt disappeared or until I clicked on a folder.

Also, I believe this bug may be affecting mostly older instances of Thunar open for about 30 minutes or so and longer.
Comment 6 dwu 2019-02-02 17:59:10 CET
Created attachment 8279 
Experimental patch

I think I found a way to reliably reproduce the issue:

- open a Thunar window,
- without starting a search switch to some other window via alt+tab,
- switch back to Thunar and start a search via typing.

I so far had no success tracking down the exact cause of the issue in the current patch to #14994.

But maybe the following helps: As I was not aware of how exo-icon-view is used in applications other than Thunar the original patch for #14994 aimed at reproducing the implementation of GTK's treeview as closely as possible. When simplifying the code to what's needed for making type-ahead-search work in Thunar the issue does not seem to occur.

Please find a corresponding experimental patch for further discussion attached.

I'd be happy to test the patch against other applications using exo-icon-view if there are any.
Comment 7 mrniex 2019-02-03 15:42:31 CET
Yep, I can confirm that alt tabbing out of the window does reproduce the bug in most (but not all?) cases. I just tried it on two windows I already had opened, and the bug did not occur. Opening a new window and alt+tabbing out of it and back replicated the bug.
Comment 8 alexxcons editbugs 2019-02-03 23:50:59 CET
Well done again dwu, thanks !

Yes, now I as well can reproduce the bug.

Your patch fixes the problem, I tested for thunar master and for the 4.12 branch. (Sorry dont know who else makes use of the search field other than thunar )

IMO code already looks good to get pushed .. or would you prefer to further search for the exact cause ?
Comment 9 alexxcons editbugs 2019-02-12 15:29:43 CET
@dwu

Ok for you if I ask bluesabre to test & push you experimental patch ? (IMO it looks good to get pushed)
Comment 10 dwu 2019-02-12 18:14:15 CET
Sorry for my late reply. Sure, please proceed as you see fit.

I currently don't have access to my development machine so I didn't really dig deeper into this. So while I'm pretty sure that the patch is not the best solution, it seems to fix the issue at least for Thunar.
Comment 11 alexxcons editbugs 2019-03-08 23:03:29 CET
*** Bug 15182 has been marked as a duplicate of this bug. ***
Comment 12 Sean Davis editbugs 2019-03-09 21:36:06 CET
@alexxcons

Can you test this with thunar 1.6.x so we can make sure there's not a regression with the GTK2 version of the exo library?
Comment 13 alexxcons editbugs 2019-03-10 21:21:45 CET
@Sean Davis

I just tested, as well seems to work fine for thunar 1.6.x.  Should be ok to get pushed.
Comment 14 Git Bot editbugs 2019-03-16 11:21:21 CET
Sean Davis referenced this bugreport in commit ae706f0be78bfc117973818a6a8c55168090349d

Fix typehead in ExoIconView (bug #15100)

https://git.xfce.org/xfce/exo/commit?id=ae706f0be78bfc117973818a6a8c55168090349d
Comment 15 Sean Davis editbugs 2019-03-16 11:23:47 CET
Added your patch in the above commit, thanks!
Comment 16 alexxcons editbugs 2019-04-22 23:43:57 CEST
*** Bug 15316 has been marked as a duplicate of this bug. ***

Bug #15100

Reported by:
mrniex
Reported on: 2019-01-29
Last modified on: 2019-04-22
Duplicates (2):
  • 15182 Prefix search occasionally broken
  • 15316 Typeahead is not working

People

Assignee:
Nick Schermer
CC List:
9 users

Version

Attachments

Experimental patch (3.22 KB, patch)
2019-02-02 17:59 CET , dwu
no flags

Additional information