Skip to content

Coredump On Close - "watcher.node"? #136264

Closed

Description

@vindicatorr

Issue Type: Bug

VS Code version: Code - Insiders 1.62.0-insider (ff1e16e, 2021-10-29T07:49:33.336Z)
OS version: Linux x64 5.13.1-dirty
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz (4 x 3391)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 4, 4
Memory (System) 7.23GB (0.24GB free)
Process Argv --crash-reporter-id a2928a5c-190e-4d25-8038-9980bdeb3821
Screen Reader no
VM 0%
DESKTOP_SESSION plasma
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE x11
Extensions (14)
Extension Author (truncated) Version
xml Dot 2.5.0
vscode-solution-explorer fer 0.4.3
ilspy-vscode ics 0.12.1
vscode-nuget-package-manager jmr 1.1.6
cortex-debug mar 0.3.7
blazorwasm-companion ms- 1.0.1
csharp ms- 1.23.16
vscode-dotnet-runtime ms- 1.0.0
cmake-tools ms- 1.9.0
cpptools ms- 1.6.0
devicetree plo 0.1.1
vscode-xml-complete rog 0.3.0
msbuild-project-tools tin 0.3.15
cmake twx 0.0.17
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256197
pythontb:30258533
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
pythonvsuse255:30319630
vscod805cf:30301675
pythonvspyt200:30323110
vsccppwt:30382699
bridge0708:30335490
pygetstartedt2:30353727
bridge0723:30353136
pythonrunftest32:30365365
pythonf5test824:30361779
javagetstartedt:30350119
pythonvspyt187:30365360
pydsgst2:30361790
vsaa593cf:30376535

Nov 01 22:02:50 computerName systemd-coredump[265334]: [🡕] Process 65506 (code-insiders) of user 1000 dumped core.
                                                 
                                                 Found module <pathTo>/VSCode-linux-x64/code-insiders with build-id: 1db4b1bb686b67bdfa55c5a786f4efa1ad24cdeb
                                                 Found module <pathTo>/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@parcel/watcher/build/Release/watcher.node without build-id.
                                                 Found module <pathTo>/VSCode-linux-x64/libffmpeg.so with build-id: 25b3712cab44f7589c54878391ac8deca75485f2
                                                 Found module linux-vdso.so.1 with build-id: ff8c606f703af4cd18720b6d663de3d350aa3acf
                                                 Found module libstdc++.so.6 with build-id: 8ab0e57054dd1dcba681f217016afc6a4e639783
                                                 Found module libicudata.so.69 with build-id: 0ab994a49ef1848499c4af333b3266f28432a922
                                                 Found module libbrotlicommon.so.1 with build-id: f68934f94312f770550ebc6c5acfd6359b098b07
                                                 Found module libgpg-error.so.0 with build-id: ba85170c2d9343ea05eea8fa2048c212ff4ef552
                                                 Found module libdatrie.so.1 with build-id: 6fe3b6ece2c8e7d11869fa051375128d8f808f58
                                                 Found module libxml2.so.2 with build-id: b9441ffabb52b50c290152592f17cd78a381d493
                                                 Found module libjson-glib-1.0.so.0 with build-id: 5865be5fcc01b48a0a113e0145ec45529bff89a6
                                                 Found module libsqlite3.so.0 with build-id: b5c21727dd6a9dcb95e6e57c0767158fddcb3245
                                                 Found module libicui18n.so.69 with build-id: 9cdecde5b2e47a2bd81dc14915cbfefcade76c12
                                                 Found module libicuuc.so.69 with build-id: 5cf18c56e2f64efdac32cf61fb9c0c48e9bb1797
                                                 Found module libstemmer.so.0 with build-id: d3e1b30a80f7b5ead032dd8f97319865366449eb
                                                 Found module libbrotlidec.so.1 with build-id: f871e6f204ab8d48099915126ba01be989a8000f
                                                 Found module libbz2.so.1.0 with build-id: 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
                                                 Found module libgraphite2.so.3 with build-id: 47761dc11e553f519cde97ed9ee985be12ccdae2
                                                 Found module libgcrypt.so.20 with build-id: db45f5d5e0f7af1e77324fea1885f974619ad268
                                                 Found module libcap.so.2 with build-id: c1674f9082fedd415876b9f7d9712269163259b5
                                                 Found module liblz4.so.1 with build-id: e63600ab23b2f6997f42fac2fa56e1f02ce159a1
                                                 Found module libzstd.so.1 with build-id: 4b10444c1560ebc574af4d5f488b7408b22d450e
                                                 Found module liblzma.so.5 with build-id: 8b615460aa230708c5183f16bede67aa0437d95e
                                                 Found module libblkid.so.1 with build-id: f03a24e92c9852272bd0049b5bcb7ed6cf0e664f
                                                 Found module libwayland-server.so.0 with build-id: 7156897eafc4b7562f2b214e6ad8ca6c85c57e47
                                                 Found module libXdmcp.so.6 with build-id: 8ca0792d23c8b8b4c0864297512349292bea5955
                                                 Found module libXau.so.6 with build-id: 1c67764663e07bec24d8951e5fd93f4d165979ff
                                                 Found module libpixman-1.so.0 with build-id: 341f793dcada3a48a306a793d265a517e3f2e7d6
                                                 Found module libxcb-shm.so.0 with build-id: fb797f299a446f559a95afcc168227482cc800d1
                                                 Found module libxcb-render.so.0 with build-id: a37bdb37744b508be9dd29fd9ccb9bb0170d43e5
                                                 Found module libXrender.so.1 with build-id: 97e0b9ab6ba96ebc86527cc2b3c3078aad8616b3
                                                 Found module libthai.so.0 with build-id: 3fdce1a7db2b94d9168eea540dbf5ff5caa3b8ad
                                                 Found module libXinerama.so.1 with build-id: dbb6adece34ea2766d3efcd628af8f9757344dd6
                                                 Found module libXcursor.so.1 with build-id: eb6315bcd7526aaf51b0a1307efdc587cea0a152
                                                 Found module libwayland-egl.so.1 with build-id: 791e39283cdcc5a08cfd091b8cd4c59869a11278
                                                 Found module libwayland-cursor.so.0 with build-id: ca6839778a1490fdd8e3d8aadc9604afa19ab8ea
                                                 Found module libwayland-client.so.0 with build-id: d274361e7aa57c9b63504a039e063322450cbb9c
                                                 Found module libtracker-sparql-3.0.so.0 with build-id: ab1223261f5b835c18018411544c0c7a16b95046
                                                 Found module libcloudproviders.so.0 with build-id: ed1d9c9e60be4e858ad148484767249be1edf95f
                                                 Found module libXi.so.6 with build-id: 16603be937a02a7e61b0b0395d064be7efd86f49
                                                 Found module libepoxy.so.0 with build-id: b6357fc6b748c512f90339433d74502b9d0621dc
                                                 Found module libcairo-gobject.so.2 with build-id: abbf5a8a182ea1b8b7d68540df5c2e25c0bdae0c
                                                 Found module libfribidi.so.0 with build-id: 79124bad061c2aab4ec89f25d067363d5b781114
                                                 Found module libfreetype.so.6 with build-id: 65e7f4a1e5557b0ceeaa433e5356f857fe9c669b
                                                 Found module libfontconfig.so.1 with build-id: 1103a641395c7d3b42e49b793d3a9ea927c77bf6
                                                 Found module libpangoft2-1.0.so.0 with build-id: 52a846673f7bf9e8acdd0ae9a825926c9cfc5920
                                                 Found module libharfbuzz.so.0 with build-id: f954dfb80265c0dd2484e766282305a739b8239d
                                                 Found module libpangocairo-1.0.so.0 with build-id: 2554be0474a6ee311b6e9aa4fd79a244167cdcfd
                                                 Found module libtiff.so.5 with build-id: e8d89a0fb0847641ddb75c5f03fa89d68155a75d
                                                 Found module libjpeg.so.8 with build-id: 5d102b1a7291a621bba049969d25ead0ccecc6cc
                                                 Found module libpng16.so.16 with build-id: 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3
                                                 Found module libsystemd.so.0 with build-id: eb468d8d869a836974a3806872aa2ae83078ed4d
                                                 Found module libplc4.so with build-id: e3d338de1e8d5ea2f98a87af9157b17f92278d83
                                                 Found module libplds4.so with build-id: a2dcd5d4a1d3dccbf591e36bcc8d84162751c0a8
                                                 Found module libresolv.so.2 with build-id: c915c72668282861a813f7ea3c0780f37b681dc0
                                                 Found module libmount.so.1 with build-id: ff9a1d99d35cf640d0bfdaba294854372672c29b
                                                 Found module libz.so.1 with build-id: 81bf6e728a6d6f5b105b0f8b25f6c614ce10452a
                                                 Found module libgmodule-2.0.so.0 with build-id: 34cabbd12d9baf397a0255f174e4c96165bc329b
                                                 Found module libpcre.so.1 with build-id: 845483dd0acba86de9f0313102bebbaf3ce52767
                                                 Found module libffi.so.8 with build-id: f90d8b734f6de9b25faedb8cbfab7054dafc0a42
                                                 Found module ld-linux-x86-64.so.2 with build-id: 040cc3dd10461562f177df39e3be2f3704258c3c
                                                 Found module libc.so.6 with build-id: 4b406737057708c0e4c642345a703c47a61c73dc
                                                 Found module libgcc_s.so.1 with build-id: 7f8508bb914546ada778809b64b99d234337d835
                                                 Found module libatspi.so.0 with build-id: 046ee7a264956ff92020b0773ab583b23b93933c
                                                 Found module libasound.so.2 with build-id: 9288c92ff737b1999761df2018fcd0e7cbf46d5a
                                                 Found module libgbm.so.1 with build-id: 545f14ad495e5b1abc10151280daa3c2d736447d
                                                 Found module libxkbcommon.so.0 with build-id: 1f1bc7527e57c886c3df5803068122e1971d4724
                                                 Found module libxcb.so.1 with build-id: 0d1ef11740a5daad2ee331e812a51aa6574af222
                                                 Found module libexpat.so.1 with build-id: 8850138eae6d9d4d43c5c4b2ac48393bc4279037
                                                 Found module libXrandr.so.2 with build-id: d4e869b5c72541e1de8f96b456248987ea52d51b
                                                 Found module libXfixes.so.3 with build-id: 0a05c7e8714522bfbdd7c0027c3e2a94965664b0
                                                 Found module libXext.so.6 with build-id: d70f24beb4fad748d6becffdcc13e51be0a2ebfa
                                                 Found module libXdamage.so.1 with build-id: a1d867e093c16944b2c0083be98050ef35c9e5c2
                                                 Found module libXcomposite.so.1 with build-id: f1bb5ffb6203ab2907ac044a204ce3902a79f1c1
                                                 Found module libX11.so.6 with build-id: e9192497aa39fab51358826d1a1b5fb77edc5081
                                                 Found module libm.so.6 with build-id: 2b8fd1f869ecab4e0b55e92f2f151897f6818acf
                                                 Found module libcairo.so.2 with build-id: 06820af9cf79c2deb207d9533a61caf04e67a8ad
                                                 Found module libpango-1.0.so.0 with build-id: 5deae7c16592ea404754114e8ae56ddf9cf4ca7e
                                                 Found module libgdk-3.so.0 with build-id: b056619db3ba9fc6b33353703d60298125a23473
                                                 Found module libgtk-3.so.0 with build-id: f29f0b8d0a86f1371a88cd1484229c1f31a2b122
                                                 Found module libgdk_pixbuf-2.0.so.0 with build-id: ca4beb15a30de8d8767f7bca8222038c61b58b36
                                                 Found module libdrm.so.2 with build-id: 3aeff5403ca8d7589eabc05752eb613937f454a1
                                                 Found module libdbus-1.so.3 with build-id: 74f2ab9c60512f3a93c932c3f627564d42e0b11e
                                                 Found module libatk-bridge-2.0.so.0 with build-id: 1161ebbcc5aa791075dfa026671875e5417287bd
                                                 Found module libatk-1.0.so.0 with build-id: aacaa40363d304858b654728a893bc212a4ca119
                                                 Found module libnspr4.so with build-id: d737bfb932206eb128a493cc70cedd63714e814f
                                                 Found module libsmime3.so with build-id: dec5e3e8ddfca7ab4eb5393320798237bc3dc1e8
                                                 Found module libnssutil3.so with build-id: bafb7c2f814be63ca73b4205bb12a292ebab8b7f
                                                 Found module libnss3.so with build-id: d19631624d51838d42878ca24703d63414a387eb
                                                 Found module libgio-2.0.so.0 with build-id: 3338d7168eab6039416e1b6dbb7ea3ef213cd129
                                                 Found module libxshmfence.so.1 with build-id: 8876d9ccf620858795724ca24b9e567585a77cec
                                                 Found module libglib-2.0.so.0 with build-id: 1fe1592d097fa28822c23e96d9f357583b48424d
                                                 Found module libgobject-2.0.so.0 with build-id: 97170184ce99115d663a8fe6587fd87fde6aa7e0
                                                 Found module librt.so.1 with build-id: 75484da2d6f1515189eefa076e0a40328834cd16
                                                 Found module libpthread.so.0 with build-id: 07c8f95b4f3251d08550217ad8a1f31066229996
                                                 Found module libdl.so.2 with build-id: 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a
                                                 Stack trace of thread 65506:
                                                 #0  0x00007f192c1a1594 n/a (<pathTo>/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@parcel/watcher/build/Release/watcher.node + 0x47594)
                                                 #1  0x00007f192c1a1739 n/a (<pathTo>/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@parcel/watcher/build/Release/watcher.node + 0x47739)
                                                 #2  0x00007f192c1b44e1 n/a (<pathTo>/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@parcel/watcher/build/Release/watcher.node + 0x5a4e1)
                                                 #3  0x00007f192c1b2717 n/a (<pathTo>/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@parcel/watcher/build/Release/watcher.node + 0x58717)
                                                 #4  0x00007f192c19d67e n/a (<pathTo>/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@parcel/watcher/build/Release/watcher.node + 0x4367e)
                                                 #5  0x00007f1934eec4a7 __run_exit_handlers (libc.so.6 + 0x3f4a7)
                                                 #6  0x00007f1934eec64e exit (libc.so.6 + 0x3f64e)
                                                 #7  0x000055de2452c5f1 n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x74675f1)
                                                 #8  0x000055de2455923a n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x749423a)
                                                 #9  0x000055de2021c1f7 n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x31571f7)
                                                 #10 0x00003cb0000b2398 n/a (n/a + 0x0)
                                                 #11 0x00003cb000049541 n/a (n/a + 0x0)
                                                 #12 0x00003cb000049541 n/a (n/a + 0x0)
                                                 #13 0x00003cb000049b80 n/a (n/a + 0x0)
                                                 #14 0x00003cb0001d11b5 n/a (n/a + 0x0)
                                                 #15 0x00003cb0000475fb n/a (n/a + 0x0)
                                                 #16 0x00003cb000047383 n/a (n/a + 0x0)
                                                 #17 0x000055de202d5da9 n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x3210da9)
                                                 #18 0x000055de202d523a n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x321023a)
                                                 #19 0x000055de201d05ad n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x310b5ad)
                                                 #20 0x000055de2455882c n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x749382c)
                                                 #21 0x000055de1ec280fd n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x1b630fd)
                                                 #22 0x000055de1ec2b0cf n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x1b660cf)
                                                 #23 0x000055de1ed9aeb7 n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x1cd5eb7)
                                                 #24 0x000055de1ec3bc71 n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x1b76c71)
                                                 #25 0x00007f1934ed4b25 __libc_start_main (libc.so.6 + 0x27b25)
                                                 #26 0x000055de1e933daa n/a (<pathTo>/VSCode-linux-x64/code-insiders + 0x186edaa)

It looks like it may be happening with every "close" and I didn't notice it until now.
I see 4 crashes since the 30th when I upgraded(/deleted & replaced) from 1.58.
It happened again just now after I re-opened it, only to generate this report, then closed it, with what looks to be the very same kind of dump.

Activity

  1. added
    freeze-slow-crash-leak
    file-watcher
    linux
    on Nov 2, 2021
  2. bpasero commented on Nov 2, 2021

    @bpasero
    Contributor

    Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks!

  3. added
    info-needed
    on Nov 2, 2021
  4. vindicatorr commented on Nov 2, 2021

    @vindicatorr
    Author

    Well, that's just odd. Using that command only created 2 files (client_id) and 1 folder (exthost Crash Reports).
    In any case, I changed up the command a little more to:
    $<pathTo>/VSCode-linux-x64/bin/code-insiders --crash-reporter-directory <pathTo>/crashReport --verbose --log trace

    ...
    [342826:1102/094207.747913:INFO:CONSOLE(602)] "%cTRACE color: #888 SCMViewService#onDidAddRepository git:Git:file://<pathTo>/esp-idf/components/nghttp/nghttp2/third-party/neverbleed", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094207.749097:INFO:CONSOLE(602)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094207.816020:INFO:CONSOLE(602)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094207.817899:INFO:CONSOLE(602)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094208.233037:INFO:CONSOLE(602)] "%cTRACE color: #888 MainThreadTimeline#emitChangeEvent: id=git-history, uri=undefined", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094215.266614:INFO:CONSOLE(29)] "%cTRACE color: #888 [code cache cleanup]: Starting to clean up old code cache folders.", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
    [342826:1102/094215.267563:INFO:CONSOLE(29)] "%cTRACE color: #888 [storage cleanup]: Starting to clean up storage folders.", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
    [342826:1102/094225.266482:INFO:CONSOLE(29)] "%cTRACE color: #888 [language pack cache cleanup]: Starting to clean up unused language packs.", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
    [342826:1102/094250.891551:INFO:CONSOLE(602)] "%cTRACE color: #888 [text file model] resolve() - enter file://<pathTo>/esp-idf/components/driver/i2c.c", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094250.891613:INFO:CONSOLE(602)] "%cTRACE color: #888 [text file model] resolveFromFile() file://<pathTo>/esp-idf/components/driver/i2c.c", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [main 2021-11-02T14:42:51.122Z] menubarService#updateMenubar 1
    [342826:1102/094251.153550:INFO:CONSOLE(602)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094254.565856:INFO:CONSOLE(602)] "%cTRACE color: #888 CommandService#executeCommand notification.clear", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [main 2021-11-02T14:42:56.221Z] Lifecycle#window.on('close') - window ID 1
    [main 2021-11-02T14:42:56.221Z] Lifecycle#unload() - window ID 1
    [342826:1102/094256.222181:INFO:CONSOLE(602)] "%cTRACE color: #888 [lifecycle] onBeforeUnload (reason: 1)", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094256.227863:INFO:CONSOLE(18)] "%c[IPC Library: Pty Host] %c%cTRACE color: blue color:  color: #888 IPty#pid", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (18)
    [342826:1102/094256.234722:INFO:CONSOLE(602)] "%cTRACE color: #888 [lifecycle] onBeforeUnload continues without veto", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [main 2021-11-02T14:42:56.235Z] Lifecycle#unload() - no veto (window ID 1)
    [342826:1102/094256.236163:INFO:CONSOLE(602)] "%cTRACE color: #888 [lifecycle] onWillUnload (reason: 1)", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094256.236850:INFO:CONSOLE(602)] "%cTRACE color: #888 terminalInstance#dispose (instanceId: 1)", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094256.253438:INFO:CONSOLE(602)] "%cDEBUG background: #eee; color: #888 Terminal process exit (instanceId: 1) with code undefined", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094256.254078:INFO:CONSOLE(602)] "%cDEBUG background: #eee; color: #888 Terminal process exit (instanceId: 1) state 5", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094256.254751:INFO:CONSOLE(18)] "%c[IPC Library: Pty Host] %c%cTRACE color: blue color:  color: #888 ptyService#shutDown 1 false", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (18)
    [342826:1102/094256.254835:INFO:CONSOLE(602)] "%cTRACE color: #888 terminalInstance#dispose (instanceId: 1)", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (602)
    [342826:1102/094256.318089:INFO:CONSOLE(29)] "%cTRACE color: #888 profile not validated zsh zsh", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
    [342826:1102/094256.324389:INFO:CONSOLE(29)] "%cTRACE color: #888 profile not validated fish fish", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
    [342826:1102/094256.328885:INFO:CONSOLE(29)] "%cTRACE color: #888 profile not validated tmux tmux", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
    [342826:1102/094256.333475:INFO:CONSOLE(29)] "%cTRACE color: #888 profile not validated pwsh pwsh", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
    [342826:1102/094256.506416:INFO:CONSOLE(18)] "%c[IPC Library: Pty Host] %c%cTRACE color: blue color:  color: #888 IPty#kill", source: vscode-file://vscode-app<pathTo>/VSCode-linux-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (18)
    [main 2021-11-02T14:42:56.520Z] menubarService#updateMenubar 1
    [main 2021-11-02T14:42:56.548Z] StorageMainService: closed workspace storage (31ac783661662658dabadcf37b06eb6f)
    [main 2021-11-02T14:42:56.555Z] Lifecycle#onBeforeCloseWindow.fire() - window ID 1
    [main 2021-11-02T14:42:56.573Z] IPC Object URL: Removed channel vscode:d2493179-4741-42a7-b188-c375c76803b8.
    [main 2021-11-02T14:42:56.573Z] Lifecycle#window.on('closed') - window ID 1
    [main 2021-11-02T14:42:56.574Z] Lifecycle#onWillShutdown.fire()
    [main 2021-11-02T14:42:56.575Z] IPC Object URL: Removed channel vscode:d787c390-c432-4842-a066-cca6a18dc4a2.
    [main 2021-11-02T14:42:56.575Z] SharedProcess: disposing worker (reason: 'closed') {
      process: {
        moduleId: 'vs/platform/files/node/watcher/parcel/watcherApp',
        type: 'watcherServiceParcelSharedProcess'
      },
      reply: {
        windowId: 1,
        channel: 'vscode:createSharedProcessWorkerMessageChannelResult',
        nonce: 'e78af5fd-6969-4832-a051-4d1db75d58bb'
      }
    }
    [main 2021-11-02T14:42:56.583Z] Lifecycle#app.on(window-all-closed)
    [main 2021-11-02T14:42:56.584Z] Lifecycle#app.on(before-quit)
    [main 2021-11-02T14:42:56.584Z] Lifecycle#onBeforeShutdown.fire()
    [main 2021-11-02T14:42:56.584Z] [WindowsStateHandler] onBeforeShutdown {
      lastActiveWindow: {
        workspaceIdentifier: undefined,
        folder: 'file://<pathTo>/<Project>',
        backupPath: '/home/username/.config/Code - Insiders/Backups/223af42d51f7b029a3cf9692e88100f7',
        remoteAuthority: undefined,
        uiState: [Object: null prototype] {
          mode: 0,
          x: 448,
          y: 185,
          width: 1024,
          height: 768
        }
      },
      lastPluginDevelopmentHostWindow: undefined,
      openedWindows: []
    }
    [main 2021-11-02T14:42:56.585Z] Lifecycle#app.on(will-quit)
    

    Both times I ran the commands with 2 sets of parameters, they crashed on closing.

  5. deepak1556 commented on Nov 2, 2021

    @deepak1556
    Collaborator

    Benjamin Pasero (@bpasero) watcher child process would be missing the crash reporter initialization unlike what extension host does

    if (platform.isLinux) {
    const crashReporterStartOptions: CrashReporterStartOptions = {
    companyName: this._productService.crashReporter?.companyName || 'Microsoft',
    productName: this._productService.crashReporter?.productName || this._productService.nameShort,
    submitURL: '',
    uploadToServer: false
    };
    const crashReporterId = this._environmentService.crashReporterId; // crashReporterId is set by the main process only when crash reporting is enabled by the user.
    const appcenter = this._productService.appCenter;
    const uploadCrashesToServer = !this._environmentService.crashReporterDirectory; // only upload unless --crash-reporter-directory is provided
    if (uploadCrashesToServer && appcenter && crashReporterId && isUUID(crashReporterId)) {
    const submitURL = appcenter[`linux-x64`];
    crashReporterStartOptions.submitURL = submitURL.concat('&uid=', crashReporterId, '&iid=', crashReporterId, '&sid=', crashReporterId);
    crashReporterStartOptions.uploadToServer = true;
    }
    // In the upload to server case, there is a bug in electron that creates client_id file in the current
    // working directory. Setting the env BREAKPAD_DUMP_LOCATION will force electron to create the file in that location,
    // For https://github.com/microsoft/vscode/issues/105743
    const extHostCrashDirectory = this._environmentService.crashReporterDirectory || this._environmentService.userDataPath;
    opts.env.BREAKPAD_DUMP_LOCATION = join(extHostCrashDirectory, `${ExtensionHostLogFileName} Crash Reports`);
    opts.env.VSCODE_CRASH_REPORTER_START_OPTIONS = JSON.stringify(crashReporterStartOptions);
    }
    which gets utilized by bootstrap-fork eventually.

  6. bpasero commented on Nov 2, 2021

    @bpasero
    Contributor

    Robo (@deepak1556) hm, so we do use bootstrap-fork for spawning the workers:

    this.child = fork(
    this.environment.bootstrapPath,
    [`--type=${this.configuration.process.type}`],
    { env: this.getEnv() }
    );

    But this means every process that wants to collect crash reports that uses bootstrap-fork needs that code from the extension host to work?

  7. deepak1556 commented on Nov 2, 2021

    @deepak1556
    Collaborator

    Yup that is correct, this only till we get to Electron 15 after which linux will start using crashpad and that code is not required anymore. So for now, we can just add this code to the watcher process launcher to debug this issue instead of a broader change ?

  8. bpasero commented on Nov 3, 2021

    @bpasero
    Contributor

    vindicatorr I have a new insiders build ready that would produce a crash report (download).

    Can you run from the command line: <path to download>/code-insiders <an existing folder to open> --crash-reporter-directory <some folder> and see if crash reports are produced for the file watcher?

  9. vindicatorr commented on Nov 3, 2021

    @vindicatorr
    Author

    Okay, so I tried looking at electron-minidump, but that just fails with ENOENT.
    I just now figured out about breakpad and got that to work:
    watcher_stackwalk.log
    Let me know if that doesn't cut it, or I need to do something else.

  10. 22 remaining items

  11. bpasero commented on Nov 6, 2021

    @bpasero
    Contributor

    Looks like calling stop on shutdown might prevent this from happening, at least in my testing we seem to be having sufficient time on shutdown to deliver that message to the worker before it terminates: #136569

    Anyway, we should probably leave this issue open to at least understand the difference in runtime behaviour between Electron and node.js.

  12. added
    unreleased
    on Nov 8, 2021
  13. deepak1556 commented on Nov 8, 2021

    @deepak1556
    Collaborator

    Benjamin Pasero (@bpasero) the difference wrt electron might be because without process reuse electron usually leaks node related handlers on process shutdown, hence I think the native module didn't get a chance for a proper cleanup based on node environment teardown. Once we update to Electron 15 were we will have process reuse by default, normal teardown of node environment is ensured https://github.com/electron/electron/blob/main/shell/renderer/electron_renderer_client.cc#L160

    Do you want me to test with removing the above workaround as part of our Electron 15 branch ?

  14. bpasero commented on Nov 8, 2021

    @bpasero
    Contributor

    Ah yeah that makes sense, I think we are fine then once we move to E15.

  15. added
    insiders-released
    and removed
    unreleased
    on Nov 9, 2021
  16. locked and limited conversation to collaborators on Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

confirmedelectronfile-watcherfreeze-slow-crash-leakinsiders-releasedlinux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions