-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
macro issue causing heavy system load #145
Comments
Interesting, I'll look into it |
@marilmanen I have found a good way to reproduce this bug locally, and it does seem to be having to do with things that change the focus document. I was even able to replicate with ctag operations (not macros). I think I know WHAT is happening, just not WHY it is happening. Basically, under some very specific circumstances, the timer object I use to redraw the cursor acts like it has a timeout of |
I see the flickering cursor occasionally too. One way I can trigger it (on Mac) is in the Open File dialog start typing a filename, use cursor-down to select a file from the list of matching names that pops up, then press return to open it. That tab seems to always have a flickering cursor, but the other tabs aren't affected. |
Yup, I have a fix incoming! |
OK, should be fixed in master! Basically, the issue was that Fixed by explicitly setting the interval when the timer is created, so it will always be correct. |
I use a macro for searching text from my files and sometimes it causes heavy system load (can be seen as very fast cursor blinking rate). Issue seems to be related cursor focus with detached tabs and it looks like it requires a random amount of macro iterations or at least I have not found a simple way to reproduce the issue. Consecutive selections with focus changing between files in different tabs and at some point the cursor starts behaving badly and system load of the nedit-ng process goes to 100%.
strace command for the nedit-ng process shows an infinite itaration of
Here is the macro code
The text was updated successfully, but these errors were encountered: