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

ErrorException: Undefined array key "cpu" in /app/app/modules/Profiler/Application/Handlers/CalculateDiffsBetweenEdges.php at line 23 [] [] #259

Open
mxr576 opened this issue Oct 14, 2024 · 1 comment

Comments

@mxr576
Copy link

mxr576 commented Oct 14, 2024

I was tested Buggregator's profiler via XHPROF. I use DDEV as local dev environment and I took more some time figuring out why I also get back HTTP 500 from Buggregator for a profiling request by following the Vanilla PHP instructions.

This is what I managed to extract from the Buggregator Docker container as issue:

2024-10-14T09:53:35+0000        ERROR   app             ErrorException: Undefined array key "cpu" in /app/app/modules/Profiler/Application/Handlers/CalculateDiffsBetweenEdges.php at line 23 [] []`

and it seems the root cause is that in DDEV CPU profiling got disabled by default for a long time (see ddev/ddev@5efc9c1#diff-3ae14f06b135abe5b6ad9e0d247f73280b0a6e83ad5346e5db5a515931ea5f69L23) which probably also means the Buggregator should be prepared for handling missing CPU usage info as well.

Restoring CPU profiling in DDEV's XHPROF config fixed profile data push to Buggregator.

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

2 participants