You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./out/Release/node inspect -p 0
Debugger listening on ws://127.0.0.1:9229/ef5d9804-6bab-4956-b2da-04b21081fac7
For help see https://nodejs.org/en/docs/inspector
connecting to 127.0.0.1:9229 ...Debugger attached.
debug> takeHeapSnapshot(); takeHeapSnapshot()
Heap snaphost prepared.
Heap snaphost prepared.
Heap snaphost prepared.
Heap snaphost prepared.
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at writeAfterEnd (_stream_writable.js:227:12)
at WriteStream.Writable.write (_stream_writable.js:277:5)
at Proxy.onChunk (internal/deps/node-inspect/lib/internal/inspect_repl.js:913:20)
at Proxy.emit (events.js:134:15)
at Proxy.emit (domain.js:437:20)
at Client.NodeInspector.handleDebugEvent (internal/deps/node-inspect/lib/_inspect.js:169:22)
at Client.emit (events.js:129:13)
at Client.emit (domain.js:437:20)
at Client._handleChunk (internal/deps/node-inspect/lib/internal/inspect_client.js:216:14)
at Socket.emit (events.js:129:13)
Writing snapshot: 5341202Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at writeAfterEnd (_stream_writable.js:227:12)
at WriteStream.Writable.write (_stream_writable.js:277:5)
at Proxy.onChunk (internal/deps/node-inspect/lib/internal/inspect_repl.js:913:20)
at Proxy.emit (events.js:134:15)
at Proxy.emit (domain.js:437:20)
at Client.NodeInspector.handleDebugEvent (internal/deps/node-inspect/lib/_inspect.js:169:22)
at Client.emit (events.js:129:13)
at Client.emit (domain.js:437:20)
at Client._handleChunk (internal/deps/node-inspect/lib/internal/inspect_client.js:216:14)
at Socket.emit (events.js:129:13)
// etc.
Activity
gireeshpunathil commentedon Jul 31, 2021
/cc @nodejs/inspector - knowing which area needs to be synchronized will be a good starting point for someone to start looking into this.
test: add known issues test for debugger heap snapshot race
debugger: prevent simultaneous heap snapshots
test: add known issues test for debugger heap snapshot race
debugger: prevent simultaneous heap snapshots
debugger: prevent simultaneous heap snapshots
debugger: prevent simultaneous heap snapshots