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

UI error with Node.js CPU profile: TypeError: Failed to construct 'URL' #475

Closed
ofrobots opened this issue Jun 26, 2019 · 7 comments
Closed
Labels
Priority: p3 Buganizer priority - P3 type: bug Buganizer type - Bug

Comments

@ofrobots
Copy link

Originally reported at nodejs/node#25576 (comment) by @filipesilva:

Capturing the CPU profile using the node pprof was a breeze. The browser visualization for the CPU profile seems to fail to render for view->top with a Uncaught TypeError: Failed to construct 'URL': Invalid URL console message, and view->flamegraph fails with the same plus Uncaught RangeError: Maximum call stack size exceeded. view->graph/peek/source seem to work. I need to spend some time looking at the information in here. Haven't yet tried the heap profile mode.

@kalyanac
Copy link
Contributor

@filipesilva

Can you share the profile you are having trouble with?

@filipesilva
Copy link

Thanks for following up on this! @kalyanac this is the profile I used:

pprof-profile-10488.pb.gz

I recorded it using the instructions in https://www.npmjs.com/package/pprof#requiring-from-the-command-line.

@nolanmar511
Copy link
Contributor

nolanmar511 commented Jun 26, 2019

Thanks for the profile!

@filipesilva - Another follow-up questions: Which version of pprof are you using? (Either the commit hash if using pprof from this repo, or the go version if using go tool pprof would be helpful)

I can't reproduce either error with the pprof at the head of this repo as describe. The flame tab works for me. There's definitely seems to be a problem with the top view, though (none of the functions load).

@filipesilva
Copy link

@nolanmar511 I am not sure how to check the version. I followed the steps in https://github.com/google/pprof#building-pprof earlier today for the first time. I ran go get -u github.com/google/pprof in powershell, then opened the profile via pprof -http=: pprof-pprof-profile-10488.pb.gz.

Below is what I see in chrome for the graph, with the console open:
image

I'm seeing Uncaught TypeError: Failed to construct 'URL': Invalid URL on all pages of View actually. Maybe it's a windows related problem? I am on Windows 10.

I tried flamegraph again and I was able to see the flamegraph, without a Uncaught RangeError: Maximum call stack size exceeded. error. I'm not sure why the different behaviour. The profile I sent over is not the original one, but it is another profile of the same type of execution, so I expected the same behaviour.

@kalyanac kalyanac assigned kalyanac and nolanmar511 and unassigned kalyanac Jun 26, 2019
@nolanmar511
Copy link
Contributor

Thanks!

The version of pprof from the head of this repo is being used. This might be a Windows-specific issue.

@Louis-Ye Louis-Ye added type: bug Buganizer type - Bug Priority: p3 Buganizer priority - P3 labels May 16, 2023
@pablomercadolibre
Copy link

Hi, i just installed from latest and i've this issue, seems related to duplicated id's

Captura de pantalla 2023-06-22 a la(s) 09 24 16

i've changed the id of the container locally and it works but i'm not sure if it needs to be adjusted somewhere else.

@aalexand
Copy link
Collaborator

I cannot reproduce this now, I think the ID conflict was since fixed by @ghemawat in #792.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: p3 Buganizer priority - P3 type: bug Buganizer type - Bug
Projects
None yet
Development

No branches or pull requests

7 participants