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
C:\Users\abyrd\AppData\Roaming\npm\node_modules\backtrace-morgue\node_modules\backtrace-node\lib\backtraceClient.js:270
throw e;
^
Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:761:9)
at C:\Users\abyrd\AppData\Roaming\npm\node_modules\backtrace-morgue\bin\morgue.js:5338:17
at onResponse (C:\Users\abyrd\AppData\Roaming\npm\node_modules\backtrace-morgue\lib\coroner.js:108:5)
at Request._callback (C:\Users\abyrd\AppData\Roaming\npm\node_modules\backtrace-morgue\lib\coroner.js:391:12)
at self.callback (C:\Users\abyrd\AppData\Roaming\npm\node_modules\backtrace-morgue\node_modules\request\request.js:185:22)
at Request.emit (node:events:519:28)
at Request.<anonymous> (C:\Users\abyrd\AppData\Roaming\npm\node_modules\backtrace-morgue\node_modules\request\request.js:1154:10)
at Request.emit (node:events:519:28)
at IncomingMessage.<anonymous> (C:\Users\abyrd\AppData\Roaming\npm\node_modules\backtrace-morgue\node_modules\request\request.js:1076:12) {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
}
Node.js v21.7.1
I believe this comes from assuming the pl file itself is executable, but shebang doesn't work on Windows.
spawn can call the appropriate executable with the script as an argument. This appears to work, but I don't know if enough about this ecosystem to know whether it's the right thing to do. var child = spawn('node', [flamegraph]);
At least, it doesn't crash, but I end up with an empty svg. I can confirm the script is executing, the correct data is being returned, and it's being output to child.stdin. The problem appears to be here. The file is successfully created, but the pipe call doesn't end up outputting anything to it. I imagine this is because the child process is now node running a script, rather than the perl instance itself.
morgue flamegraph myproj --filter "application,equal,FooServer" -o out.svg
I believe this comes from assuming the pl file itself is executable, but shebang doesn't work on Windows.
backtrace-morgue/assets/flamegraph.pl
Line 1 in c7220fa
spawn
can call the appropriate executable with the script as an argument. This appears to work, but I don't know if enough about this ecosystem to know whether it's the right thing to do.var child = spawn('node', [flamegraph]);
At least, it doesn't crash, but I end up with an empty svg. I can confirm the script is executing, the correct data is being returned, and it's being output to
child.stdin
. The problem appears to be here. The file is successfully created, but thepipe
call doesn't end up outputting anything to it. I imagine this is because the child process is now node running a script, rather than the perl instance itself.backtrace-morgue/bin/morgue.js
Line 5398 in c7220fa
The text was updated successfully, but these errors were encountered: