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

Integrated Console stops responding #175027

Closed
dfdumaresq opened this issue Feb 21, 2023 · 24 comments
Closed

Integrated Console stops responding #175027

dfdumaresq opened this issue Feb 21, 2023 · 24 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster

Comments

@dfdumaresq
Copy link

Type: Bug

From VSCode Insiders,

  • Load a React/node/connected-react-router application
  • import { ConnectedRouter, routerMiddleware, connectRouter } from "connected-react-router";
  • enable logging
    const middlewares: Middleware[] = [routerMiddleware(history), ...storeMiddleware];

if (process.env.NODE_ENV === "development") {
middlewares.push(logger);
}

  • Open Integrated Terminal and observe logging
    Notice after initial output terminal is no longer responsive. Cannot clear or scroll.

E.g.
image

VS Code version: Code - Insiders 1.76.0-insider (Universal) (5454665, 2023-02-21T05:23:24.160Z)
OS version: Darwin x64 22.2.0
Modes:
Sandboxed: Yes

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 2, 2, 3
Memory (System) 16.00GB (0.04GB free)
Process Argv --crash-reporter-id 6acf4a8e-574a-4adc-a517-13b2eeb4f349
Screen Reader no
VM 0%
Extensions (3)
Extension Author (truncated) Version
git-graph mhu 1.30.0
csharp ms- 1.25.4
debugger-for-chrome msj 4.13.0
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vsdfh931:30280409
vshan820:30294714
pythondataviewer:30285072
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyindex848:30611229
nodejswelcome1:30587009
pyind779:30611226
pythonsymbol12:30651887
2i9eh265:30646982
6233i204:30659907
pythonb192cf:30661257

@dfdumaresq dfdumaresq changed the title Integrated Console Unresponsive Integrated Console stops responding Feb 21, 2023
@meganrogge meganrogge assigned connor4312 and unassigned meganrogge Feb 22, 2023
@connor4312 connor4312 added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Feb 22, 2023
@connor4312
Copy link
Member

connor4312 commented Feb 24, 2023

I tried to repro this by adding redux-logger to connected-react-router's basic demo and things worked fine, both on Insiders and stable

image

(btw, the upcoming release next week will make colors works 😉)

Can you please either:

  • Link to a sample reproduction where this error happens, or if not
  • Run the "toggle developer tools" command and share any errors that appear in the console, and collect logs using these instructions so we can replay them:

/jsDebugLogs

@VSCodeTriageBot
Copy link
Collaborator

Please collect trace logs using the following instructions:

If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.

⚠️ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to connor@xbox.com

@VSCodeTriageBot VSCodeTriageBot added the info-needed Issue requires more information from poster label Feb 24, 2023
@dfdumaresq
Copy link
Author

Will do. Thanks!

@dfdumaresq
Copy link
Author

@connor4312 - The debug file is too big (25 MB allowed, 31 MB attempted to upload). Do you have an email address I can send it to?

@connor4312
Copy link
Member

Yep, connor@xbox.com. OneDrive etc. links also work 🙂

@dfdumaresq
Copy link
Author

dfdumaresq commented Feb 28, 2023

Thanks, it's off. - Actually, it was rejected. Too large. Will try another service.

@dfdumaresq
Copy link
Author

@connor4312 - You should have it now through maildrop (iCloud).

@connor4312
Copy link
Member

Thanks! Did you recall seeing any errors in the Console when running Toggle Developer Tools?

@dfdumaresq
Copy link
Author

Sorry, I forgot to include them. I'll send you fresh logs and screenscrapings the next time I get the crash.

@dfdumaresq
Copy link
Author

image

log.ts:398  WARN Via 'product.json#extensionEnabledApiProposals' extension 'github.vscode-pull-request-github' wants API proposal 'commentsResolvedState' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:404   ERR Extension 'tabnine.tabnine-vscode' wants API proposal 'inlineCompletions' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2log.ts:392  INFO [eridem.vscode-nupkg]: Menu item references the same command as default and alt-command
TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope text.log.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/log/syntaxes/log.tmLanguage.json.
New grammar file: file:///Users/ddumaresq/.vscode/extensions/emilast.logfilehighlighter-2.16.0/syntaxes/log.tmLanguage
register @ TMScopeRegistry.ts:47
TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.js.jsx.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.
New grammar file: file:///Users/ddumaresq/.vscode/extensions/ms-vscode.vscode-typescript-next-5.1.20230227/syntaxes/JavaScriptReact.tmLanguage.json
register @ TMScopeRegistry.ts:47
TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.js.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/javascript/syntaxes/JavaScript.tmLanguage.json.
New grammar file: file:///Users/ddumaresq/.vscode/extensions/ms-vscode.vscode-typescript-next-5.1.20230227/syntaxes/JavaScript.tmLanguage.json
register @ TMScopeRegistry.ts:47
TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.ts.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.
New grammar file: file:///Users/ddumaresq/.vscode/extensions/ms-vscode.vscode-typescript-next-5.1.20230227/syntaxes/TypeScript.tmLanguage.json
register @ TMScopeRegistry.ts:47
TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.tsx.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.
New grammar file: file:///Users/ddumaresq/.vscode/extensions/ms-vscode.vscode-typescript-next-5.1.20230227/syntaxes/TypeScriptReact.tmLanguage.json
register @ TMScopeRegistry.ts:47
console.ts:137 [Extension Host] ONPREM is  false
console.ts:137 [Extension Host] spawning binary with command:  /Users/ddumaresq/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.250/x86_64-apple-darwin/TabNine  args:  --client=vscode --no-lsp=true --client-metadata clientVersion=1.75.1 pluginVersion=3.6.41 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Default Dark+ vscode-theme-kind=Dark vscode-machine-id=a394899f3a3b49f0895e54d2a2dff4b452e433c1aa0b94f721a1736e4438f8fa vscode-is-new-app-install=false vscode-session-id=11bfe0bd-4959-4d7d-a648-bda6f437c4921677619562823 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true ide-restart-counter=0
console.ts:137 [Extension Host] capabilities resolved immediately
console.ts:137 [Extension Host] Failed to connect to provider "No token found for host github.com"
TaskQueue.ts:93 task queue exceeded allotted deadline by 147ms
_process @ TaskQueue.ts:93
log.ts:392  INFO [perf] Render performance baseline is 39ms
TaskQueue.ts:93 task queue exceeded allotted deadline by 94ms
_process @ TaskQueue.ts:93
2log.ts:404   ERR No expression to evaluate
lifecycle.ts:270 Error: Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!
    at d.add (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:19:30352)
    at E.setActions (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:742:149602)
    at E.L (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:742:156513)
    at E.setAdditionalSecondaryActions (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:742:156576)
    at Tr.update (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:742:155233)
    at p.l (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:742:152130)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:742:152037
    at g.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:145)
    at d.deliver (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:2029)
    at a.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:1667)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:709:10817
    at g.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:145)
    at n.deliver (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:2029)
    at a.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:1667)
    at a.t (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:609:58063)
    at a.updateOptions (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:609:59031)
    at on.updateOptions (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:709:12832)
    at bc.Ib (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2302:6873)
    at bc.Mb (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2302:5425)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2302:4616
    at g.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:145)
    at d.deliver (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:2029)
    at a.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:1667)
    at on.setModel (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:711:401)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:711:14472
    at g.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:145)
    at n.deliver (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:2029)
    at a.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:1667)
    at Mn.dispose (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:694:14869)
    at g.destroyModel (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:708:1163)
    at Xn.dispose (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1591:15250)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2315:92575
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:84:26978
    at g.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:145)
    at n.deliver (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:2029)
    at a.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:1667)
    at to.dispose (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:747:71864)
    at to.dispose (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2036:7845)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2036:6420
    at g.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:145)
    at n.deliver (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:2029)
    at a.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:86:1667)
    at Xn.revert (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2315:67240)
    at m.revert (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2324:39006)
    at to.revert (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1922:43383)
    at tn.Ib (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2487:17479)
    at async tn.Hb (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2487:16496)
    at async tn.closeEditors (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2487:17763)
    at async vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2302:27833
    at async Promise.all (index 0)
add @ lifecycle.ts:270
localProcessExtensionHost.ts:298 Extension Host
localProcessExtensionHost.ts:299 <--- Last few GCs --->[22114:0x7fe23d70a000] 81972154 ms: Scavenge 3667.9 (3851.5) -> 3667.9 (3851.5) MB, 1.8 / 0.0 ms  (average mu = 0.213, current mu = 0.000) allocation failure; [22114:0x7fe23d70a000] 81972157 ms: Scavenge 3667.9 (3851.5) -> 3667.9 (3851.5) MB, 2.5 / 0.0 ms  (average mu = 0.213, current mu = 0.000) allocation failure; [22114:0x7fe23d70a000] 81972373 ms: Mark-sweep (reduce) 3667.9 (3851.5) -> 3440.0 (3608.2) MB, 215.6 / 0.0 ms  (average mu = 0.335, current mu = 0.438) last resort; GC in old space requested<--- JS stacktrace --->[22114:0301/121217.760894:ERROR:node_bindings.cc(153)] Fatal error in V8: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
abstractExtensionService.ts:929 Extension host (LocalProcess) terminated unexpectedly. Code: 11, Signal: unknown
Eb @ abstractExtensionService.ts:929
log.ts:404   ERR Extension host (LocalProcess) terminated unexpectedly. No extensions were activated.
log.ts:392  INFO Automatically restarting the extension host.
console.ts:137 [Extension Host] ONPREM is  false
console.ts:137 [Extension Host] spawning binary with command:  /Users/ddumaresq/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.250/x86_64-apple-darwin/TabNine  args:  --client=vscode --no-lsp=true --client-metadata clientVersion=1.75.1 pluginVersion=3.6.41 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Default Dark+ vscode-theme-kind=Dark vscode-machine-id=a394899f3a3b49f0895e54d2a2dff4b452e433c1aa0b94f721a1736e4438f8fa vscode-is-new-app-install=false vscode-session-id=11bfe0bd-4959-4d7d-a648-bda6f437c4921677619562823 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true ide-restart-counter=0
console.ts:137 [Extension Host] capabilities resolved immediately
console.ts:137 [Extension Host] Failed to connect to provider "No token found for host github.com"

main.log

I've sent the full crash dir to your mail account, Connor.

@dfdumaresq
Copy link
Author

Sorry @connor4312 - had trouble again with the file size. Here's a OneDrive link. Let me know if you have any issues.

@connor4312
Copy link
Member

Oh, the extension host crash is why you saw the freeze. The debugger won't exist at that point, and we don't really handle ext host crashes well in debug land right now.

This is probably the same as #174541

@dfdumaresq
Copy link
Author

Thanks Connor, I'll follow the link above.

@connor4312
Copy link
Member

I'm curious if my suggested fix at #174541 (comment) solves the issue for you or not

@dfdumaresq
Copy link
Author

dfdumaresq commented Apr 6, 2023

Hi @connor4312, I did not try your suggestion, but will add it to my launch.json now.

I got buried in my work and just tried to stop using the JS Debugger, because determining details about the extension host seemed like too much work. :/
Now I'm back to using it and getting frequent crashes (as described many times). I'm not able to identify which extension host is terminating...
image

Perhaps, your suggestion will help. Let you know.

@dfdumaresq dfdumaresq reopened this Apr 6, 2023
@dfdumaresq
Copy link
Author

@connor4312 - I've added your suggestion. But don't see any change.

  • If you're using a launch.json, please try adding enableContentValidation": true, to your launch.json

I noticed this at the top of the Debug output for Chrome: Note: Using the "preview" debug extension
I don't think that is correct. A lot has changed with VSCode.

So I've instead disabled the Nightly Javascript Debugger and enabled Debugger for Chrome (Nightly)
This is my launch configuration:

        {
            "name": "Launch Chrome",
            "request": "launch",
            "type": "chrome",
            "url": "https://localhost:8080",
            "webRoot": "${workspaceFolder}/ClientApp",
            "enableContentValidation": true
        },

On launch I now see console errors like these.

Verbose logs are written to:
/var/folders/qd/1h500p390x1122wqbrl02cw00000gr/T/vscode-chrome-debug.txt

Unexpected source relationship: src:res:/sources/develop-branch/management-console/ClientApp/node_modules/webpack-dev-server/client/modules/logger/webpack:/management-console/node_modules/webpack-dev-server/client/modules/logger/index.js?e2a7 sourceScriptRelationship = 2. #scripts = 1```

[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.
index.js?e2a7:485
Unexpected source relationship: src:res:/sources/develop-branch/management-console/ClientApp/node_modules/webpack/hot/webpack:/management-console/node_modules/webpack/hot/log.js?7596 sourceScriptRelationship = 2. #scripts = 1

I will run it until it crashes and send a log.

@connor4312
Copy link
Member

Apologies, it should be "enableContentValidation": false. True is its default value.

@dfdumaresq
Copy link
Author

Ok, I've changed the property to false as you recommend. Still seeing all the red, but will let you know how it goes.

Verbose logs are written to:
/var/folders/qd/1h500p390x1122wqbrl02cw00000gr/T/vscode-chrome-debug.txt

Unexpected source relationship: src:res:/Users/ddumaresq/EducationPlannerBC/Dockerize/EPAS/sources/develop-branch/management-console/ClientApp/node_modules/webpack-dev-server/client/modules/logger/webpack:/management-console/node_modules/webpack-dev-server/client/modules/logger/index.js?e2a7 sourceScriptRelationship = 2. #scripts = 1
[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.
...

@connor4312
Copy link
Member

Yea, I have no idea where that's coming. Searching all of Github for sourceScriptRelationship actually turns up nothing except this issue -- perhaps you have private code that's logging that?

@dfdumaresq
Copy link
Author

dfdumaresq commented Apr 20, 2023

I've switched Javascript Debugger extensions back to Javascript Debugger (Nightly). The errors are gone, and I can breakpoint now.
The first log message is: Note: Using the "preview" debug extension so I don't know exactly where the logs will be stored.

As I've reported before:
The integrated console gets flooded as before when I have redux logging on and cannot be used after a point. The Developer console shows:
image

@roblourens
Copy link
Member

With that error, I think this is the same as #146002. Sorry for not making the connection earlier. If you have a repo or some specific code you can share that reproduces the issue, I would really like to see it.

@VSCodeTriageBot
Copy link
Collaborator

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!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2023
@dfdumaresq
Copy link
Author

dfdumaresq commented Apr 28, 2023

@roblourens - what assurances can I give my director before offering you a look with our private repo? I don't mean to sound arrogant, I'm just wondering if mgmt will be comfortable with sharing and I don't see an easy way to give you a reproducible example.
I can tell you we're using React/Typescript/Webpack and C# if that helps?

Also, I'm running our management-console web app to handle the front end UI, which is my part in this.
After the screenscrape below, I am restarted the entire system. I'm starting node in a separate terminal (outside of VSCode):

29 Apr, 2023: 11:50 am PST

> management-console@1.0.0 dev
> NODE_ENV=development ./node_modules/.bin/webpack serve --progress --hot

<i> [webpack-dev-server] [HPM] Proxy created: /  -> https://localhost:44310
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: https://localhost:8080/
<i> [webpack-dev-server] On Your Network (IPv4): https://19.19.0.78:8080/
<i> [webpack-dev-server] On Your Network (IPv6): https://[fe80::1]:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/Users/ddumaresq/EducationPlannerBC/Dockerize/EPAS/sources/develop-branch/management-console/ClientApp/public' directory
<i> [webpack-dev-server] 404s will fallback to '/index.html'

Anyway, I'm the only programmer it seems that is using the debugger. (shrug), so it's probably a non-starter.
I just had a crash that occurred pretty dramatically with Chrome Inspector open on the source page and I had just cleared 3 breakpoints in VSCode and reloaded my code. Chrome tends to jump around when both are open.
But this time it did a real dance and then crashed.
Here's a screenscrape:

 ERR <semantic> TypeScript Server Error (5.0.2)
BADCLIENT: Bad error code, 7044 not found in range 7765..7777 (found: false, false, false, false); could have caused this error:
Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isParameter'.
Error: BADCLIENT: Bad error code, 7044 not found in range 7765..7777 (found: false, false, false, false); could have caused this error:
Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isParameter'.
    at cast (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:3443:16)
    at doChange24 (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:145707:23)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:145591:21
    at ChangeTracker.with (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:163891:5)
    at Object.getCodeActions (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:145590:62)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:138726:46
    at flatMap (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:2555:17)
    at Object.getFixes (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:138726:10)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135894:33
    at flatMap (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:2555:17)
    at Object.getCodeFixesAtPosition (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135892:12)
    at IpcIOSession.getCodeFixes (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179660:50)
    at getCodeFixes (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177805:43)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179962:69
    at IpcIOSession.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179954:14)
    at IpcIOSession.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179962:29)
    at IpcIOSession.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180004:51)
    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:181571:14)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21): Error: <semantic> TypeScript Server Error (5.0.2)
BADCLIENT: Bad error code, 7044 not found in range 7765..7777 (found: false, false, false, false); could have caused this error:
Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isParameter'.
Error: BADCLIENT: Bad error code, 7044 not found in range 7765..7777 (found: false, false, false, false); could have caused this error:
Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isParameter'.
    at cast (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:3443:16)
    at doChange24 (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:145707:23)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:145591:21
    at ChangeTracker.with (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:163891:5)
    at Object.getCodeActions (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:145590:62)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:138726:46
    at flatMap (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:2555:17)
    at Object.getFixes (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:138726:10)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135894:33
    at flatMap (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:2555:17)
    at Object.getCodeFixesAtPosition (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135892:12)
    at IpcIOSession.getCodeFixes (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179660:50)
    at getCodeFixes (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177805:43)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179962:69
    at IpcIOSession.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179954:14)
    at IpcIOSession.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179962:29)
    at IpcIOSession.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180004:51)
    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:181571:14)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
    at Function.create (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:2:901289)
    at h.w (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:2:896498)
    at h.u (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:2:895563)
    at ChildProcess.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:2:895195)
    at ChildProcess.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 <--- Last few GCs --->[39428:0x7fe53ab0a000]  5478396 ms: Scavenge 3623.1 (3848.8) -> 3623.1 (3848.8) MB, 1.6 / 0.0 ms  (average mu = 0.205, current mu = 0.000) allocation failure; [39428:0x7fe53ab0a000]  5478397 ms: Scavenge 3623.1 (3848.8) -> 3623.1 (3848.8) MB, 1.6 / 0.0 ms  (average mu = 0.205, current mu = 0.000) allocation failure; [39428:0x7fe53ab0a000]  5478604 ms: Mark-sweep (reduce) 3623.1 (3848.8) -> 3473.3 (3683.7) MB, 206.4 / 0.0 ms  (average mu = 0.287, current mu = 0.361) last resort; GC in old space requested<--- JS stacktrace --->[39428:0429/095847.243803:ERROR:node_bindings.cc(163)] Fatal error in V8: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
abstractExtensionService.ts:604 Extension host (LocalProcess) terminated unexpectedly. Code: 11, Signal: unknown
mb @ abstractExtensionService.ts:604
log.ts:441   ERR Extension host (LocalProcess) terminated unexpectedly. No extensions were activated.
log.ts:421  INFO Automatically restarting the extension host.
console.ts:137 [Extension Host] ONPREM is  false
console.ts:137 [Extension Host] spawning binary with command:  /Users/ddumaresq/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.285/x86_64-apple-darwin/TabNine  args:  --client=vscode --no-lsp=true --client-metadata clientVersion=1.77.1 pluginVersion=3.6.45 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Default Dark+ vscode-theme-kind=Dark vscode-machine-id=a394899f3a3b49f0895e54d2a2dff4b452e433c1aa0b94f721a1736e4438f8fa vscode-is-new-app-install=false vscode-session-id=a9cc8534-f5f0-41e5-a21d-38a1de7178971682782047851 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true ide-restart-counter=0
console.ts:137 [Extension Host] capabilities resolved immediately
[Violation] Forced reflow while executing JavaScript took 34ms
[Violation] Forced reflow while executing JavaScript took 41ms

@dfdumaresq
Copy link
Author

Console has stopped responding.
image

@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

6 participants
@dfdumaresq @roblourens @connor4312 @meganrogge @VSCodeTriageBot and others