-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
error logging in 'writing login information to the keychain failed with error 'not enough memory resources are available to process this command' #130893
error logging in 'writing login information to the keychain failed with error 'not enough memory resources are available to process this command' #130893
Comments
(Experimental duplicate detection) |
@apsoftwaredev there was an issue with the last insiders build. Can you update to the latest one and let us know if you're still seeing this? |
Thank you. Version: 1.60.0-insider (user setup) |
Just updated again. Issue remains. Thank you. Version: 1.60.0-insider (user setup) |
This is likely an issue with the library we use for storing secrets called keytar but it's impossible for me to reproduce... so it'll be hard for me to make progress here. |
+1 Where can I find logs or what information do you need that would assist in resolving the issue? |
Hey did you manage to fix this? Same problem.. |
Third that Same issue also... |
I am also getting the same issue as well, both trying to sign in with my Microsoft Account for Settings Sync and with GitHub for Settings Sync, GitLens, or LiveShare. Visual Studio 2022 is also having problems connecting to GitHub, and since the new connection successful screen doesn't display the token information, I cannot even connect it manually. |
@apsoftwaredev do you see this only when using a Remote SSH/Remote Container connection? Your original video that it was a Remote connection. To the others in the thread, do you also experience this when using Remote? |
@TylerLeonhardt I see it when using the Accounts -> Sign In commands in the bottom left. Whether I use it to sign in to use Settings Sync or LiveShare (with either Microsoft Account or GitHub), or using GitHub for GitLens. I now get the token information with the instructions:
But, there is no "Signing in to github.com..." in the status bar, just the error message noted. |
Are you using a Remote? Like Remote SSH, Remote WSL, Remote Containers? |
@TylerLeonhardt no, just launching VS Code and attempting to sign in. Seems to be a problem with saving the token on the redirect. |
I solved this by changing my pagefile settings by doing: edit: I'm not sure why the pagefile would affect it though. I have 128GB of RAM. |
Thank you @PrincessRavy , that seems to have fixed it for me as well. |
|
Sadly, this did not work for me and I share the doubt about how a page file setting can affect this. I even tried it with the paging file completely disabled. Any other ideas? |
My change hasn't gone in yet 😅 |
I haven't seen this problem for about a week on Insiders build, after several attempts to remove all credentials manually or with script. Problem re-emerged few times, but works as expected after another run of the script. Hope update would fix it for everyone and it won't re-emerge again. P.S. I haven't use a lot of workspaces lately (as mentioned in PR), will try to get into bad state before update once again. |
Looking at your fix, I might be more aggressive about deleting all the chunks even if one of those deletes fails, for example, could 2 vscode instances be trying to delete the same chunks at the same time? Do you know what the user scenario is that results in very large passwords that need chunking? That might help me test it better... |
This isn't possible because deletes are now handled sequentially thanks to that PR.
Microsoft Auth via Settings Sync. The limit in CredMan is a measly 2500 characters. A refresh token that gets stored in Cred Man is usually way larger than that. That refresh token also gets updated every reload of a window (every time Microsoft Auth extension is activated) hence the issue with multiple windows writing at the same time when a VS Code update happens. |
@TylerLeonhardt Your suspected behavior written up in the PR definitely tracks with my usage patterns and observations. I'm looking forward to the fix! Should we clear out the hundreds of tokens inside CredMan ahead of your fix going live? Or will they get cleared/handled as part of your revised operations? Thanks! |
@plwalsh you'll want to clear out CredMan. |
I just updated to 1.76.1. Now multiple vscode windows cannot sign in sync. A sign-in of one window will kick off others'. |
It's likely the same problem since this issue was addressed in 1.77 which is only in insiders and will be released in a few weeks. |
@TylerLeonhardt I was able to reproduce on my PC with After cleaning up credentials, updating, cleaning up again - 12+ days without issues. I think I was asked once (it might been for GHPR extension), but there is definitely no "spam" in credentials so far. |
Thanks for your report @IllusionMH. This one...... will be hard to verify.... and I think what you did is as close to a proper verification as we will get. I will mark this as verified and we will see what the 1.77 stable release gives us in a couple weeks. If anyone sees this issue in 1.77-insiders until then, please don't hesitate to reach out. |
This issue doesn't look the same as #177556, but I'll wait for 1.77 and reopen my bug report if the issue is not fixed. |
@TylerLeonhardt Now I am asked regularly to choose account so sync my settings from and when the list appears the Microsoft account appears as "(signed in)". I cleared the stored authentications a week ago (before the 1.77 update). |
Looks like folks still see this in 1.77 at least partially. I need a new issue because this one is just way to busy... so we'll keep going in #179202 (comment) |
this is useful! |
Just want to report that on Windows, the keychain could get into a bad state due to this issue, after which even upgrading to the newer version of vscode doesn't help'. One would need to take the actions suggested in https ://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues, as mentioned above, which solved the issue for me. |
@TylerLeonhardt it is actually worse now. I am being asked to select the account to sync settings from repeatedly upon launching VS Code. The Microsoft accont I am using appears as "(Signed in)", so the token does not appear to be lost, just disacossiated. I can't see anything within the logs. |
Is it worse or did your Windows credentials just get full? That happens to me from time-to-time and it's annoying. This comment posted above provided a recipe for deleting all of the Windows credentials. This fixes it for a while, then I have to do it again. |
👋 folks, re-posting what I'm saying above:
|
Does this issue occur when all extensions are disabled?: Yes/No
unable to start container without extensions enabled
Commit: 9dd4f31
Date: 2021-08-16T05:21:19.431Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000
Steps to Reproduce:
VSCode Insiders Edition on Windows Insider gives error every time when logging in to GitHub and other sites 'writing login information to the keychain failed with error 'not enough memory resources are available to process this command'. Also, have set up ssh, but still requires web authentication for extensions every time I open VSCode. It gives the error, but then continues to login after the error and does not save login information.
after opening VSCode insiders
(working) Version: 1.59.0 (system setup)
Commit: 379476f
Date: 2021-08-04T23:13:12.822Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.22000
Regular Edition does not give the error and I do not have to login to github everytime the app starts.
https://www.loom.com/share/b7b2411e8c3147a88b2fec7e1eaa03f3
The text was updated successfully, but these errors were encountered: