FIXED: Hang on ctrl+home after ctrl+End

Report issues, odd behaviors or submit a detailed bug report.
Qihe Pan
Posts: 9
Joined: 30 Apr 2024 05:49

FIXED: Hang on ctrl+home after ctrl+End

Post by Qihe Pan »

After performing a Ctrl+End, using Ctrl+Home causes the APP to hang or maybe just a very long time to response.
I'm editing a file with 300MB and 5738840 lines.
User avatar
pjj
Posts: 2145
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Hang on ctrl+home after ctrl+End

Post by pjj »

I can see this can happen with a highlighter other then "Text file" (I switched on a random highlighter for 80 MB logfile and my editor chocked a bit). So ad hoc solution is to switch off highlighter.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6661
Joined: 19 Jul 2006 14:29

Re: Hang on ctrl+home after ctrl+End

Post by Rickard Johansson »

There is an option to "Open large files as plain text". It's turned off by default, but should perhaps be turned on.

It seems most editors have a limit and turns off the highlighter when the file size gets too large...
Qihe Pan
Posts: 9
Joined: 30 Apr 2024 05:49

Re: Hang on ctrl+home after ctrl+End

Post by Qihe Pan »

Rickard Johansson wrote: 30 Apr 2024 16:38 There is an option to "Open large files as plain text". It's turned off by default, but should perhaps be turned on.

It seems most editors have a limit and turns off the highlighter when the file size gets too large...
It still hangs even if I turn on this option.
User avatar
Rickard Johansson
Site Admin
Posts: 6661
Joined: 19 Jul 2006 14:29

Re: Hang on ctrl+home after ctrl+End

Post by Rickard Johansson »

I think I'm going to need an example file. I've tried with files larger than 500 MB without any issues.
Qihe Pan
Posts: 9
Joined: 30 Apr 2024 05:49

Re: Hang on ctrl+home after ctrl+End

Post by Qihe Pan »

Rickard Johansson wrote: 01 May 2024 14:20 I think I'm going to need an example file. I've tried with files larger than 500 MB without any issues.
I have enclosed a file that can reproduce the issue. By the way, I'm using the portable version of the app on Windows 10. Here are the steps I took:

Pressed ctrl + Home
Pressed ctrl + End
Pressed ctrl + Home
Attachments
ter_20230222_173822 - 副本.zip
(28.28 MiB) Downloaded 40 times
User avatar
pjj
Posts: 2145
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Hang on ctrl+home after ctrl+End

Post by pjj »

No hanging for me, Ctrl-Home and Ctrl-End work instantaneously. Highlighter: text file, Windows 7.

Counting items takes a little time (but not too much, 3 sec top), the same replacing items. "Find next" works right off the bat. Scrolling up and down is smooth.

I have 24 GB not-so-quick RAM (800 MHz) and Intel Core i5 3,4 GHz.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6661
Joined: 19 Jul 2006 14:29

Re: Hang on ctrl+home after ctrl+End

Post by Rickard Johansson »

I can't reproduce it either. Do you use an highlighter, or display the file as plain text?
User avatar
Rickard Johansson
Site Admin
Posts: 6661
Joined: 19 Jul 2006 14:29

Re: Hang on ctrl+home after ctrl+End

Post by Rickard Johansson »

Created a new simple Log file highlighter.

log.png
log.png (10.08 KiB) Viewed 394 times

Made some optimizations and Ctrl+End should only take a few seconds to scroll to the end of file (even if there are 6.851.016 lines 8) ).

Note! No highlighter (plain text) is still faster though...
Qihe Pan
Posts: 9
Joined: 30 Apr 2024 05:49

Re: Hang on ctrl+home after ctrl+End

Post by Qihe Pan »

The 'Open large files as plain text(MB)' option is enabled. I'm using window 10.
Qihe Pan
Posts: 9
Joined: 30 Apr 2024 05:49

Re: Hang on ctrl+home after ctrl+End

Post by Qihe Pan »

Qihe Pan wrote: 09 May 2024 05:32 The 'Open large files as plain text(MB)' option is enabled. I'm using window 10.
All other options are using default values and I'm using the 16.26(64-bit) portable version.
Qihe Pan
Posts: 9
Joined: 30 Apr 2024 05:49

Re: Hang on ctrl+home after ctrl+End

Post by Qihe Pan »

Qihe Pan wrote: 09 May 2024 06:53
Qihe Pan wrote: 09 May 2024 05:32 The 'Open large files as plain text(MB)' option is enabled. I'm using window 10.
All other options are using default values and I'm using the 16.26(64-bit) portable version.
After open the file with RJ TextEd, I did the following operations. The APP was hanging on the 2nd time of CTRL+Home.
Pressed ctrl + Home, not hanging
Pressed ctrl + End, not hanging
Pressed ctrl + Home, hanging
Qihe Pan
Posts: 9
Joined: 30 Apr 2024 05:49

Re: Hang on ctrl+home after ctrl+End

Post by Qihe Pan »

I have 8GB RAM and Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz 2.40 GHz.
User avatar
pjj
Posts: 2145
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Hang on ctrl+home after ctrl+End

Post by pjj »

On my another, "toy" machine with Windows 10 (Pentium 1.1 GHz, though probably overclocked a tad, and 4 Gb RAM), I was able to hang RJ TextEd (16.20, installed) only while counting substrings. Simple loading given file was quite quick, and changing highlighter to "Log" took like 10 sec. Even with this highlighter on, Ctrl-Home/Ctrl-End were acting instantaneously.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6661
Joined: 19 Jul 2006 14:29

Re: Hang on ctrl+home after ctrl+End

Post by Rickard Johansson »

Fixed in next release (v16.21 beta 3). It only happens when the document map is visible :shock:
Post Reply