Repository navigation
Description
Describe the bug
When I try to log in to my github account i get the following error message "Not enough memory resources available to process this command".
Version & OS
Github Desktop Version: 2.9.0 (x64)
OS: Windows 10 64bit 21H1 build 19043.1151
Steps to reproduce the behavior
- Go to 'File'
- Click on 'Options...'
- Click on 'Sign in'
- See error
Expected behavior
Successfully connect my github account.
Actual behavior
The following error message "Not enough memory resources available to process this command" appears.
Screenshots
Logs
2021-08-02T13:34:22.920Z - info: [ui] [AppStore] loading 0 repositories from store
2021-08-02T13:34:23.014Z - info: [ui] launching: 2.9.0 (Windows 10.0.19043)
2021-08-02T13:34:23.015Z - info: [ui] execPath: 'C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe'
2021-08-02T13:34:24.794Z - info: [ui] calling captureCommandOutput(where git)
2021-08-02T13:43:31.426Z - info: [ui] [AppStore] loading 0 repositories from store
2021-08-02T13:43:31.561Z - info: [ui] launching: 2.9.0 (Windows 10.0.19043)
2021-08-02T13:43:31.562Z - info: [ui] execPath: 'C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe'
2021-08-02T13:43:34.154Z - info: [ui] calling captureCommandOutput(where git)
2021-08-02T13:43:36.319Z - info: [ui] [SignInStore] initializing OAuth flow
2021-08-02T13:43:36.319Z - info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=de0e3c7e9973e1c4dd77&scope=repo%20user%20workflow&state=e29370be-3d08-4201-868f-651e7988a5e9
2021-08-02T13:43:38.937Z - info: [main] Received possible protocol arguments: 4
2021-08-02T13:43:38.937Z - info: [main] Processing protocol url
2021-08-02T13:43:38.937Z - info: [ui] [Dispatcher] requesting authenticated user
2021-08-02T13:43:39.605Z - info: [ui] [SignInStore] account resolved
2021-08-02T13:43:39.605Z - info: [ui] [AppStore] adding account FlorianW7 (Florian Weinhappl) to store
2021-08-02T13:43:39.606Z - error: [ui] Error adding account 'FlorianW7'
Error: Not enough memory resources are available to process this command.
2021-08-02T13:48:48.061Z - info: [ui] [AppStore] loading 0 repositories from store
2021-08-02T13:48:48.174Z - info: [ui] launching: 2.9.0 (Windows 10.0.19043)
2021-08-02T13:48:48.175Z - info: [ui] execPath: 'C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe'
2021-08-02T13:50:10.578Z - info: [ui] [AppStore] loading 0 repositories from store
2021-08-02T13:50:10.671Z - info: [ui] launching: 2.9.0 (Windows 10.0.19043)
2021-08-02T13:50:10.671Z - info: [ui] execPath: 'C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe'
2021-08-02T13:50:23.932Z - info: [ui] calling captureCommandOutput(where git)
2021-08-02T13:52:02.977Z - info: [main] Received possible protocol arguments: 2
2021-08-02T13:52:02.977Z - error: [main] Malformed launch arguments received: C:\Users\Florian\AppData\Local\GitHubDesktop\app-2.9.0\GitHubDesktop.exe,--allow-file-access-from-files
Additional context
I have received the same error message some time ago in Visual Studio Code as well and solved the issue by deleting all files in my temp folder. Trying this solution didn't solve my issue in Github Desktop though.

Activity
sergiou87 commentedon Aug 2, 2021
Weird, the only thing done when that error happens is storing the account token in the Windows Credential Manager:
desktop/app/src/lib/stores/accounts-store.ts
Lines 81 to 86 in 586ae2f
Which basically ends up in some Windows stuff in node-keytar: https://github.com/atom/node-keytar/blob/12484088ce0980a903627b6fc7ddaaf02188e982/src/keytar_win.cc#L116-L146
Have you tried to just reboot your computer and see if it helps?
florianweinhappl commentedon Aug 2, 2021
Yeah, I have restarted my PC quite a few times now, but the issue still persists. Is there anything else I can try?
By the way here is the other resolved issue about the same problem (atleast I think it's somehow connected) that I mentioned in my initial post: microsoft/vscode#115994
florianweinhappl commentedon Aug 2, 2021
Nevermind, I just fixed the issue by opening Github Desktop as an administrator 🤦♂️
gatorlanphear commentedon Sep 4, 2022
I solved this.
I had to go to Windows Credential Manager and DELETE an old credential.
This made room for GitHub's credential.
I'll see if it messes up that old credential or if there's going to be need for more in the future.
Gator