Skip to content

Internal Error When Viewing XHProf Flamegraph #282

@s5k

Description

@s5k

Hello, first off, thank you for this amazing tool! I'm new to Buggregator and really appreciate the value it brings to debugging workflows.


Issue

When profiling requests using XHProf, some requests render the flamegraph correctly. However, for others—particularly those involving Magento cache clearing—I encounter an internal error when Buggregator tries to fetch the flamegraph.


🔗 Failing Endpoint

GET http://localhost:8000/api/profiler/0197a648-7d00-72e0-9833-74ae66685db8/flame-chart

🧵 Error Response

{
  "message": "Content must be a resource stream or stringable type, but bool passed",
  "code": 500
}

⚙️ Environment

  • Tool: Buggregator dev/stable version
  • Profiler: XHProf
  • Framework: Magento 2
  • Request Type: POST/GET with cache-clearing behavior
  • Localhost Port: 8000
  • Profiling package: spiral-packages/profiler

🧪 Reproduction Steps

  1. Perform a request in Magento that clears cache (e.g., config save or cache flush).
  2. Attempt to view the flamegraph in Buggregator.
  3. Observe 500 error response from /api/profiler/.../flame-chart.

Image

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions