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

Illegal access error when running a task from launch.json #102371

Closed
fetimo opened this issue Jul 13, 2020 · 1 comment
Closed

Illegal access error when running a task from launch.json #102371

fetimo opened this issue Jul 13, 2020 · 1 comment
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues 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

@fetimo
Copy link

fetimo commented Jul 13, 2020

Issue Type: Bug

I have a launch.json file which runs this task:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Jest Current File",
      "program": "${workspaceFolder}/node_modules/.bin/jest",
      "args": ["${relativeFile}"],
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen",
      "cwd": "${workspaceFolder}",
      "skipFiles": [
        "node_modules/**/*.js"
      ]
    }
  ]
}

It runs the task successfully but after it has run it produces the following error:

Debugger listening on ws://127.0.0.1:53058/320f84cc-741f-40da-a64b-736a4394e700
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: 0x1011bdf85 node::Abort() (.cold.1) [/usr/local/bin/node]
 2: 0x10009d569 node::Abort() [/usr/local/bin/node]
 3: 0x10009d6cf node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
 4: 0x10009d579 node::FatalError(char const*, char const*) [/usr/local/bin/node]
 5: 0x10016b570 node::inspector::Agent::AsyncTaskScheduled(v8_inspector::StringView const&, void*, bool) [/usr/local/bin/node]
 6: 0x10081be73 v8_inspector::V8Debugger::setAsyncCallStackDepth(v8_inspector::V8DebuggerAgentImpl*, int) [/usr/local/bin/node]
 7: 0x100824873 v8_inspector::V8DebuggerAgentImpl::disable() [/usr/local/bin/node]
 8: 0x10083c9b6 v8_inspector::V8InspectorSessionImpl::~V8InspectorSessionImpl() [/usr/local/bin/node]
 9: 0x10083cc6e v8_inspector::V8InspectorSessionImpl::~V8InspectorSessionImpl() [/usr/local/bin/node]
10: 0x10016c41b node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() [/usr/local/bin/node]
11: 0x10016c48e node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() [/usr/local/bin/node]
12: 0x10016ccde node::inspector::NodeInspectorClient::disconnectFrontend(int) [/usr/local/bin/node]
13: 0x10016ca4b node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() [/usr/local/bin/node]
14: 0x10017f33c node::inspector::(anonymous namespace)::DeletableWrapper<node::inspector::(anonymous namespace)::MainThreadSessionState>::~DeletableWrapper() [/usr/local/bin/node]
15: 0x10015e26a 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&) [/usr/local/bin/node]
16: 0x10017f52e node::inspector::(anonymous namespace)::DeleteRequest::Call(node::inspector::MainThreadInterface*) [/usr/local/bin/node]
17: 0x10017e17d node::inspector::MainThreadInterface::DispatchMessages() [/usr/local/bin/node]
18: 0x10017fb6e node::inspector::(anonymous namespace)::DispatchMessagesTask::Run() [/usr/local/bin/node]
19: 0x1001061fb node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task> >) [/usr/local/bin/node]
20: 0x100104f07 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [/usr/local/bin/node]
21: 0x1009361fb uv__async_io [/usr/local/bin/node]
22: 0x10094952a uv__io_poll [/usr/local/bin/node]
23: 0x100936781 uv_run [/usr/local/bin/node]
24: 0x100050fb9 node::Environment::CleanupHandles() [/usr/local/bin/node]
25: 0x1000515a8 node::Environment::RunCleanup() [/usr/local/bin/node]
26: 0x1000de225 node::NodeMainInstance::Run() [/usr/local/bin/node]
27: 0x100073a25 node::Start(int, char**) [/usr/local/bin/node]
28: 0x7fff6c6e7cc9 start [/usr/lib/system/libdyld.dylib]
zsh: abort      env   /usr/local/bin/node ./node_modules/.bin/jest 

Downgrading to VS Code 1.46 fixes the issue.

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

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (1.96GB free)
Process Argv . --disable-extensions
Screen Reader no
VM 0%
Extensions disabled
@weinand weinand assigned connor4312 and unassigned weinand Jul 13, 2020
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 13, 2020
@connor4312
Copy link
Member

connor4312 commented Jul 13, 2020

This is a Node issue, captured in nodejs/node#27261

If the old debugger worked for you, you can try setting debug.javascript.usePreview: false to use it until the Node issue is fixed.

@connor4312 connor4312 added 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 13, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues 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