Skip to content

Getting error TypeError: Cannot set properties of undefined (setting 'endEventIdx') #284

Open
@engcom-Hotel

Description

@engcom-Hotel

When we are running profiler on any page after some time we get this error;

TypeError: Cannot set properties of undefined (setting 'endEventIdx')

Image

Please fix it ASAP.

Thanks

Activity

NoiseByNorthwest

NoiseByNorthwest commented on Feb 2, 2025

@NoiseByNorthwest
Owner

Please fix it ASAP.

I think there is something you don't understand about OSS

engcom-Hotel

engcom-Hotel commented on Feb 4, 2025

@engcom-Hotel
Author

Yes, please help in understanding the same. :-)

DanielRuf

DanielRuf commented on Feb 15, 2025

@DanielRuf
Contributor

frame is undefined in this case.
You can see the code there: https://github.com/search?q=repo%3ANoiseByNorthwest%2Fphp-spx%20endEventIdx&type=code

That means in this case the array has no elements or an element with undefined as value (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop), which can be easily checked.

Pullrequests are welcome @engcom-Hotel.

NoiseByNorthwest

NoiseByNorthwest commented on Feb 16, 2025

@NoiseByNorthwest
Owner

I don't see what could cause this.stack.pop() to return undefined here except a corrupted report.

DanielRuf

DanielRuf commented on Feb 16, 2025

@DanielRuf
Contributor

@engcom-Hotel can you share a screenshot of all error that appear in the browser console, when this happens?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Getting error TypeError: Cannot set properties of undefined (setting 'endEventIdx') · Issue #284 · NoiseByNorthwest/php-spx