Skip to content
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

TS Server fatal error: Debug Failure. #114358

Closed
jardicc opened this issue Jan 14, 2021 · 13 comments
Closed

TS Server fatal error: Debug Failure. #114358

jardicc opened this issue Jan 14, 2021 · 13 comments
Assignees
Labels
info-needed Issue requires more information from poster javascript JavaScript support issues typescript Typescript support issues

Comments

@jardicc
Copy link

jardicc commented Jan 14, 2021

I have no idea why that happened or how to reproduce so I am just letting you know. If you don't find it useful just close it.

Issue Type: Bug

TypeScript Version: 4.1.2

Steps to reproduce crash

  1. No idea

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.

TS Server Error Stack
Server: syntax

Error: Debug Failure.
    at ProjectService.setDocument (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:153069:37)
    at acquireOrUpdateDocument (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:120724:35)
    at Object.acquireDocumentWithKey (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:120695:20)
    at getOrCreateSourceFileByPath (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146653:41)
    at Object.getOrCreateSourceFile [as getSourceFile] (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146605:24)
    at findSourceFileWorker (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106665:29)
    at findSourceFile (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:105207:60
    at Object.forEach (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at Object.createProgram (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:105207:16)
    at synchronizeHostData (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146570:26)
    at Proxy.getProgram (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146662:13)
    at InferredProject.Project.updateGraphWorker (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:151524:53)
    at InferredProject.Project.updateGraph (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:151457:42)
    at ProjectService.assignOrphanScriptInfoToInferredProject (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:153585:25)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155111:26)
    at c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155385:97
    at Object.flatMap (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:513:25)
    at ProjectService.applyChangesInOpenFiles (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155385:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:156403:46)
    at c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158276:88
    at IOSession.Session.executeWithRequestId (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158267:28)
    at IOSession.Session.executeCommand (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158276:33)
    at IOSession.Session.onMessage (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158300:35)
    at Interface.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:160510:27)
    at Interface.emit (events.js:223:5)
    at Interface._onLine (readline.js:315:10)
    at Interface._normalWrite (readline.js:460:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

VS Code version: Code 1.52.1 (ea3859d, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9900KF CPU @ 3.60GHz (16 x 3600)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.93GB (14.93GB free)
Process Argv --folder-uri file:///a%3A/BR/ZipTest --crash-reporter-id c60da8af-419f-484a-9066-fb7d9fdecaa9
Screen Reader no
VM 0%
Extensions (48)
Extension Author (truncated) Version
pascal ale 9.2.0
pascal-formatter ale 2.4.0
vscode-sqlite ale 0.10.1
tsco alj 1.0.20
markdown-preview-github-styles bie 0.1.6
mapfile chi 0.1.1
npm-intellisense chr 1.3.1
path-intellisense chr 2.3.0
vscode-svgviewer css 2.0.0
vscode-eslint dba 2.1.14
es7-react-js-snippets dsz 3.1.0
gitlens eam 11.1.3
vscode-npm-script eg2 0.3.13
fold-unfold-all-icone Fer 0.0.3
vscode-jest-runner fir 0.4.31
gc-excelviewer Gra 3.0.40
npm-dependency-links her 1.2.0
vscode-versionlens Hof 0.25.6
beautify Hoo 1.5.0
innosetup idl 1.6.0
smarty imp 0.3.0
vscode-totalcommander ipa 1.0.4
vscode-redux-devtools jin 1.0.2
typescript-code-navigator kdc 1.2.4
vscode-github Kni 0.30.4
linecounter lyz 0.2.7
gitignore mic 1.0.1
sort-typescript-imports mic 1.4.1
vscode-apache mrm 1.2.0
language-gettext mro 0.2.0
vscode-js-profile-flame ms- 0.0.13
debugger-for-chrome msj 4.12.11
resourcemonitor mut 1.0.7
subtitles-editor pep 1.1.3
material-icon-theme PKi 4.5.0
adobe-script-runner ren 0.3.0
searchdocs rob 0.0.3
vsc-nwjs rua 1.0.18
vscode-coverage-gutters rya 2.6.0
code-settings-sync Sha 3.4.3
vscode-autohotkey sle 0.2.2
vscode-multiclip sle 0.1.5
php-formatter Sop 0.2.4
code-spell-checker str 1.10.2
vscodeintellicode Vis 1.2.10
vscode-icons vsc 11.1.0
wallaby-vscode Wal 1.0.258
change-case wma 1.0.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30211402
wsl2promptcf:30224613
vstry244cf:30244300
pythonvsdeb440:30242242
unusedprompt:30224610
folderexplorercf:30224615
openfilemenucf:30224648
pythonvsded773:30236629
pythonvspyt600cf:30241728

@vscodebot
Copy link

vscodebot bot commented Jan 14, 2021

@mjbvz
Copy link
Contributor

mjbvz commented Jan 14, 2021

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

@mjbvz mjbvz added the info-needed Issue requires more information from poster label Jan 14, 2021
@jardicc
Copy link
Author

jardicc commented Jan 17, 2021

I have no idea how to reproduce. You can close this if you want to.

@jardicc
Copy link
Author

jardicc commented Jan 21, 2021

Only FYI. I have seen the same error today with the same repository on a different machine with almost 0 extensions in VS-Code.

@mjbvz
Copy link
Contributor

mjbvz commented Jan 21, 2021

Please follow the instructions in the issue to enable TS Server Logging so we can investigate

@jardicc
Copy link
Author

jardicc commented Jan 25, 2021

It happened again. So next time I will provide that info. Turned it on now.

@mjbvz mjbvz added javascript JavaScript support issues typescript Typescript support issues labels Jan 26, 2021
@jardicc
Copy link
Author

jardicc commented Jan 26, 2021

It says that log file should be here: c:\Users\Jarda\AppData\Roaming\Code\logs\20210126T095730\exthost1\vscode.typescript-language-features\tsserver-log-IqXoqc\tsserver.log

But the folder is empty. What now?

@jardicc
Copy link
Author

jardicc commented Jan 26, 2021

And in other similar folders, I do have 6× tsserver.log in total.

@jardicc
Copy link
Author

jardicc commented Jan 29, 2021

Again no .log file generated in specified location. But I think this has something to do with debugger. It happened when it stopped on uncaught error. I think that chokidar and watching files are somehow involved. http://sklad.bereza.cz/00-jarda/00_screenshot/2021-01-29_170921-c3O3wh.png

@mjbvz
Copy link
Contributor

mjbvz commented Feb 12, 2021

Make sure you are doing the following:

  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 from the crashed instance

@jardicc
Copy link
Author

jardicc commented Feb 12, 2021

I checked that twice on two different days. There is no file at provided filepath. But in different folders, there are some.

@mjbvz
Copy link
Contributor

mjbvz commented Feb 12, 2021

I confirmed that the paths should exist on windows if logging has been enabled. If you don't see them for some reason, look in the typescript section of the output panel for any errors or stack traces and share those instead

@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster javascript JavaScript support issues typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

4 participants
@mjbvz @jardicc and others