davidmarkclements / 0x

🔥 single-command flamegraph profiling 🔥
MIT License
3.23k stars 106 forks source link

Invalid regular expression & Syntax Error #190

Closed Zayelion closed 6 years ago

Zayelion commented 6 years ago

Windows 7 Running in VS code CMD terminal Node 8.5.0

Process exited, generating flamegraphbufferSyntaxError:
Invalid regular expression: / C:\d+:\d+| x86)\\Nodist\\bin\\node_modules\\0x\\lib\\random-require\.js:\d+:\d+| module\.js:\d+:\d+| internal/module\.js:\d+:\d+| x86)\\Nodist\\bin\\node_modules\\0x\\lib\\loading-stacks\.js:\d+:\d+| bootstrap_node\.js:\d+:\d+$
/: Unmatched ')'
    at RegExp (<anonymous>)
    at ticksToTree (C:\Program Files (x86)\Nodist\bin\node_modules\0x\lib\ticks-to-tree.js:41:18)
    at render (C:\Program Files (x86)\Nodist\bin\node_modules\0x\lib\render.js:19:17)
    at generateFlamegraph (C:\Program Files (x86)\Nodist\bin\node_modules\0x\index.js:95:22)
    at zeroEks (C:\Program Files (x86)\Nodist\bin\node_modules\0x\index.js:59:18)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Terminate batch job (Y/N)?
mcollina commented 6 years ago

Thanks for reporting!

mcollina commented 6 years ago

I think Node 8.5.0 has a bug, everything is working as expected in Node 8.12. Would you mind updating?

mcollina commented 6 years ago

Actually this is a bug and broken in latest 0x. I'll get a fix soon.

Zayelion commented 6 years ago

Thank you for your quick response. With node 8.12 issue persist.