-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
VSC crashes almost immediately after launching it. #213041
Comments
This helped me once. |
Adding "window.titleBarStyle": "custom" results in the application border to disappear and for VSC to become a blue rectaangle. sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory |
Issue Description: I have been experiencing a persistent issue with Visual Studio Code on Kali Linux where the editor crashes when opening projects that contain Git files. This issue does not occur when the project does not have Git initialized. Other editors do not seem to have this problem, making me suspect that the issue is specifically related to VS Code's handling of Git repositories. Steps to Reproduce:
Expected Behavior: Actual Behavior: Screenshots: System Information:
Additional Information: |
Hi, I have installed Linux Debian on my windows drive as it has more space and is faster and on VSC there is no issue. I can launch it with no parameter like for example --disable-gpu. I still have my old drive with Linux Debian with the malfunctionning VSC to attempt. As for the comments left by isaka-james, I am not able to open any file or folder in VSC tho I will try running it in a clean folder with no .git. |
@MomSlayerGX I switched to vim, when they'll resolve this issue I will come back to vscode. So how come you are writing code in 2024 without git? Very frustrating ! |
Not sure if it works but if you are using kde can you switch from wayland(or whatever it is called) to xorg/x11 (or whatever it is called) or vice versa, maybe it might solve the issue. |
So how do that relate to vscode quitting when it is associated projects with git? |
In my case the problem is a new version of VSCode from snap. To solve it I had to revert to the previous version with the command |
@hierro59 I installed Vscode using apt. And yesterday I reinstalled again the vscode but still the same problem. And I tested from my Friend Pc(who is using Kali Linux as me) who said for him it worked fine but when I added git, the vscode started to crash.But when you remove the .git from the project vscode just worked fine. But how can you code without git 😔 |
Does this issue occur when all extensions are disabled?: Yes*(I used --disable-extensions parameter in the terminal to achieve that)
Steps to Reproduce:
Steps taken to resolve:
Result: Same issue persists, there was no key for vsc
2: Run code without gpu or extensions by (
code --disable-extensions --disable-gpu
) in terminalResult: Nothing changed
Result: Same issue persists
Result: Same as before
Other information
what vsc looks like before it crashes, ignore the background text that is from --verbose
Result of --verbose with above listed parameters. Only includes some information as it is too long
`
[11029:0520/002048.564240:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[main 2024-05-19T20:50:48.663Z] [File Watcher (node.js)] Request to start watching: /home/quack/.config/Code - Insiders/User (excludes: , includes: , filter: , correlationId: ),/home/quack/.config/Code - Insiders/User/settings.json (excludes: , includes: , filter: , correlationId: )
[main 2024-05-19T20:50:48.678Z] Starting VS Code
[main 2024-05-19T20:50:48.678Z] from: /usr/share/code-insiders/resources/app
[main 2024-05-19T20:50:48.678Z] args: {
_: [],
diff: false,
merge: false,
add: false,
goto: false,
'new-window': false,
'reuse-window': false,
wait: false,
help: false,
'list-extensions': false,
'show-versions': false,
'pre-release': false,
'update-extensions': false,
version: false,
verbose: true,
status: false,
'prof-startup': false,
'no-cached-data': false,
'prof-v8-extensions': false,
'disable-extensions': true,
'disable-lcd-text': false,
'disable-gpu': true,
'disable-chromium-sandbox': false,
sandbox: false,
telemetry: false,
debugRenderer: false,
'enable-smoke-test-driver': false,
logExtensionHostCommunication: false,
'skip-release-notes': false,
'skip-welcome': false,
'disable-telemetry': false,
'disable-updates': false,
'use-inmemory-secretstorage': false,
'disable-workspace-trust': false,
'disable-crash-reporter': false,
'crash-reporter-id': '28145a5d-fc2e-4813-b374-cb36002556a7',
'skip-add-to-recently-opened': false,
'open-url': false,
'file-write': false,
'file-chmod': false,
force: false,
'do-not-sync': false,
trace: false,
'preserve-env': false,
'force-user-env': false,
'force-disable-user-env': false,
'open-devtools': false,
'disable-gpu-sandbox': false,
'__enable-file-policy': false,
'enable-coi': false,
'no-proxy-server': false,
'no-sandbox': false,
nolazy: false,
'force-renderer-accessibility': false,
'ignore-certificate-errors': false,
'allow-insecure-localhost': false,
'disable-dev-shm-usage': false,
'profile-temp': false,
logsPath: '/home/quack/.config/Code - Insiders/logs/20240520T002048'
}
[main 2024-05-19T20:50:48.679Z] Resolving machine identifier...
[main 2024-05-19T20:50:48.680Z] Resolved machine identifier: 23f6b25a395f8a7f7a2439500703303db53daa51725a20450c251a9c9b9f0b56
[main 2024-05-19T20:50:48.680Z] Main->SharedProcess#connect
[main 2024-05-19T20:50:48.686Z] [File Watcher (node.js)] Started watching: '/home/quack/.config/Code - Insiders/User'
[main 2024-05-19T20:50:48.686Z] [File Watcher (node.js)] ignoring a path for watching who's stat info failed to resolve: /home/quack/.config/Code - Insiders/User/settings.json (error: Error: ENOENT: no such file or directory, stat '/home/quack/.config/Code - Insiders/User/settings.json')
[main 2024-05-19T20:50:48.687Z] StorageMainService: creating application storage
[main 2024-05-19T20:50:48.691Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2024-05-19T20:50:48.691Z] lifecycle (main): phase changed (value: 2)
[main 2024-05-19T20:50:48.691Z] windowsManager#open
[main 2024-05-19T20:50:48.692Z] windowsManager#open pathsToOpen [
{
backupPath: '/home/quack/.config/Code - Insiders/Backups/1716151208841',
remoteAuthority: undefined
}
]
[main 2024-05-19T20:50:48.692Z] windowsManager#doOpenEmpty {
restore: true,
remoteAuthority: undefined,
filesToOpen: undefined,
forceNewWindow: true
}
[main 2024-05-19T20:50:48.693Z] IPC Object URL: Registered new channel vscode:12868136-fe49-44af-a237-c05aa4a32be7.
[main 2024-05-19T20:50:48.694Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 448, y: 268, width: 1024, height: 768 }
[main 2024-05-19T20:50:48.694Z] window#validateWindowState: single monitor working area { x: 0, y: 0, width: 1920, height: 1080 }
[main 2024-05-19T20:50:48.694Z] window#ctor: using window state { mode: 1, x: 448, y: 268, width: 1024, height: 768 }
[0520/002048.709956:ERROR:directory_reader_posix.cc(43)] opendir /home/quack/.config/Code - Insiders/Crashpad/attachments/59c50637-32f0-468d-96aa-3db90e3f6b9a: No such file or directory (2)
[main 2024-05-19T20:50:48.752Z] window#load: attempt to load window (id: 1)
[main 2024-05-19T20:50:48.764Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
[main 2024-05-19T20:50:48.765Z] lifecycle (main): phase changed (value: 3)
[main 2024-05-19T20:50:48.765Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2024-05-19T20:50:48.766Z] update#setState idle
[0520/002048.785598:ERROR:http_transport_libcurl.cc(472)] curl_easy_perform: Couldn't connect to server (7)
[main 2024-05-19T20:50:48.795Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[11029:0520/002049.256982:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=139
[11029:0520/002049.256992:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 1 time(s)
[0520/002049.394062:ERROR:directory_reader_posix.cc(43)] opendir /home/quack/.config/Code - Insiders/Crashpad/attachments/390301a3-2230-499b-b8c1-c7f748d99b98: No such file or directory (2)
[0520/002049.452297:ERROR:http_transport_libcurl.cc(472)] curl_easy_perform: Couldn't connect to server (7)
[11029:0520/002049.906181:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=139
[11029:0520/002049.906190:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 2 time(s)
[0520/002050.030161:ERROR:directory_reader_posix.cc(43)] opendir /home/quack/.config/Code - Insiders/Crashpad/attachments/866378ea-cb1f-4b7e-92ff-ee7a33802a3e: No such file or directory (2)
[0520/002050.110828:ERROR:http_transport_libcurl.cc(472)] curl_easy_perform: Couldn't connect to server (7)
[11029:0520/002050.554812:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=139
[11029:0520/002050.554822:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 3 time(s)
[0520/002050.676253:ERROR:directory_reader_posix.cc(43)] opendir /home/quack/.config/Code - Insiders/Crashpad/attachments/beb6966c-a6cc-4df9-a074-9500a69bf37e: No such file or directory (2)
`
The text was updated successfully, but these errors were encountered: