microsoft / vscode

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

TS Server fatal error: Maximum call stack size exceeded #221661

Closed 360Parminder closed 3 weeks ago

360Parminder commented 3 months ago

TypeScript Version: 5.5.2

Steps to reproduce crash

1.open a react Native Project.

  1. open any file with have any js or jsx code
  2. it will run properly but not have features of js / ts
  3. show this "The JS/TS language service immediately crashed 5 times. The service will not be restarted."

TS Server Log

❗️ Server logging disabled. To help us fix crashes like this, please enable logging by setting:

"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.

VS Code version: Code 1.91.1 (Universal) (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:07:54.982Z) OS version: Darwin arm64 23.5.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| |Load (avg)|4, 4, 4| |Memory (System)|8.00GB (0.10GB free)| |Process Argv|--crash-reporter-id ee48847d-9297-4582-96b6-c4ac1e2fdfd2| |Screen Reader|no| |VM|0%|
Extensions: none
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 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 chatpanelc:31048052 dsvsc021:30996838 724cj586:31013169 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 2f103344:31071589 impr_priority:31094925 4930e709:31092288 ```
Screenshot 2024-07-14 at 5 09 57 PM
mjbvz commented 3 months ago

Please try collecting the TS Server log from the crashed instance:

  1. Set "typescript.tsserver.log": "verbose"
  2. Restart VS Code and reproduce the problem
  3. Open the TypeScript section of the output panel
  4. At the very top, find the first line that prints to path to the semantic error log file. It should look something like:

    [Info  - 19:54:59.247] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20200213T104930/exthost55/vscode.typescript-language-features/tsserver-log-ZT2zau/tsserver.log

    That file contains the typescript logs.

Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out

⚠️Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

360Parminder commented 3 months ago

2024-07-14 17:11:26.521 [info] Starting TS Server 2024-07-14 17:11:26.521 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:11:26.521 [info] Forking... 2024-07-14 17:11:26.521 [info] Starting... 2024-07-14 17:11:26.521 [info] Forking... 2024-07-14 17:11:26.521 [info] Starting... 2024-07-14 17:11:30.744 [info] Killing TS Server 2024-07-14 17:11:30.865 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:11:30.865 [info] Starting TS Server 2024-07-14 17:11:30.865 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:11:30.865 [info] Forking... 2024-07-14 17:11:30.865 [info] Starting... 2024-07-14 17:11:30.865 [info] Forking... 2024-07-14 17:11:30.865 [info] Starting... 2024-07-14 17:11:34.581 [info] Killing TS Server 2024-07-14 17:11:34.721 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:11:34.721 [info] Starting TS Server 2024-07-14 17:11:34.721 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:11:34.721 [info] Forking... 2024-07-14 17:11:34.721 [info] Starting... 2024-07-14 17:11:34.721 [info] Forking... 2024-07-14 17:11:34.721 [info] Starting... 2024-07-14 17:11:38.269 [info] Killing TS Server 2024-07-14 17:11:38.403 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:11:38.403 [info] Starting TS Server 2024-07-14 17:11:38.403 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:11:38.403 [info] Forking... 2024-07-14 17:11:38.403 [info] Starting... 2024-07-14 17:11:38.403 [info] Forking... 2024-07-14 17:11:38.403 [info] Starting... 2024-07-14 17:11:42.564 [info] Killing TS Server 2024-07-14 17:11:42.697 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:11:42.697 [info] Starting TS Server 2024-07-14 17:11:42.697 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:11:42.697 [info] Forking... 2024-07-14 17:11:42.697 [info] Starting... 2024-07-14 17:11:42.697 [info] Forking... 2024-07-14 17:11:42.697 [info] Starting... 2024-07-14 17:11:46.114 [info] Killing TS Server 2024-07-14 17:11:46.239 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:11:46.239 [info] Starting TS Server 2024-07-14 17:11:46.239 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:11:46.239 [info] Forking... 2024-07-14 17:11:46.239 [info] Starting... 2024-07-14 17:11:46.239 [info] Forking... 2024-07-14 17:11:46.239 [info] Starting... 2024-07-14 17:11:49.453 [info] Killing TS Server 2024-07-14 17:11:49.580 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:12:40.883 [info] Starting TS Server 2024-07-14 17:12:40.883 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:12:40.883 [info] Forking... 2024-07-14 17:12:40.883 [info] Starting... 2024-07-14 17:12:40.883 [info] Forking... 2024-07-14 17:12:40.883 [info] Starting... 2024-07-14 17:12:46.132 [info] Killing TS Server 2024-07-14 17:12:46.275 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:12:46.275 [info] Starting TS Server 2024-07-14 17:12:46.275 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:12:46.275 [info] Forking... 2024-07-14 17:12:46.275 [info] Starting... 2024-07-14 17:12:46.275 [info] Forking... 2024-07-14 17:12:46.275 [info] Starting... 2024-07-14 17:12:49.806 [info] Killing TS Server 2024-07-14 17:12:49.944 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:12:49.944 [info] Starting TS Server 2024-07-14 17:12:49.944 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:12:49.944 [info] Forking... 2024-07-14 17:12:49.944 [info] Starting... 2024-07-14 17:12:49.944 [info] Forking... 2024-07-14 17:12:49.944 [info] Starting... 2024-07-14 17:12:54.205 [info] Killing TS Server 2024-07-14 17:12:54.328 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:12:54.328 [info] Starting TS Server 2024-07-14 17:12:54.328 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:12:54.328 [info] Forking... 2024-07-14 17:12:54.328 [info] Starting... 2024-07-14 17:12:54.328 [info] Forking... 2024-07-14 17:12:54.328 [info] Starting... 2024-07-14 17:12:59.364 [info] Killing TS Server 2024-07-14 17:12:59.537 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:12:59.537 [info] Starting TS Server 2024-07-14 17:12:59.537 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:12:59.537 [info] Forking... 2024-07-14 17:12:59.537 [info] Starting... 2024-07-14 17:12:59.537 [info] Forking... 2024-07-14 17:12:59.537 [info] Starting... 2024-07-14 17:13:04.803 [info] Killing TS Server 2024-07-14 17:13:04.926 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:13:04.927 [info] Starting TS Server 2024-07-14 17:13:04.927 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:13:04.927 [info] Forking... 2024-07-14 17:13:04.927 [info] Starting... 2024-07-14 17:13:04.927 [info] Forking... 2024-07-14 17:13:04.927 [info] Starting... 2024-07-14 17:13:09.975 [info] Killing TS Server 2024-07-14 17:13:10.103 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:17:10.391 [info] Starting TS Server 2024-07-14 17:17:10.391 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:17:10.391 [info] Forking... 2024-07-14 17:17:10.391 [info] Starting... 2024-07-14 17:17:10.391 [info] Forking... 2024-07-14 17:17:10.391 [info] Starting... 2024-07-14 17:17:15.005 [info] Killing TS Server 2024-07-14 17:17:15.153 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:17:15.153 [info] Starting TS Server 2024-07-14 17:17:15.153 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:17:15.153 [info] Forking... 2024-07-14 17:17:15.153 [info] Starting... 2024-07-14 17:17:15.153 [info] Forking... 2024-07-14 17:17:15.153 [info] Starting... 2024-07-14 17:17:18.397 [info] Killing TS Server 2024-07-14 17:17:18.512 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:17:18.512 [info] Starting TS Server 2024-07-14 17:17:18.512 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:17:18.512 [info] Forking... 2024-07-14 17:17:18.512 [info] Starting... 2024-07-14 17:17:18.512 [info] Forking... 2024-07-14 17:17:18.512 [info] Starting... 2024-07-14 17:17:21.989 [info] Killing TS Server 2024-07-14 17:17:22.123 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:17:22.123 [info] Starting TS Server 2024-07-14 17:17:22.123 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:17:22.123 [info] Forking... 2024-07-14 17:17:22.123 [info] Starting... 2024-07-14 17:17:22.123 [info] Forking... 2024-07-14 17:17:22.123 [info] Starting... 2024-07-14 17:17:25.790 [info] Killing TS Server 2024-07-14 17:17:25.912 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:17:25.913 [info] Starting TS Server 2024-07-14 17:17:25.913 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:17:25.913 [info] Forking... 2024-07-14 17:17:25.913 [info] Starting... 2024-07-14 17:17:25.913 [info] Forking... 2024-07-14 17:17:25.913 [info] Starting... 2024-07-14 17:17:29.797 [info] Killing TS Server 2024-07-14 17:17:29.962 [error] TSServer exited. Code: null. Signal: SIGTERM 2024-07-14 17:17:29.962 [info] Starting TS Server 2024-07-14 17:17:29.962 [info] Using tsserver from: /private/var/folders/yt/532jctns4sqg_1hnzztzw6t00000gn/T/AppTranslocation/B0EFCA64-849C-4AB2-AF1B-FFE64A9737DE/d/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js 2024-07-14 17:17:29.962 [info] Forking... 2024-07-14 17:17:29.962 [info] Starting... 2024-07-14 17:17:29.962 [info] Forking... 2024-07-14 17:17:29.962 [info] Starting... 2024-07-14 17:17:33.588 [info] Killing TS Server 2024-07-14 17:17:33.702 [error] TSServer exited. Code: null. Signal: SIGTERM

Path for file is /Users/parmindersingh/Library/Application Support/Code/logs/20240714T171125/window1/exthost/vscode.typescript-language-features/TypeScript.log

vs-code-engineering[bot] commented 1 month ago

Hey @mjbvz, this issue might need further attention.

@360Parminder, you can help us out by closing this issue if the problem no longer exists, or adding more information.

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!

360Parminder commented 3 weeks ago

The problem will be resolved if use remove all the files of vscode from your device and reinstall the vscode or other solution that can work is you re create .vscode file which is in every project .