Author Topic: High CPU use and hang  (Read 2013 times)

wbullaughey

  • Community Member
  • Posts: 74
  • Hero Points: 2
High CPU use and hang
« 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

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2567
  • Hero Points: 385
Re: High CPU use and hang
« Reply #1 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.

wbullaughey

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: High CPU use and hang
« Reply #2 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.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2567
  • Hero Points: 385
Re: High CPU use and hang
« Reply #3 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.

wbullaughey

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: High CPU use and hang
« Reply #4 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.

wbullaughey

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: High CPU use and hang
« Reply #5 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

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2567
  • Hero Points: 385
Re: High CPU use and hang
« Reply #6 on: September 28, 2016, 03:19:21 pm »
Get RC3.  That crash is from Beta 4 (21.0.0.5).

wbullaughey

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: High CPU use and hang
« Reply #7 on: September 29, 2016, 06:25:31 pm »
RC3 fixed it