Author Topic: Slickedit on Linux freezes often when switching to foreground  (Read 4597 times)

astromme

  • Senior Community Member
  • Posts: 154
  • Hero Points: 1
Slickedit on Linux freezes often when switching to foreground
« on: August 15, 2014, 10:19:41 PM »
This problem has plagued me pretty much forever but as of late it's unbearable.

When I switch Slickedit to the foreground, it completely freezes up (other apps are fine) for somewhere between 5 and 10 seconds, then starts responding again.. I often switch and want to go for a certain line so I hit the key to Go to Line and start typing the line number.  When the freeze occurs, the dialog doesn't come up until the unfreeze, then the dialog comes up without any of the line number typing I've done.

I ran this under strace (strace vs) and don't see any system calls before or after switching or before or after the freeze.

What should I do?

SlickEdit 2013 (v18.0.1.2 32-bit)

...
License file: /opt/slickedit/bin/slickedit.lic

Build Date: August 12, 2013
Emulation: Brief

OS: Linux
OS Version: Ubuntu 10.04.4 LTS
Kernel Level: 2.6.32-38-generic
Build Version: #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012
Processor Architecture: i686

X Server Vendor: The X.Org Foundation
Memory: 77% Load, 2025MB/2629MB Virtual
Shell Info: /opt/slickedit/bin/secsh -i
Screen Size: 1920 x 1080, 1920 x 1080

Project Type: Gnuc
Language: .cpp (C/C++)

Installation Directory: /opt/slickedit/
Configuration Directory: /home/developer/.slickedit/18.0.1/
Spill File: /tmp/$slk.developer.19083


Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Slickedit on Linux freezes often when switching to foreground
« Reply #1 on: August 17, 2014, 10:19:37 AM »
I guess you don't want to upgrade ubuntu?
You could try turning off auto-reload, see if it helps.
Also try turning off the file tabs toolbar - it has some performance issues.
Or you could run slick from a brand new config folder using the -sc switch when you invoke slick
vs.exe +new -sc some-new-empty-folder
see if you still get the problem, if not try exporting your configuration from your normal config folder and importing to the new one.  (Or just rename vslick.stu to vslick.stu.old then run slick and force it to make a new one).

Or, look up "profiling" in the slick c help file index.  On the command line you can activate profiling by typing profile on/off.
If you want you could try the following code to automatically activate profiling when slick gets the focus, but my guess is the profiling won't start in time to be useful so maybe you could change the code to turn profiling on when slick loses the focus (i.e. change to if(!gettingFocus).
Functions whose name starts with _actapp_ get called when slick loses or gains the focus.  To use the code, create a new file say mytest.e in your config folder, add the following and load it using the load module command on the macro menu.

Code: [Select]
#include "slick.sh"

#pragma option(strictsemicolons,on)
#pragma option(strict,on)
#pragma option(autodecl,off)
#pragma option(strictparens,on)
 
void _actapp_too_slow(_str gettingFocus)
{
   if (gettingFocus) {
      profile("on");
   }
}

« Last Edit: August 17, 2014, 10:52:20 AM by Graeme »

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Slickedit on Linux freezes often when switching to foreground
« Reply #2 on: August 17, 2014, 06:00:38 PM »
Try tuning the following settings:

1) Tools > Options > Editing > Context Tagging > Update Workspace tag file on activate (Turn off)" and "Use background thread when possible (Turn on)"

2) Tools > Options > File Options... > Load > Auto Reload > "Auto-reload current file only (Turn on)"

3) Hide or undock the Symbols tool window, sometimes it takes a while to refresh it when there are a lot of categories expanded.

4) Make sure you have the latest 18.0.1 hot fix revision.


astromme

  • Senior Community Member
  • Posts: 154
  • Hero Points: 1
Re: Slickedit on Linux freezes often when switching to foreground
« Reply #3 on: August 19, 2014, 03:40:39 PM »
Dennis, I just followed your suggestion 1) and all looks to be well - I've run for a couple days without any freezes.

"Use background thread when possible" was already on.. is it possible that setting just wasn't working?

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Slickedit on Linux freezes often when switching to foreground
« Reply #4 on: August 27, 2014, 03:09:05 PM »
The setting was working, it was the other setting that made the difference.

natersoz

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Slickedit on Linux freezes often when switching to foreground
« Reply #5 on: August 30, 2015, 09:58:12 PM »
Thank you very much. This fixed my problem also. Fedora 22 is my Linux distro -- and it died completely without warning and then did every time I opened it up.

To get Slickedit to even start I had to hide the workspace file from it on startup.