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

Cannot read property error of undefined. #34

Open
ssivanatarajan opened this issue Mar 23, 2018 · 5 comments
Open

Cannot read property error of undefined. #34

ssivanatarajan opened this issue Mar 23, 2018 · 5 comments

Comments

@ssivanatarajan
Copy link

ssivanatarajan commented Mar 23, 2018

I am using Tracealayzer node module. got the below error in devtools-timeline module

promiserejection TypeError: Cannot read property 'error' of undefined
    at TimelineModel.TimelineModel._processMetadataEvents (chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js:267:22)
    at TimelineModel.TimelineModel.setEvents (chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js:174:31)
    at SandboxedModel.init (evalmachine.<anonymous>:133:25)
    at new ModelAPI (/Users/siva-6016/Documents/node scripts/puppeteer/node_modules/tracealyzer/node_modules/devtools-timeline-model/index.js:29:18)
    at init (/Users/siva-6016/Documents/node scripts/puppeteer/node_modules/tracealyzer/index.js:31:17)
    at Timeout.analyse [as _onTimeout] (/Users/siva-6016/Documents/node scripts/puppeteer/tracealyzer_test.js:5:24)
    at ontimeout (timers.js:475:11)
    at tryOnTimeout (timers.js:310:5)
    at Timer.listOnTimeout (timers.js:270:5)
@ssivanatarajan ssivanatarajan changed the title Cannot read property error of undefined. while using Tracealyser library which using devtools time line as dependency. Cannot read property error of undefined. Mar 23, 2018
@ssivanatarajan
Copy link
Author

Any update on this issue?

@ssivanatarajan
Copy link
Author

@paulirish

@goelayu
Copy link

goelayu commented Jul 31, 2018

Sometimes this error is observed if your timeline trace has some missing samples.
Try loading the trace using the graphic timeline viewer and see if the console gives you any error.

@raviregina
Copy link

@paulirish I got this same error while parsing the timeline profile.

Here is the log trace,

TypeError: Cannot read property 'error' of undefined
at TimelineModel.TimelineModel._extractCpuProfile (chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js:471:22)
at TimelineModel.TimelineModel._injectJSFrameEvents (chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js:482:31)
at TimelineModel.TimelineModel._processThreadEvents (chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js:505:23)
at TimelineModel.TimelineModel.setEvents (chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js:197:16)
at SandboxedModel.init (evalmachine.:133:25)
at new ModelAPI (/Users/ravi-6704/Documents/test/anonFunctionnew-copy/node_modules/devtools-timeline-model/index.js:29:18)
at initial (/Users/ravi-6704/Documents/test/anonFunctionnew-copy/index.js:18:17)
at Object. (/Users/ravi-6704/Documents/test/anonFunctionnew-copy/index.js:38:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

It would be very helpful if you provide the solution.

Thanks in advance!!!

@lreher
Copy link

lreher commented Aug 30, 2021

Hey I know I'm 3 years late to the party, but if anyone is struggling with this issue take a look at the code for:
https://www.npmjs.com/package/tracealyzer

The issue is some events need to be cleaned up before parsing.

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

4 participants