ffind /e hangs

The command

ffind /b /m /e"foobar" PlayerList13.htm

appears to hang when run on the attached file. CPU is high. I kill it after a few minutes. I have several other files with the same problem. The files are all large: over 10 megabytes. TCC 25.00.26 x64 Windows 10 [Version 10.0.18363.535].
 

Attachments

  • PlayerList13.7z
    1.1 MB · Views: 117

rconn

Administrator
Staff member
May 14, 2008
12,404
152
The problem is the length of your lines (>8Mb for the first line). When the buffer wraps (at 8Mb), FFIND is trying to go back to the beginning of the current line and continue the comparison from there. Prior to build 26, FFIND would discard the beginning of the line and read the remainder of the line into the buffer and restart the comparison (thus potentially failing to match the current line, particularly if you're using anchors).

In build 26, because of your line length FFIND is re-reading everything. I can put a check in to build 27 to tell it not to rewind repeatedly to the beginning, but you're going to be back to potentially failing to return valid matches.
 
Is there a better way to do this? The files are the output of test scripts. Since browsers don't care about lines, there is only one line in the file. I've been using ffind to look for strings that would indicate that there were errors in the generation of the pages.
 
Jan 12, 2014
436
7
Switzerland, SO
Just as idea for workaround:

You could view and save it (should be surely possible to make that with related tools on command line too) through a "html formatter", like this:

(html view from my integrated Total Commander lister as example) ...
html-formatted1.png


After it's possible to save it in exactly this style (WITH linefeeds) and it should no more be a problem then of course ...

Regards.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
Is there a better way to do this? The files are the output of test scripts. Since browsers don't care about lines, there is only one line in the file. I've been using ffind to look for strings that would indicate that there were errors in the generation of the pages.

If you're not actually specifying regular expressions, you could use /T"...", which is character-oriented and doesn't care about lines.
 
Similar threads
Thread starter Title Forum Replies Date
D ffind hangs on large file Support 18
J ffind does not find files Support 4
Alpengreis ffind dialog (/W) problem Support 4
vefatica FFIND, temp files? ... not deleted? Support 0
S FFIND text that includes " Support 7
vefatica FFIND needs work Support 12
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
Kachupp FFIND TPIPE Support 9
Gamegod ffind bug with chinese Support 2
vefatica FFIND and multi-line regular expressions Support 4
vefatica Make FFIND a bit more friendly? Support 14
M Trying to use ffind with a @file.lst doesn't work Support 4
vefatica Corruption from FFIND? Support 5
vefatica FFIND /S and System32? (and an OT mystery) Support 14
T FFind - can we display n number of lines after the find? Support 2
vefatica Help nit (FFIND and DIR with /S) Support 0
R ffind not setting %_ffind_ vars if /f is used Support 7
M FFIND wordA AND wordB Support 4
vefatica FFIND and _? Support 1
B Fixed FFIND doesn't find last character in file without CR/LF at EOF Support 1
dcantor How to make line numbers fixed width in FFIND Support 11
vefatica FFIND /S, find directory with specified name? Support 7
D Why doesn't ffind find directory? Support 3
C FFind /w works but FFind /= doesn't? Support 2
vefatica FFIND goes crazy Support 8
Stefano Piccardi TCC 13 vs. TCC 14 different FFIND /E"d$" output Support 1
Steve Pitts How to? FFIND, regular expressions and double quotes Support 4
vefatica FFIND /S in my profile directory Support 2
A How to? Pass output from ffind to another command in a BTM file Support 5
Phileosophos Can FFIND match file names with a regular expression? Support 19
vefatica FFIND and size ranges Support 1
R How to use ffind to find older files? Support 9
J How do I - ffind - with multiple items Support 10
M FFIND and LIST does not work for UTF-8 fles Support 10
C FFIND ERRORLEVEL Support 2
L FFIND no result display Support 10
H Directory wildcards not working with ffind Support 3
D ffind and directories Support 2
Stefano Piccardi detecting BOM, FFIND multibyte regex Support 18
dcantor FFIND syntax -- is /E"regex" /X supported? Support 2
S FFIND and quoted strings Support 4
S FFIND /E"reg exp" : not case insensitive Support 4
J Problem with FFIND Support 1
J History file load hangs if file has complete garbage in it... Support 1
samintz CDD to non-existent directory hangs Support 2
krischik Take Command opens with (almost) white screen and then hangs Support 3
A v25.00.10 hangs when returning %_ipdnsserver Support 7
A After update to 24.02.49, helpfile tcmd.chm hangs when opened Support 0
vefatica gcd() ... wrong answer, lcm() hangs Support 5
rps Unalias * hangs TCC session Support 2

Similar threads