-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typing on the search bar severely slows down N1 #3001
Comments
incidence here: https://nylas.zendesk.com/agent/tickets/6923 |
another incidence from @GM-Polyakov |
consistently crashes for certain search strings |
Does this crash the renderer process (force a refresh of the N1 window) or totally kill the app? Are there any stack traces? It's one thing for expensive queries to cause jank but they definitely shouldn't be crashing the app... |
I'm seeing similar behavior when doing a search with N1 on OS X 10.11.6. Seems to have started in the past day or two. Worked just fine prior to that.
|
+1. Searching just crashed N1 for me… I have to say search is generally terrible; to the point where I have to open Apple Mail if I want to actually search for an email! macOS 10.12.1 |
thanks for reporting @danielbayley. Does N1 completely crash, or does it get stuck like in @willingc's example. Thanks! |
@jstejada I tried running with Debug selected under the Developer menu. The app gets stuck. No output visible in the developer tools. Does not get to the point of the pop-up. |
Just had this happen to me as well. Had to restart. Nothing out of the norm in the activity window. |
this should be fixed in f55d996#diff-07549fe21d662401372c62ccc5ce2f50R233 cc @bengotow |
We've released version 0.4.201 which contains a fix for this. Please let us know if you have any other problems. Thanks! |
@jstejada Just got a chance to test the new release. You may want to reopen this issue as I'm still seeing errors similar to those mentioned by @csampersand. Oddly, it does not seem to do it on all phrases in the same way:
Here are a few screenshots that may help in debugging. During 'fernando' search (Note different warnings than when searching for 'systers') |
@jstejada Tested a few more things. If I search when "Inbox" is highlighted, that is when the above happens. Search appears to work great when an individual mailbox is selected before the search. Possibly related to Subscription, maybe? |
Hi @willingc, thanks for the additional details! Reopening this issue |
Another incidence: https://nylas.zendesk.com/agent/tickets/7003 |
This is a temporary fix which adds defensive code to prevent duplicate results from being returned from the thread search query which causes N1 to enter a loop and freeze (#3001). Duplicate results from the search query likely indicate that a thread was indexed twice, which was not the case before. The cause for this is still at large.
I can replicate the issue. When searching for mail in Nylas the application gets slow and eventually the only way to resume is completely quit Nylas and restart. Searching gets impossible with Nylas. |
Hi folks! A fix for this has just been released with version 0.4.203. Please let me know if you continue having problems. Thanks for your patience! |
Thanks @jstejada and Nylas team! Tested the latest release from today. Works for individual mailbox as well as consolidated inbox search. Just an FYI the spinning indicator in the search bar will run a while for a large number of emails. With patience the spinning indicator does finish. Great job on getting this fixed so quickly. Thanks 💐 🍰 |
This is due to full table scans done on the Contacts table when typing on the search input for the typeahead results, and the fact that DB queries are now synchronous, which blocks the renderer process
The text was updated successfully, but these errors were encountered: