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

Massive wait times and freezes #380

Open
bymem opened this issue Apr 13, 2023 · 15 comments
Open

Massive wait times and freezes #380

bymem opened this issue Apr 13, 2023 · 15 comments
Labels
bug Something isn't working waiting Waiting for confirmation, more information, ...

Comments

@bymem
Copy link

bymem commented Apr 13, 2023

After a update it seems like this extension causing massive wait time and freezes when working in VS Code.
I'm mainly using this extension to connect to our servers, and editor our codes.

But it seems like after an update that the extension i causing the VSC to freeze up for several seconds like 10-15, where the whole editor becomes usable. At first i thought it others recently installed extensions, but have deactivated all other extentions right now and the issue stills persits.

i have screenshot of the process for when freeze happens, and the console log.
Screenshot 2023-04-13 at 14 56 44
Screenshot 2023-04-13 at 14 57 13
Screenshot 2023-04-13 at 14 57 17

 WARN Ignoring the error while validating workspace folder ssh://srv02/var/www/vhosts - ENOPRO: No file system provider found for resource 'ssh://srv02/var/www/vhosts'
log.ts:431  WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431  WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.remote-repositories' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431  WARN Via 'product.json#extensionEnabledApiProposals' extension 'github.vscode-pull-request-github' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431  WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-toolsai.jupyter' wants API proposal 'notebookControllerKind' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:441   ERR Extension 'github.copilot' appears in product.json but enables LESS API proposals than the extension wants.
package.json (LOSES): inlineCompletionsAdditions, interactive, terminalDataWriteEvent
product.json (WINS): inlineCompletionsAdditions
console.ts:137 [Extension Host] [vscode-sshfs] Debug mode set to false
T @ console.ts:137
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: ENOENT: no such file or directory, scandir '/var/www/vhosts'
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: ENOENT: no such file or directory, scandir '/var/www/vhosts'
T @ console.ts:137
log.ts:441   ERR ENOENT: no such file or directory, scandir '/var/www/vhosts': Error: ENOENT: no such file or directory, scandir '/var/www/vhosts'
notificationsAlerts.ts:42 Error handling readFile for: ssh://srv02/var/www/vhosts/pyproject.toml ssh://srv02/var/www/vhosts/pyproject.toml
c @ notificationsAlerts.ts:42
log.ts:421  INFO [perf] Render performance baseline is 37ms
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 Debugger attached.
log.ts:421  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:441   ERR Error: Aborted onWillSaveTextDocument-event after 1750ms
    at mainThreadSaveParticipant.ts:37:18
log.ts:421  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 Debugger attached.
log.ts:421  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:421  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 Debugger attached.
log.ts:421  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:421  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 Debugger attached.
log.ts:421  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:421  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
log.ts:431  WARN No search provider registered for scheme: ssh, waiting
@bymem
Copy link
Author

bymem commented Apr 13, 2023

Yes and update, i disabled the extension and installed anther SSH extension and the freezes are gone.

@toothmang
Copy link

toothmang commented Apr 14, 2023

I'm having the same problem. Reverted to version 1.25.0 in VS Code for now and it no longer hangs/freezes.

@bymem
Copy link
Author

bymem commented Apr 15, 2023

I'm having the same problem. Reverted to version 1.2.5 in VS Code for now and it no longer hangs/freezes.

you mean of the extension right?

@SchoofsKelvin
Copy link
Owner

SchoofsKelvin commented Apr 16, 2023

Do you make use of sshfs.configpaths? Does this also occur with an older version of VS Code, e.g. version 1.74?

The extension has nothing to do with onWillSaveTextDocument. I assume ssh://srv02/var/www/vhosts is the workspace URI you're using? The only slow thing I encounter is reading PuTTY sessions and the actual SSH2 handshake.

This issue would be easier to solve with debug logs, so please follow these steps:

  • Add DEBUG_SSH2 to the sshfs.flags array in VS Code's User Settings (settings.json)
    e.g. "sshfs.flags": ["DEBUG_SSH2"]
    • See this issue for more information about adding flags
  • If you already have a connection open, close it completely (or even reload the window)
  • Go to Output > SSH FS and copy the log from there after replicating your bug
  • While it should censor passwords/passphrases, I recommend checking it for (other) sensitive data first.
    (especially since DEBUG_SSH2 activates some internal logging, which is less likely to be censored)

@SchoofsKelvin SchoofsKelvin added bug Something isn't working waiting Waiting for confirmation, more information, ... labels Apr 16, 2023
@toothmang
Copy link

I'm having the same problem. Reverted to version 1.2.5 in VS Code for now and it no longer hangs/freezes.

you mean of the extension right?

Yes, I used the "Install Another Version" option from the extension's page to revert.

@axelhuizinga
Copy link

axelhuizinga commented Apr 17, 2023

I'm having the same problem. Reverted to version 1.2.5 in VS Code for now and it no longer hangs/freezes.

you mean of the extension right?

Yes, I used the "Install Another Version" option from the extension's page to revert.

did the same but still freezing - seems to be better as the current version but not yet solved on my debian box

@bymem
Copy link
Author

bymem commented Apr 17, 2023

here is the log file
log.txt

@David-COUDRAY
Copy link

David-COUDRAY commented Apr 22, 2023

Same issue.
Since I installed the latest version of SSH FS (1.26.1), copying/pasting, saving, accessing folders and opening files is very slow.
I'll try with 1.26.0.

It is also possible that it comes from the last version of VSC which is in 1.74 and which was updated at the same time as SSH FS

UPDATE : Still slow with 1.26.0

@toothmang
Copy link

UPDATE : Still slow with 1.26.0

I noticed this issue started with 1.26.0 on my machine. 1.26.1 was no better. Reverting to 1.25.0 seems to be working fine.

@David-COUDRAY
Copy link

I've tried to rollback to 1.25.0... Same issue.
It's possible that it comes from last VSC release.

@bymem
Copy link
Author

bymem commented Apr 24, 2023

Yeah i had to revert to 1.25.0 and a update for VSC from February for it to behave properly.

@David-COUDRAY
Copy link

I did the same thing and since then I have no problem.
VSC 1.76.2 and SSH FS 1.25.0 work fine.

I think VSC version 1.77.x is problematic.
But I don't understand why they didn't provide a corrective update. It has been several weeks

@Cleanerrr
Copy link

I have the same problem. I tried version 1.25.0, but it also causes problems for me. Only version 1.24.1 works without this problem. I noticed that versions 1.25 and 1.26 are incompatible with the Prettier extension, while version 1.24 doesn't have that problem.

@Richardgkmb
Copy link

Do you already have a plan for when the issue will be addressed?

@Lsystems
Copy link

Lsystems commented Jul 7, 2023

Same problem here. I rollback to version 1.24.1 and it works like a charm.
Window 10
VSCode 1.79.2
A coworker of mine had the same issue on his Window 11 OS, and it fixes the problem too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting Waiting for confirmation, more information, ...
Projects
None yet
Development

No branches or pull requests

8 participants