SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2016 v21 Beta Discussion => Topic started by: wbullaughey on September 27, 2016, 11:53:56 AM

Title: High CPU use and hang
Post by: wbullaughey on September 27, 2016, 11:53:56 AM
After not interacting with SlickEdit but still open CPU for > 30 minutes use has stayed at 80 - 90%. Closing SlickEdit leaves it "Not Responding" and using > 90% CPU for a long time. I've never seen it terminate with Ada project. C++ project will terminate.

version Mac v21.0.0.5
Title: Re: High CPU use and hang
Post by: Dennis on September 27, 2016, 03:22:03 PM
It's possible you have some Ada code that tickled a problem in the Ada parser.  Is it possible of you to share the project with us?  Are the other files (besides Ada source code) in the project? (Makefiles, assembly, Ant, XML...)

Another thing you could do is get a Sample from SlickEdit when it appears to be hung.  Go to the Activity Monitor and select SlickEdit and then go to View > Sample Process.  You can also collect a sample using Xcode Instruments if you are familiar with that tool.
Title: Re: High CPU use and hang
Post by: wbullaughey on September 27, 2016, 09:19:54 PM
I deleted everything I don't think you need from my project directory and zipped it up. Included is file created by sampling SlickEdit after doing a quit. Also a dump file. The workspace is in project/DB_Daemon/workspace.
Title: Re: High CPU use and hang
Post by: Dennis on September 28, 2016, 01:57:31 AM
The hang may have been due to a corrupted tag file.  I reproduced the problem initially using your project, but after deleting the tag file and restarting the editor, I no longer had the hang.

Nevertheless, I am putting some extra safety measures in the tag database code to deal better with this case.
Title: Re: High CPU use and hang
Post by: wbullaughey on September 28, 2016, 03:09:03 PM
Make sure the ada language settings include both adb and ads extensions. Removing ads changed the behavior and reduced the hangs. I'm not sure if that setting is part of the files I sent. I had ads assigned to be a text file and have never been able to close the workspace to save it back to being an ada type.
Title: Re: High CPU use and hang
Post by: wbullaughey on September 28, 2016, 03:15:44 PM
I deleted the tag file and a few other files in the Applications Support/SlickEdit subdirectory and then went through and reset quite a few options in the Editor section. When I closed the workspace SlickEdit crashed with the message in the attachment
Title: Re: High CPU use and hang
Post by: Dennis on September 28, 2016, 03:19:21 PM
Get RC3.  That crash is from Beta 4 (21.0.0.5).
Title: Re: High CPU use and hang
Post by: wbullaughey on September 29, 2016, 06:25:31 PM
RC3 fixed it