Author Topic: Find-in-files - fast but mysterious, and hangs.  (Read 2322 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Find-in-files - fast but mysterious, and hangs.
« on: August 05, 2016, 07:28:25 PM »
I'm not sure this is any worse than before, but it *feels* worse.


Often there is no indication that a background search is in progress.
The only way to know is to open the file dialog and see if the "Stop" button is enabled.


When the search is launched there is a particularly long delay.
This can be highlighted by searching a slow filesystem - like a file share.


If sgrep hangs, Slick is ever patient and won't ever kill it or complain how slow it is.


Speaking of which, sgrep.exe has hung on me - where should I upload a minidump?
It hung, apparently while just scanning for filenames - not even reading anything (PROCMON shows zero activity).
Hangs everytime I repeat the same search of the fileshare.
Doing a "dir /s \\the\same\share" works just fine.


Seems like there should be a top-level UI indication of a background search in progress, and a top-level way to stop it. Reopening the find-in-files dialog to hit STOP isn't very intuitive.


While the search is running, clicking the clock on the bottom right gets me:
---------------------------
SlickEdit Pro
---------------------------
There are no active background processes.
---------------------------
OK   
---------------------------


Slick V20 would show the background search in the Background Processes dialog - though this dialog doesn't offer a way to stop the background process.

Slick V20 doesn't hang on the same exact search.



If I uncheck "Look in ZIP files", then sgrep doesn't hang -- procmon shows it making plenty of noise.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Find-in-files - fast but mysterious, and hangs.
« Reply #1 on: August 05, 2016, 09:05:21 PM »
Also, background tagging doesn't show up in the background process list either.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6864
  • Hero Points: 528
Re: Find-in-files - fast but mysterious, and hangs.
« Reply #2 on: August 05, 2016, 11:46:20 PM »
sgrep seems to have a problem with the "Look in zip" option. I managed to replicate this problem. We will look into this.

There really isn't any difference with user feedback now vs before. The only difference is it's WAAAAAAY faster.

In this case, it's just hung.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6864
  • Hero Points: 528
Re: Find-in-files - fast but mysterious, and hangs.
« Reply #3 on: August 06, 2016, 12:10:09 AM »
Another issue I noticed is that kill the "sgrep" process seems to hang the editor. We will work on that issue as well.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6864
  • Hero Points: 528
Re: Find-in-files - fast but mysterious, and hangs.
« Reply #4 on: August 06, 2016, 08:26:34 AM »
Fixed for beta 3. Deadlock problem fixed. If you kill sgrep, SlickEdit terminates quickly and displays results up to that point.