oni icon indicating copy to clipboard operation
oni copied to clipboard

Oni freezes after performing global search

Open 6ruce opened this issue 8 years ago • 6 comments

Config: "editor.fullScreenOnStart": true OS: Windows 10 Home Oni version: 0.3.1

PC:

  • RAM: 8GB
  • CPU: Intel i5-6300 HQ @ 2.3GHz
  • Storage: TOSHIBA MQ02ABD100H (SSHD, SSD Hybrid)

When I'm trying to perform global search (Ctrl-F) it stars working really hard and in a couple seconds whole UI frezes with blank main area and only header menu visible. After this whole PC is freezed and I can't do anything except rebooting it. Looks like this can be related to the number of files in the working directory.

6ruce avatar Mar 29 '18 14:03 6ruce

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Mar 29 '18 14:03 oni-bot

@6ruce At lot has happened since you started this issue, can you check the latest release (v0.3.4) and see if it still happens?

badosu avatar May 21 '18 04:05 badosu

yes, it does. for me, this is reliably reproducable by opening my project folder (a medium-sized django project, but with some dependencies and some generated directories in the same folder, but these are gitignored, 13k files in total), then doing ctrl-shift-f, then slowly typing into the search field. the typing is really janky, oni will take up several gigabytes of RAM, and then the window goes blank.

karyon avatar Jun 20 '18 17:06 karyon

It might be solved by https://github.com/onivim/oni/pull/2315. @6ruce , @karyon, care to test? Also, you can bind "quickOpen.searchFileByContent" to search with the QuickOpen's GUI (should be the same search/performance results though).

TalAmuyal avatar Jun 30 '18 19:06 TalAmuyal

I have this same issue. I bound quickOpen.searchFileByContent and when I try to use it in a decently sized folder, the whole editor grinds to a halt. Using ripgrep on its own, I get the results immediately and without issue. Does the previous query get killed when you make a new one? If not, I nominate the as-you-type searching as a possible culprit. Ripgrepping a single letter produces a lot of results.

iwikal avatar Oct 21 '18 11:10 iwikal

By reading the code, it should kill the query and re-run the new one but it might be busted. Anyone want to have a try at debugging it? (https://github.com/onivim/oni/blob/master/extensions/oni-plugin-quickopen/src/QuickOpen.ts#L132)

TalAmuyal avatar Oct 30 '18 20:10 TalAmuyal