Author Topic: Click "Search" menu freezes long time with large binary file  (Read 367 times)

rowbearto

  • Senior Community Member
  • Posts: 1881
  • Hero Points: 122
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.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Click "Search" menu freezes long time with large binary file
« Reply #1 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.

rowbearto

  • Senior Community Member
  • Posts: 1881
  • Hero Points: 122
Re: Click "Search" menu freezes long time with large binary file
« Reply #2 on: July 27, 2020, 09:00:52 pm »
Unfortunately when I tried it again about 20 minutes later it didn't happen :(

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Click "Search" menu freezes long time with large binary file
« Reply #3 on: July 27, 2020, 09:03:31 pm »
It's possible it depends on the specific cursor location.

rowbearto

  • Senior Community Member
  • Posts: 1881
  • Hero Points: 122
Re: Click "Search" menu freezes long time with large binary file
« Reply #4 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".

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Click "Search" menu freezes long time with large binary file
« Reply #5 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.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5779
  • Hero Points: 461
Re: Click "Search" menu freezes long time with large binary file
« Reply #6 on: July 28, 2020, 12:38:25 am »
Added hot fix. Also fixed for v25 beta 2.