adriancooney / puppeteer-heap-snapshot

API and CLI tool to fetch and query Chome DevTools heap snapshots.
MIT License
1.35k stars 68 forks source link

TypeError: Cannot read properties of undefined (reading 'graph') #8

Open ivorpad opened 1 year ago

ivorpad commented 1 year ago

Run:

npx puppeteer-heap-snapshot query -f './heap.heapsnapshot' -p full_name --debug and got:

TypeError: Cannot read properties of undefined (reading 'graph')
    at compileGraphNodeObject (/usr/local/lib/node_modules/puppeteer-heap-snapshot/dist/cjs/src/build-object.js:88:11)
    at /usr/local/lib/node_modules/puppeteer-heap-snapshot/dist/cjs/src/build-object.js:68:79
    at Array.reduce (<anonymous>)
    at compileGraphNodeObject (/usr/local/lib/node_modules/puppeteer-heap-snapshot/dist/cjs/src/build-object.js:65:26)
    at /usr/local/lib/node_modules/puppeteer-heap-snapshot/dist/cjs/src/build-object.js:68:79
    at Array.reduce (<anonymous>)
    at compileGraphNodeObject (/usr/local/lib/node_modules/puppeteer-heap-snapshot/dist/cjs/src/build-object.js:65:26)
    at /usr/local/lib/node_modules/puppeteer-heap-snapshot/dist/cjs/src/build-object.js:68:79
    at Array.reduce (<anonymous>)
    at compileGraphNodeObject (/usr/local/lib/node_modules/puppeteer-heap-snapshot/dist/cjs/src/build-object.js:65:26)

Heap snapshot https://drive.google.com/file/d/1BHiPsK4bVA-v0vPFvS-2siFrHWFyWS6Y/view?usp=sharing