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

Error while processing v8.log - TypeError [ERR_INVALID_ARG_TYPE] #12

Open
PraveenRamakrishna opened this issue Jul 16, 2020 · 2 comments

Comments

@PraveenRamakrishna
Copy link

While processing attached v8 log, following error is thrown.

internal/fs/utils.js:537
throw new ERR_INVALID_ARG_TYPE(propName, ['string', 'Buffer', 'URL'], path);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at Object.open (fs.js:424:10)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object. (C:\Users\I537607\scoop\persist\nvm\nodejs\v12.18.0\node_modules\flamebearer\bin\flamebearer:10:40)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
code: 'ERR_INVALID_ARG_TYPE'
isolate-0000019DFAB4A890-2000-v8.zip

Could you please help me here.

@fmileto
Copy link

fmileto commented Jul 23, 2021

Same issue there

@chenrui333
Copy link
Contributor

chenrui333 commented Sep 6, 2021

works for me. (it looks like flamebearer cannot be run without any args, but it does parse the flamegraph pretty well)

node --prof app.js
node --prof-process --preprocess -j isolate*.log | flamebearer

I have tested with both nodev14 and nodev16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants