Repository navigation
Stop inspect the main thread Blocked. #12559
Description
Activity
- addedc++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.inspectorIssues and PRs related to the V8 inspector protocol.Issues and PRs related to the V8 inspector protocol.questionIssues asking questions about Node.js.Issues asking questions about Node.js.
on Apr 21, 2017 Is it "Waiting for frontend to disconnect"?
I don't thing so,because my chrome inspector not connected.
@823639792 Can you post exact steps to reproduce and check whether it still happens with the latest v7.x release?
node version: 7.8.0
platform: win7
1、node --inspect c:\node.js
2、call method process._debugEnd() in c:\node.jsIn fact, I embeded node in my win32 application, And want to reload nodejs: release and alloc new。
And I force edit source code:
void AgentImpl::Stop() { #if 0 //remove by hzy int err = uv_thread_join(&thread_); CHECK_EQ(err, 0); #else server_->Stop(nullptr); #endif delete inspector_; }
Now node can reload when inspector not connect, but if inspector connect it still crash。
How terrible my code。-_-|||Thank you for reporting it. I see the issue, debugging now.
@eugeneo
Hello, I add you code to my project, if no inspector attached, it works well.
But if chrome inspector attached, and call _debugEnd, it still blocked.
blocked in:InspectorIo::WorkerRunIO -> uv_run(&loop, UV_RUN_DEFAULT); -> (*poll)(loop, timeout); -> uv_poll_ex() -> pGetQueuedCompletionStatusExAre you using Chrome DevTools? Try the same with a different frontend (e.g. VS Code). Chrome DevTools have a bug - https://bugs.chromium.org/p/chromium/issues/detail?id=718619 - I hope I will have time this week to look into it.
Both “chrome://inspect” and connecting through “chrome-devtools://...” blocked。
Maybe some wrong in my code. or my version is 7.8 and you is 8.0。I will try to find root cause。- added 2 commits that reference this issue
on May 23, 2017
node version: 7.5.0
platform: win7
I start node with "node --inspect c:\node.js"
And I wand to stop inspect, but the main thread Blocked.
and block in
call process._debugEnd(); have same question.