-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Deleting search results results in app lock-up #12555
Comments
Same issue here. Started a few versions ago, been waiting for it to be fixed but no changes so far. For instance, Even closing a (relatively) small number of results takes much longer than it used to. Unfortunately, I have no clue in which version this started. If I had to guess, about 4-6 weeks ago? |
I can reproduce that. |
I wonder if it is related to the introduction of this: @Yaron10 could you try your reproduction scenario on released software, just before the above was added in? |
The binary of the commit just before The search itself takes much longer (quite significantly, black screen etc.) with v8.4.2 compared to v8.4.7. Deleting an entry in the Search Results window: |
One step forward...
...and one back. Such are the hazards of s/w development. |
#12048 by @Ashfaaq18 is a major factor in the search performance improvement. |
Curious. I tried downgrading to 8.4.2, but the issue persisted.
So my issue may be different from the OP. Sorry for assuming that it's the same one. Did not expect there to be multiple issues with search deletion. |
I've tested it more thoroughly and, you're right, 8.4.2 hangs as well on deleting an entry. I haven't tested 8.3.3 now.
in 8.4.0. |
Not sure if this is necroposting but I run into this issue every day searching debug logs while doing dev work. I'm running 8.4.8.
The app is now hung. The more results I'm deleting, the long it is hung. Deleting 100,000+ results will hang so long I force quit the app. This used to work fine. I thought maybe it was related to a plugin but seems like other people are seeing this too. Love Notepad++, please fix! |
I recommend switching back and sticking to the latest working version, which is 8.3.3. |
If that's the case, then I'd look to the change.log for 8.4; the only relevant item seems to be:
Maybe that is the root cause? |
That was the last N++ version built with Scintilla 4.x.x.
Scintilla v5 has been a steep learning curve for the developers. À propos the search result window, the root of the problem is how the editor folds (or "collapses") the matching lines. See https://sourceforge.net/p/scintilla/bugs/2339, and the many threads it links to; also #11774. |
Its worthwhile profiling every performance issue. In Visual C++
The profile shows that the time is being spent in Solution: either style the range or mark it as styled with |
@nyamatongwe |
Description of the Issue
Deleting search results results in app lock-up ("Not Responding").
I've noticed this happening when I do searches that result in lots of hits over many files -- hereafter referred to as a "big search". So far, I've only noticed the lock-up when I try to clean up the results view after one or more big searches by removing other (usually non-big) search results. It's not necessary to attempt remove the big search itself.
I've first noticed this problem not long ago, so I suspect that it was introduced relatively recently. I'm using Notepad++ in the same way I have been for years, and this problem just started occurring in the last few months or so.
Steps to Reproduce the Issue
Expected Behavior
I might expect that deleting the results of a really big search could take some time. But deleting search results with a small number of hits shouldn't take long, just because the view also has one or more big search results in it. In fact, it's not clear why the mere presence of a large search result would impact the deletion of a small or zero-result search that's either earlier or later in the Search results view.
Actual Behavior
The app enters a "Not Responding" state and never recovers (I've let it sit for hours on at least one occasion).
Debug Information
Notepad++ v8.4.6 (32-bit)
Build time : Sep 25 2022 - 19:55:26
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 21H2
OS Build : 19044.2251
Current ANSI codepage : 1252
Plugins :
mimeTools (2.8)
NppConverter (4.4)
NppExport (0.4)
The text was updated successfully, but these errors were encountered: