SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2013 v18 beta => Topic started by: jporkkahtc on May 03, 2013, 05:52:17 pm

Title: Slick using 100% of cpu
Post by: jporkkahtc on May 03, 2013, 05:52:17 pm
64bit, Beta 2, Win64.
I noticed that Slick has got 1 cpu core 100% busy.
Slick is still responsive.
When I close slick and start it again the busyness resumes.
Closing the workspace stops the busy, and reloading the workspace resumes the busy.

I only noticed because my laptop fan was running more than usual. It's terrible having so many cores that you never notice when you have a single threaded CPU hog anymore :-)
Title: Re: Slick using 100% of cpu
Post by: Matthew on May 03, 2013, 06:45:19 pm
Sounds to me like your workspace tag file is never getting finished. So it restarts when the workspace is again opened, never completes while workspace is open, lather-rinse-repeat.

We'll want to see if there is some code file in your workspace that may be tripping up the tagging parser. Use the Project > Retag workspace... menu command, and in the dialog that comes up, deselect the "Retag files in background" and "Retag modified files only" checkboxes so that you can see the progress control in the foreground. If that retagging gets hung up somewhere, let us know.

You may want to go into the Tools > Options under Editing > Context Tagging, and turn off the "Update workspace tag file on open" setting temporarily so you can run the above foreground tagging.
Title: Re: Slick using 100% of cpu
Post by: jporkkahtc on May 03, 2013, 07:22:40 pm
OK, I rebuilt all my tagfiles this way -- foreground and all files -- retagging finished without a problem.
CPU continues to be busy.
Background tagging of open files.
Use background thread when possible.
Update workspace on open
Update workspace on activate.
Then I closed the workspace and observed CPU usage go to zero.
When I opened the workspace again the CPU stays busy.

Recycling the VS.exe process doesn't help either.
Title: Re: Slick using 100% of cpu
Post by: Dennis on May 06, 2013, 12:52:16 pm
If the CPU appears to be busy, try turning on Slick-C profiling for a while and then turning it off, that should give us an indication of where SlickEdit is spending the time.

Also, do you have Symbol Coloring turned on?
Title: Re: Slick using 100% of cpu
Post by: magerbak on September 30, 2013, 01:59:49 pm
I also have a similar problem on multiple projects (v18.0.0.13 32-bit with hotfix_se1800_5).

Tried retagging in the foreground (completed), shutdown VS and restarted, CPU for VS process is pegged at 50% (one of two cores). Other times I have seen it consuming over 90%.

The Slick-C profiling screen shot is attached.

I have background tagging on open and activate disabled. Right now this is 100% reproducible on two different projects and makes working with VS almost unusable.
Title: Re: Slick using 100% of cpu
Post by: Dennis on October 02, 2013, 12:45:09 pm
@magerbak:  Your problem is on account of makefile targets.  I'm guessing you added all the files under your source directory, including makefiles to your project.  Now SlickEdit is trying to do something with that.  You can either remove the makefiles from your project, or set the macro variables "def_show_makefile_target_menu" to 2 (Macros > Set Variable...)