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

New JS debugger reporting issue on tear down #102137

Closed
martynjames opened this issue Jul 10, 2020 · 2 comments
Closed

New JS debugger reporting issue on tear down #102137

martynjames opened this issue Jul 10, 2020 · 2 comments
Labels
*out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@martynjames
Copy link

Issue Type: Bug

Vue.js application, running all unit tests from within VSCode debugger:

Debug config looks like this:

    {
      "type": "node",
      "request": "launch",
      "name": "samos-ui tests - All",
      "program": "${workspaceFolder}/frontend/samos-ui/node_modules/.bin/jest",
      "args": ["--runInBand"],
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen",
      "disableOptimisticBPs": true,
      "cwd": "${workspaceFolder}/frontend/samos-ui"
    },

Expected Results:

Process runs and completes as expected, no errors when detaching

Actual Results

Process appeared to run and complete as expected, but additional information appears upon teardown:

Test Suites: 18 passed, 18 total
Tests:       182 passed, 182 total
Snapshots:   0 total
Time:        7.734s
Ran all test suites.
Debugger listening on ws://127.0.0.1:64109/94249567-69fb-4606-a6b0-c3e4f4a61120
For help, see: https://nodejs.org/en/docs/inspector
undefined:0



illegal access
FATAL ERROR: 
node::inspector::Agent::ToggleAsyncHook Cannot toggle Inspector's AsyncHook, please report this.
 1: 0x1011c23b5 node::Abort() (.cold.1) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
 2: 0x10009c059 node::Abort() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
 3: 0x10009c1b8 node::OnFatalError(char const*, char const*) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
 4: 0x10009c069 node::FatalError(char const*, char const*) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
 5: 0x100164953 node::inspector::Agent::ToggleAsyncHook(v8::Isolate*, v8::Global<v8::Function> const&) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
 6: 0x100825203 v8_inspector::V8Debugger::setAsyncCallStackDepth(v8_inspector::V8DebuggerAgentImpl*, int) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
 7: 0x10082cf33 v8_inspector::V8DebuggerAgentImpl::disable() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
 8: 0x100845244 v8_inspector::V8InspectorSessionImpl::~V8InspectorSessionImpl() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
 9: 0x1008454fe v8_inspector::V8InspectorSessionImpl::~V8InspectorSessionImpl() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
10: 0x1001657db node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
11: 0x10016584e node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
12: 0x1001660ae node::inspector::NodeInspectorClient::disconnectFrontend(int) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
13: 0x100165e1b node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
14: 0x10017892c node::inspector::(anonymous namespace)::DeletableWrapper<node::inspector::(anonymous namespace)::MainThreadSessionState>::~DeletableWrapper() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
15: 0x10015784a unsigned long std::__1::__hash_table<std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::hash<int>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > > > >::__erase_unique<int>(int const&) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
16: 0x100178b1e node::inspector::(anonymous namespace)::DeleteRequest::Call(node::inspector::MainThreadInterface*) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
17: 0x100177763 node::inspector::MainThreadInterface::DispatchMessages() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
18: 0x10017915e node::inspector::(anonymous namespace)::DispatchMessagesTask::Run() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
19: 0x1000fffe3 node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task> >) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
20: 0x1000fed07 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
21: 0x100943764 uv__async_io [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
22: 0x100956a2f uv__io_poll [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
23: 0x100943cd1 uv_run [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
24: 0x10004ff59 node::Environment::CleanupHandles() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
25: 0x1000506d2 node::Environment::RunCleanup() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
26: 0x1000d87fe node::NodeMainInstance::Run() [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
27: 0x100071f13 node::Start(int, char**) [/Users/mjames/.nvm/versions/node/v13.12.0/bin/node]
28: 0x7fff671d7cc9 start [/usr/lib/system/libdyld.dylib]
29: 0x3 
zsh: abort      env   /Users/mjames/.nvm/versions/node/v13.12.0/bin/node  --runInBand

VS Code version: Code 1.47.0 (d5e9aa0, 2020-07-09T08:01:54.115Z)
OS version: Darwin x64 19.5.0

Extensions (61)
Extension Author (truncated) Version
Bookmarks ale 11.3.1
npm-intellisense chr 1.3.0
path-intellisense chr 2.2.1
bracket-pair-colorizer Coe 1.0.61
vscode-eslint dba 2.1.6
xml Dot 2.5.0
Vue2 duc 0.1.3
gitlens eam 10.2.2
vscode-html-css ecm 0.2.3
vscode-npm-script eg2 0.3.12
prettier-vscode esb 5.1.3
auto-close-tag for 0.5.8
auto-rename-tag for 0.1.4
kotlin fwc 0.2.18
vscode-pull-request-github Git 0.17.0
cloudcode goo 1.4.1
gc-excelviewer Gra 3.0.37
json2ts Gre 0.0.6
vscode-test-explorer hbe 2.19.1
format-python-docstrings ian 1.2.1
vue jcb 0.1.5
plantuml jeb 2.13.12
docthis joe 0.7.1
intellij-idea-keybindings k-- 0.2.41
vsc-python-indent Kev 1.10.1
restructuredtext lex 128.0.0
vscode-python-test-adapter lit 0.4.4
ts-extension-pack loi 0.2.0
javadoc-tools mad 1.4.0
code-groovy mar 0.1.2
vscode-docker ms- 1.3.1
pyright ms- 1.1.51
python ms- 2020.6.91350
vscode-typescript-tslint-plugin ms- 1.2.3
debugger-for-chrome msj 4.12.9
gradle-language nac 0.2.3
vscode-groovy-lint Nic 0.17.1
vetur oct 0.24.0
tsimporter pmn 2.0.1
tslint-vue pro 1.5.6
language-plantuml qho 0.0.3
vue-typescript-snippets qmz 0.0.2
typescript-hero rbb 3.0.0
java red 0.64.1
vscode-yaml red 0.8.0
vscode-gradle ric 3.3.0
vscode-jest-test-adapter rtb 0.2.0
vue-vscode-extensionpack sdr 0.2.0
vue-vscode-snippets sdr 1.9.0
sonarlint-vscode Son 1.16.0
move-ts str 1.12.0
vscode-status-bar-format-toggle tom 2.0.0
vscodeintellicode Vis 1.2.9
vscode-java-debug vsc 0.26.0
vscode-java-dependency vsc 0.10.2
vscode-java-pack vsc 0.9.1
vscode-java-test vsc 0.23.0
vscode-maven vsc 0.22.0
vscode-jumpy wma 0.3.1
JavaScriptSnippets xab 1.8.0
markdown-pdf yza 1.4.4

(1 theme extensions excluded)

@connor4312
Copy link
Member

connor4312 commented Jul 10, 2020

This is nodejs/node#27261. There hasn't yet been a fix to that issue, but you may have some luck if you try updating to Node 14.

@connor4312 connor4312 added *out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream labels Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

3 participants
@martynjames @connor4312 and others