Repository: vscode
Issue: Crash after start
Labels: freeze-slow-crash-leak,linux,wayland


[vscode-crash.zip](https://github.com/user-attachments/files/16045507/vscode-crash.zip)
Type: <b>Performance Issue</b>

1. Start VS Code (last project folder is opened)
2. Maximize the window
3. Open new window
4. Open folder in the 2nd window
5. Maximize the 2nd window

I think that crash happens while 1st window is finishing loading of the project folder - as once I wasn't able to open 2nd window before the crash. Crash is not reproducible, happens on daily basis. 

I also sometimes get other error, VS Code starts with empty window and dialogue about crash error number 132.

VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:33:48.698Z)
OS version: Linux x64 6.9.5-200.fc40.x86_64
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 5 7600 6-Core Processor (12 x 4242)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|0, 0, 0|
|Memory (System)|30.49GB (23.10GB free)|
|Process Argv|--crash-reporter-directory /home/$USER/vscode-crash/|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|gnome|
|XDG_CURRENT_DESKTOP|GNOME|
|XDG_SESSION_DESKTOP|gnome|
|XDG_SESSION_TYPE|wayland|
</details><details>
<summary>Process Info</summary>

```
CPU %	Mem MB	   PID	Process
    0	   156	 28924	code main
    0	    31	 28931	   zygote
    0	   156	 28966	     gpu-process
    0	    31	 28932	   zygote
    0	     0	 28934	     zygote
    0	   187	 29016	window [1] (Koan.hs - rhine-koans - Visual Studio Code)
    0	   187	 29556	window [2] (RhineSDL.hs - secunda - Visual Studio Code)
    0	    94	 30693	window [3] (Issue Reporter)
    0	    62	 28971	   utility-network-service
    0	    94	 29047	extensionHost [1]
    0	  1093	 29381	     /home/$USER/.ghcup/hls/2.5.0.0/lib/haskell-language-server-2.5.0.0/bin//haskell-language-server-9.6.3 --lsp
    0	    94	 29059	shared-process
    0	    62	 29061	fileWatcher [1]
    0	    62	 29807	ptyHost
    0	    94	 29840	fileWatcher [2]
    0	    94	 29849	extensionHost [2]
    0	  1124	 30066	     /home/$USER/.ghcup/hls/2.5.0.0/lib/haskell-language-server-2.5.0.0/bin//haskell-language-server-9.6.3 --lsp
```

</details>
<details>
<summary>Workspace Info</summary>

```
|  Window (RhineSDL.hs - secunda - Visual Studio Code)
|  Window (Koan.hs - rhine-koans - Visual Studio Code)
|    Folder (secunda): 14659 files
|      File types: html(11082) css(675) js(669) json(442) txt(275) png(233)
|                  haddock(221) hi(72) dyn_hi(70) so(36)
|      Conf files:
|    Folder (rhine-koans): 1273 files
|      File types: hs(161) hi(78) o(78) log(52) lock(42) cache(41) h(40)
|                  txt(26) md(5) yml(2)
|      Conf files: github-actions(1);
```

</details>
<details><summary>Extensions (5)</summary>

Extension|Author (truncated)|Version
---|---|---
haskell|has|2.4.4
language-haskell|jus|3.6.0
language-koka|kok|3.1.2
rust-analyzer|rus|0.3.2011
vscode-zig|zig|0.5.8


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelc:31048052
dsvsc021:30996838
da93g388:31013173
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
legacy_priority:31082724

```

</details>

<!-- generated by issue reporter -->