SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: rowbearto on July 27, 2020, 06:52:59 pm

Title: Click "Search" menu freezes long time with large binary file
Post by: rowbearto on July 27, 2020, 06:52:59 pm
With 24.0.2/hotfix16 I loaded a very large binary file, size 776M Bytes.

In my buffer I'm currently at byte offset 0x307f01b0.

I wanted to go to a different byte offset so I clicked on the "Search" menu in the menu bar with the intent to "Go to offset". SE then freezes a long time. While it is frozen I see "Searching(...)..." in the status bar.
Title: Re: Click "Search" menu freezes long time with large binary file
Post by: Clark on July 27, 2020, 08:58:31 pm
Is it reproducable?

If so, maybe you can zip up the file and post it to support.

This type of thing can be caused by a timer callback kicking in and doing some smart feature. We've addressed every case we've found but every now and then a new one pops up.  Its usually just a matter of avoiding doing the work under a large file circumstance.
Title: Re: Click "Search" menu freezes long time with large binary file
Post by: rowbearto on July 27, 2020, 09:00:52 pm
Unfortunately when I tried it again about 20 minutes later it didn't happen :(
Title: Re: Click "Search" menu freezes long time with large binary file
Post by: Clark on July 27, 2020, 09:03:31 pm
It's possible it depends on the specific cursor location.
Title: Re: Click "Search" menu freezes long time with large binary file
Post by: rowbearto on July 27, 2020, 09:09:55 pm
Yes if I go to the offset  0x307f01b0 using "gui-seek" as I mentioned in my first post it reproduces!

I tar xzipped it and put it on support, look for:

largebin.tar.xz

on support. Go to offset 0x307f01b0 and click "Search".
Title: Re: Click "Search" menu freezes long time with large binary file
Post by: Clark on July 27, 2020, 10:54:11 pm
A menu item is fetching the current word. We will need to put a performance fix in cur_word(). The crux of the problem is that there is an insanely long line which was being used as a way to break out of a search. That just isn't good enough for the length of this line.
Title: Re: Click "Search" menu freezes long time with large binary file
Post by: Clark on July 28, 2020, 12:38:25 am
Added hot fix. Also fixed for v25 beta 2.