microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.8k stars 29.12k forks source link

Randomly starts crashing - need to restart #229868

Closed fz1958 closed 3 weeks ago

fz1958 commented 1 month ago

Type: Bug

happens randomly, not sure how to reproduce

VS Code version: Code 1.93.1 (Universal) (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z) OS version: Darwin arm64 24.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 (8 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|6, 6, 6| |Memory (System)|8.00GB (0.19GB free)| |Process Argv|--crash-reporter-id 08db9d76-408b-4e6c-8504-c799e272a7c9| |Screen Reader|no| |VM|0%|
Extensions (20) Extension|Author (truncated)|Version ---|---|--- ng-template|Ang|18.2.0 postcss|css|1.0.9 prettier-vscode|esb|11.0.0 copilot|Git|1.234.0 copilot-chat|Git|0.20.3 vscode-github-actions|git|0.27.0 prettify-json|moh|0.0.3 vscode-docker|ms-|1.29.3 black-formatter|ms-|2024.2.0 debugpy|ms-|2024.10.0 isort|ms-|2023.10.1 python|ms-|2024.14.1 vscode-pylance|ms-|2024.9.2 jupyter|ms-|2024.8.1 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.19 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 remote-containers|ms-|0.384.0 vscode-maven|vsc|0.44.0
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 g316j359:31013175 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 newcmakeconfigv2:31071590 impr_priority:31102340 nativerepl1:31139838 refactort:31108082 pythonrstrctxt:31112756 flighttreat:31134774 wkspc-onlycs-t:31132770 wkspc-ranged-c:31125598 ei213698:31121563 iacca2:31138163 ```
fweth commented 1 month ago

Not sure if related, but my VSCode started to crash when I use the file/folder selector and then navigate to a folder which contains a valid JSON file. I'm not even attempting to open the folder or the file. First I thought the bug must be related to the file selector from the system (Thunar), but in other applications I can open the same folders without problems.

EDIT: In my case it looks veeery similar to this bug. However, they say it's fixed in glib 2.78, but for me the issue started just today. Could it be that the Code Insiders snap package includes a faulty glib version?

joshspicer commented 1 month ago

Thanks for opening an issue. For us to take a closer look at this we'll need a bit more information. We have some documentation on capturing crash reports. Running in this mode and using VS Code like normal will collect helpful data for us to further debug. Please update this issue if you're able to collec that info for us :)

https://github.com/microsoft/vscode/wiki/Native-Crash-Issues

vs-code-engineering[bot] commented 3 weeks ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!