Search function is quite buggy

Support for Android version of Total Commander

Moderators: sheep, Hacker, Stefan2, white

Post Reply
AndriusS
Junior Member
Junior Member
Posts: 11
Joined: 2020-03-03, 17:27 UTC

Search function is quite buggy

Post by *AndriusS »

Search function is very important for me, but I found it quite buggy in Android versions of Total Commander... I have tested it on Android 2.3.6 and Android 4.4.4 versions and tested it with two versions of TC: V2.70 and newest V2.91.
Bellow I'm providing two indications of my bad experience:
1. Searching for any (*) file, containing some text (eg.: "SomeText") in the directory with a plenty of empty files (the size of the file equals to 0 bytes) results in never-ending search process. In my case there was a directory /dev on the "rooted" phone;
2. Searching for any (*) file, containing some text (eg.: "SomeText") in large files (about 100MB) sometimes ends-up with a crash of Total Commander.

P.S.: In my case Total Commander is forever granted with SuperUser permissions on my phone.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39604
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Search function is quite buggy

Post by *ghisler(Author) »

1. /dev are not empty files, they are devices. TC probably tries to read from these devices, which can be an endless stream.
2. Not confirmed, do you see a notification to send a bug report to me? If yes, please use it.
Author of Total Commander
http://www.ghisler.com

AndriusS
Junior Member
Junior Member
Posts: 11
Joined: 2020-03-03, 17:27 UTC

Re: Search function is quite buggy

Post by *AndriusS »

I have tested issue #2 in more closely and found the way to reproduce the crash as easy as possible... Contrary to what was said a few days ago, the problem is not about large files. Below I list the steps I was using to achieve the crash:
1. Firstly, I have deleted all unused files in SDcard to run this test more quickly;
2. Then, I'm going to the "File system root":
Image: https://www.part.lt/img/877749b292085050375c77529a297624119.png

3. Then, I push the button "More" and selecting the "Search..." option:
Image: https://www.part.lt/img/20386227ad37302fb1d26e3232f124d9506.png

4. Entering some text in the "Containing text" box and tapping the "Search" button:
Image: https://www.part.lt/img/7ffbdf803b185c3210703dbd8c7801fd882.png

5. Then the searching process is running and suddenly my phone (!!!) crashes in about 15-20 secs;
6. After that, my phone automatically restarts...

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39604
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Search function is quite buggy

Post by *ghisler(Author) »

Maybe it's a faulty file system. Apps shouldn't be able to crash the entire phone, so it must be a crash at a lower operating system level when reading from a file fails.
Author of Total Commander
http://www.ghisler.com

AndriusS
Junior Member
Junior Member
Posts: 11
Joined: 2020-03-03, 17:27 UTC

Re: Search function is quite buggy

Post by *AndriusS »

I have spent some time by digging deeper into this technical issue and identified the file which is causing the crash of the system: it's "/d/emdh/reg"...
Maybe, is it worth to improve the searching algorithm in TC? - I mean, to include an imperative built-in rule: Not to read the file if the size of this file is smaller than the length of the string in the field "Containing text".
Of course, the user of the current version of TC could also make it manually: by checking the checkbox "Size" and by entering the minimal number of bytes. But the technical solution with an additional built-in rule would be pretty nice, more stable and more user-friendly :wink:... And most important - without any changes in the TC's GUI.
Last edited by AndriusS on 2020-03-11, 22:07 UTC, edited 1 time in total.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39604
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Search function is quite buggy

Post by *ghisler(Author) »

There is no folder /d on any of my devices. Is this a typo? Do you mean /data ?
Author of Total Commander
http://www.ghisler.com

User avatar
Hacker
Moderator
Moderator
Posts: 11684
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Search function is quite buggy

Post by *Hacker »

Christian,
I think for me /d appeared when I activated Use root functions everywhere. There were different dirs shown with this function on than with off.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

AndriusS
Junior Member
Junior Member
Posts: 11
Joined: 2020-03-03, 17:27 UTC

Re: Search function is quite buggy

Post by *AndriusS »

ghisler(Author) wrote:
2020-03-11, 18:35 UTC
There is no folder /d on any of my devices. Is this a typo? Do you mean /data ?
No, /d and /data are two different folders. See the screenshots below:
Image: https://www.part.lt/img/3b32db6aad1b0c4a2127378ebbdd56cb751.png
Image: https://www.part.lt/img/fa974b7bf3a8b69ffeaa7bc3a2db73b0245.png
Hacker wrote:
2020-03-11, 18:51 UTC
I think for me /d appeared when I activated Use root functions everywhere. There were different dirs shown with this function on than with off.
The checkbox "Root functions everywhere" is unchecked in TC, but TC app is forever granted with SuperUser permissions on my phone.

P.S.: Currently, I'm using Samsung GT-S7500 with Cyanogenmod 11 ROM, based on Android KitKat 4.4.4

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39604
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Search function is quite buggy

Post by *ghisler(Author) »

Do you really need to search through all these system folders?
Author of Total Commander
http://www.ghisler.com

AndriusS
Junior Member
Junior Member
Posts: 11
Joined: 2020-03-03, 17:27 UTC

Re: Search function is quite buggy

Post by *AndriusS »

Yes... It's very useful in case somebody have no idea of where to search for specific file(s) containing some text.

User avatar
DrShark
Power Member
Power Member
Posts: 1569
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Search function is quite buggy

Post by *DrShark »

I also have /d/ dir on Meizu M2 with Android 5.1 (not rooted), but here the Search of TC4A, without or with "Containing text:" option active, doesn't crash TC or Android/phone.
UPD. I can confirm the phone crash on not rooted Android 4.3.1 device while searching the text in /d/! I just sent a link to a video of the crash to cghisler address.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

Post Reply