Profile tab is not showing #4

Open
ThiagoMiranda opened this Issue Jul 5, 2012 · 21 comments

Projects

None yet
@ThiagoMiranda
Collaborator

Hi!!
I'm having some memory issues in a nodeJS application that is currently on production so I'm trying to search for a way to detect and prevent it.. I came across this tutorial but when I open the debug page the profile tab is not showing ( after I've followed the steps from the tutorial ). Am I doing something wrong?

Thanks!

@vicapow

+1

@szayat
Collaborator

same here

@wangbus
Collaborator

Same here.

@dcolens
Collaborator

as per node-inspector/node-inspector#126, try downgrading to 0.1.10 it worked for me!

@muffik
Collaborator

how downgrade it to 0.1.10??

@rschiavi
Collaborator

npm install -g node-inspector@0.1.10

@NachoSoto
Collaborator

No luck for me either. It's really sad that this repo is no longer maintained.

@felixge
Owner

No luck for me either. It's really sad that this repo is no longer maintained.

Good point! Since you guys seem interested, I just made all of you contributors on the project:

@NachoSoto @rschiavi @muffik @dcolens @wangbus @szayat @minchenkov @ecdeveloper @vicapow @ThiagoMiranda : If any of you has figured out how to get things to work again - please share it by updating the readme.

❤️

@vicapow

Hey, sorry Felixge. I know a "+1" isn't very helpful. when it comes to open source, it's way easier to ask for features, or report bugs, then it is to actually contribute or simply say "thank you." I can't say I really have the domain knowledge to work on this issue but I am trying to do what I can to give back more to the community I've taken so much from.

- Apologies, & Thank you

@felixge
Owner

@vicapow np, I just added everybody to the repo as I won't have time to help with this myself anytime soon.

@bnitica

npm install -g node-inspector@0.1.10 worked for me.
1. I stopped both processes node-inspector and "node --debug leak.js"
2. npm install -g node-inspector@0.1.10
3. execute "node --debug leak.js" and node-inspector
4. refresh the Chrome tab with the debugger address

@palominoz

npm install -g node-inspector@0.1.10 worked for me too 👍

@tlhunter

I've installed node-inspector 0.1.10, however once I click that little eye ball icon, the inspector crashes:

/usr/local/lib/node_modules/node-inspector/lib/session.js:910
              head: JSON.parse(msg.body.value)
                                       ^
TypeError: Cannot read property 'value' of undefined
    at /usr/local/lib/node_modules/node-inspector/lib/session.js:910:40
    at Object.create.processResponse.value (/usr/local/lib/node_modules/node-inspector/lib/callback.js:22:18)
    at parse (/usr/local/lib/node_modules/node-inspector/lib/debugger.js:38:29)
    at parse (/usr/local/lib/node_modules/node-inspector/lib/debugger.js:65:7)
    at Socket.<anonymous> (/usr/local/lib/node_modules/node-inspector/lib/debugger.js:114:5)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:746:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
@jaromirmuller

I have same problem @tlhunter

@warrenpoon

I have this same problem, I am running Node v0.11.13, node-inspector 0.1.10:

node-inspector app.js
info - socket.io started
visit http://0.0.0.0:8080/debug?port=5858 to start debugging
/usr/local/lib/node_modules/node-inspector/lib/session.js:910
head: JSON.parse(msg.body.value)
^

@sean-hill

I have same problem @tlhunter

@johnsmith0209

Hi! Is there any one still working on this? I have the same problem @tlhunter and I looked into 'msg' found there is an error msg and couldn't find body here

{ seq: 22,
  request_seq: 8,
  type: 'response',
  command: 'evaluate',
  success: false,
  message: 'TypeError: Object #<Snapshot> has no method \'stringify\'',
  running: true }
@bhuvanark

Hi!
I have same problem. Could someone help?

/node_modules/node-inspector/lib/session.js:910
head: JSON.parse(msg.body.value)
^
TypeError: Cannot read property 'value' of undefined
at /node_modules/node-inspector/lib/session.js:910:40
at Object.create.processResponse.value (/node_modules/node-inspector/lib/cal
lback.js:22:18)
at parse (/node_modules/node-inspector/lib/debugger.js:38:29)
at parse (/node_modules/node-inspector/lib/debugger.js:65:7)
at Socket. (/node_modules/node-inspector/lib/debugger.js:114:5)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket. (stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable
(_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)

Thanks in advance.

@bhuvanark

Hi All,
Checking for msg.body.value existence in session.js of node-inspector, solved problem of node-inspector crash.

Code Snippet:
if(msg.body && msg.body.value) {
sendResponse(seq, true, {
profile: {
title: 'org.webkit.profiles.user-initiated.' + uid,
uid: uid,
typeId: type,
head: JSON.parse(msg.body.value)
}
});
}

But v8-profiler, takeSnapshot values are not displayed in profiler.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment