toolong icon indicating copy to clipboard operation
toolong copied to clipboard

Hangs on very long lines

Open Rictus opened this issue 1 year ago • 2 comments

It seems toolong hangs indefinitly when it encounters a line that is... toolong :)

This issue exists for toolong 1.5.0, I don't reproduce with toolong 1.4.0

Here's a test file root.log.139.txt And here's a capture of htop image

while toolong looks like this image

I'll take a look at the code and make a PR if I can find the time.

Edit: Looks like it's the RegexLogFormat that takes too much time to resolve

Thanks

Rictus avatar Aug 05 '24 16:08 Rictus

Hello @willmcgugan Do you think there is more work to be done or maybe it's the wrong direction?

Thanks!

Rictus avatar Aug 12 '24 19:08 Rictus

Just ran into this with a .jsonl file that contained a very long traceback. Hangs on opening with 1.5.0.

(Indeed, 1.4.0 does open the file, but the entries are mangled in the main window and split across multiple lines.)

CatamountJack avatar Feb 26 '25 02:02 CatamountJack