Skip to content
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

Two minute freeze when saving file in KomodoIDE #3837

Open
JesperIRL opened this issue Feb 3, 2020 · 3 comments
Open

Two minute freeze when saving file in KomodoIDE #3837

JesperIRL opened this issue Feb 3, 2020 · 3 comments

Comments

@JesperIRL
Copy link

Short Summary

It seems KomodoIDE is trying to access the filesystem of all open files when a single file is being saved. This causes a delay for exactly two minutes every time I save a local file if I have files open on servers that I currently can't access.

I have tabs with open files from a local server in my home, tabs with files from the local harddrive, and tabs with files on servers I can only access through my work VPN. When the VPN is active I can't access servers on my local network.

The file is saved before the pause - I can see that using other applications to read the file during the pause. There is no Komodo CPU activity during the two minute pause and the activity monitor (this is on Mac) says that Komodo is not responding.

I noticed this when I was editing a local file and the IDE froze completely when I saved. This did smell like a network timeout of some sort. To investigate further I disconnected my work VPN and all the sudden the freeze was gone. Now I can save without the pause. This basically confirms that the IDE was waiting for some network traffic each time I saved - even though I saved a file on my local hard drive.

I enabled the VPN again and it seemed that I could save the file without any freeze. But after a few minutes the IDE started to consume 100+% CPU. It did that for a while and then calmed down. After that the two minute freeze was back.

Steps to Reproduce

  1. Open a file on the local harddrive.
  2. Open a file on a server in the local network.
  3. Setup a VPN connection that blocks out access to the local network.
  4. Open a file on a remote server through the VPN.
  5. Leave it for 30-40 minutes or util you notice the CPU load go crazy for a while.
  6. Make some change and save the local file.

Expected results

No freeze.

Actual results

Two minute freeze.

Platform Information

Komodo Edit or IDE? Komodo IDE
Komodo Version? 12.0
Operating System (and version)? MacOS Mojave 10.14.6

Additional Information

The log confirms that this is a network timeout:
(I'm not sure why the first warning is there, but it happened at the time when I hit command-s to save the file so the timestamps show the two minute delay.)

[2020-02-03 22:55:08,614] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-03 22:57:19,465] [ERROR] koSFTPConnection: SFTP do_openSocket ERROR: timed out
[2020-02-03 22:57:19,626] [ERROR] console-logger: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIRemoteConnectionService.getConnectionUsingUri] (2) in chrome://breadcrumbs/content/sdk/breadcrumbs.js:1519
Traceback (most recent call last):
File "chrome://breadcrumbs/content/sdk/breadcrumbs.js", line 1519, in

[2020-02-03 22:57:19,664] [INFO] codeintel/process: onClose called, code: 9
[2020-02-03 22:57:19,664] [INFO] codeintel/process: Process stopped without a request to stop it, restarting ..
[2020-02-03 22:57:19,664] [INFO] codeintel/process: Restarting CodeIntel
[2020-02-03 22:57:19,664] [INFO] codeintel/process: Starting CodeIntel
[2020-02-03 22:57:19,666] [DEBUG] codeintel/process: PYTHONPATH: /Applications/Komodo IDE 12.app/Contents/MacOS/../lib/python2.7;/Applications/Komodo IDE 12.app/Contents/SharedSupport/dbgp/pythonlib;/Applications/Komodo IDE 12.app/Contents/Resources/extensions/codeintel@activestate.com/content/../pylib/codeintel/lib;/Applications/Komodo IDE 12.app/Contents/Resources/extensions/codeintel@activestate.com/content/../pylib/codeintel/env/Lib/site-packages
[2020-02-03 22:57:20,318] [WARNING] codeintel/service/mediator: Waiting for mediator
[2020-02-03 22:57:20,995] [WARNING] codeintel/service/mediator: Waiting for mediator
[2020-02-03 22:57:25,071] [DEBUG] codeintel/process: stdout:
port:52014

pid:6548

[2020-02-03 22:57:25,072] [INFO] codeintel/process: CodeIntel started on port 52014
[2020-02-03 22:57:25,072] [DEBUG] codeintel/process: Calling callbacks for: started, number: 1

@th3coop
Copy link
Member

th3coop commented Feb 3, 2020

@JesperIRL are you sure you don't have ctrl+s mapped to save all or something? Could you go into your prefs (Komodo menu > Preferences > Keybindings) and make sure you're using the Default scheme and try again?

@JesperIRL
Copy link
Author

It's the default scheme. "General: Save" is "Meta+S".
Save all requires the ctrl key as well.

@th3coop
Copy link
Member

th3coop commented Feb 3, 2020

Oh right, you're on OSX, Meta + S. Thanks for double checking.

Could you open the JS Console, View menu > Tabs & Sidebars > Console, and run the following, require("ko/logging").getLogger("koSFTPConnection").setLevel(10), then reproduce the issue and email me your logs, careyh@activestate.com.

Also, could you see if setting the timeout pref in your server settings help at least prevent this from hanging for so long?

  • Carey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants