> For the complete documentation index, see [llms.txt](https://docs.bugsplat.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bugsplat.com/guides/stack-explorer.md). Agents can also search and read this documentation through its [MCP server](https://docs.bugsplat.com/~gitbook/mcp).

# Stack Explorer

A crash group tells you which function was at the top of the stack. The Stack Explorer shows you every call path that led there, sized by how many crashes took each one. With it you can spot the one caller behind most of a group's crashes and open exactly those crash reports.

## Opening the Stack Explorer

Open a crash group from the [Summary](https://app.bugsplat.com/v2/summary) page, then click **Call Stack Explorer** on the Crash Group page. The Stack Explorer covers the date range in the date picker at the top of the page.

The summary at the top shows the group's ID, the function at the top of the stack, how many crashes the group has, and how many distinct stacks those crashes have. Click **View all crashes** to open the [Crashes](https://app.bugsplat.com/v2/crashes) page filtered to the group.

<figure><img src="https://976110677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LBMgmIcgkIXSUfnXDSv%2Fuploads%2Fgit-blob-2fc586de09cdbf76b570640e94ddcd255a153665%2Fstack-explorer.png?alt=media" alt="Stack Explorer for a crash group at AssetCache.acquire, with the TextureStreamer.uploadMip caller selected in the legend, its boxes outlined in the treemap, the bar showing 48 crashes and View crashes, and the call tree below"><figcaption><p>The Stack Explorer</p></figcaption></figure>

## Treemap

The treemap at the top gives each distinct call stack in the group a box, sized by its crash count, so the biggest boxes are the stacks that crash most often. Stacks that share callers sit next to each other in the same color. The legend beside the treemap lists those callers and their crash counts. Hover over a caller in the legend to see its full name and file.

Each box is labeled with the frame where its stack branches off from the others in the group, along with its file and crash count when the box has room. Hover over a box to see its full call path.

On a wide screen, the treemap, the bar under it and the tree's toolbar stay at the top of the page while you scroll through the tree, so they're in view however deep the stacks go. On a short window or a phone, only the tree's toolbar stays at the top.

## Tree

The tree below the treemap starts at the function at the top of the stack and lists its callers below it, one frame per row. A row shows the function, its file and line, how many crashes passed through that frame, and that frame's share of the group's crashes, drawn as a bar. Hover over the file name to see the full path.

A frame with only one caller is listed at the same indent as that caller, joined to it by a thin line that ends in a short tail at the last frame, so a stretch of the stack with no branches reads like an ordinary call stack. The tree indents only where a stack branches into two or more callers. Those branch points have an arrow that opens or closes the callers below them.

Below a path's last branch point, the tree shows only the first frame and folds the rest of the stack into a row such as **4 more frames**. Click that row to see those frames, and **Show fewer** to fold them again.

The toolbar at the top of the tree holds its controls. Use **Depth** to choose how many branch points to open along each path: click **−** or **+**, or type a number. The number after **of** is the most branch points on any path in the group. **All** opens every branch point. Click **Expand busiest path** to open the path with the most crashes all the way to the bottom of the stack and select its last frame.

## Finding a function

Type in **Search functions**, in the tree's toolbar, to highlight every frame whose function matches. The number of matching frames appears next to the box. The tree opens to show each match, and the treemap fades the boxes for stacks that don't pass through one.

<figure><img src="https://976110677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LBMgmIcgkIXSUfnXDSv%2Fuploads%2Fgit-blob-81692702d0fcdad0ac40436052fefe9218b4b1bd%2Fstack-explorer-search.png?alt=media" alt="A search for onSnapshot highlights VehicleReplicator.onSnapshot and PickupReplicator.onSnapshot in the tree, and the treemap fades every box except the three stacks that pass through them"><figcaption><p>Searching for onSnapshot</p></figcaption></figure>

## Viewing the crashes for a call path

Click a box in the treemap, a caller in the legend, or a row in the tree to select that frame. The treemap outlines the boxes for the stacks that pass through the selected frame, and the tree opens to its row. The bar under the treemap shows the selected frame's function, file and line, crash count, share of the group, and how many distinct stacks pass through it.

Click **View crashes** in that bar to open the Crashes page filtered to the crashes whose call stack passed through that frame, for the same date range. For the frame at the top of the stack, **View crashes** opens every crash in the group.

{% hint style="info" %}
The Crashes page also applies any application and version selections you've made there, so its count can be lower than the count in the Stack Explorer.
{% endhint %}

## Finding what to fix first

When the function at the top of the stack is one that many parts of your code call, such as an allocator, a cache or an assert helper, a single crash group can hold several different bugs that all fail in that function. The Stack Explorer splits the group by call path, so you can see which path to fix first.

<figure><img src="https://976110677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LBMgmIcgkIXSUfnXDSv%2Fuploads%2Fgit-blob-5ae2255e87af9513f6ee0a2fe854c3d41a7b29bb%2Fstack-explorer.gif?alt=media" alt="Animation: stepping Depth down and up, selecting the ReplicatedComponent.bindAsset caller to outline its eight small boxes, clicking the large StreamingJob.run box, unfolding its 19 more frames, and clicking View crashes to open the Crashes page filtered to those 38 crashes"><figcaption><p>From the biggest box to its crash reports</p></figcaption></figure>

In this example, every crash in the group stops in `AssetCache.acquire`. The legend shows that `TextureStreamer.uploadMip` made the call in 48 of the group's 86 crashes, and the biggest box, `StreamingJob.run`, holds 38 of them. Click that box and then **View crashes** to open those 38 crash reports, the single call path behind the most crashes.

The second caller, `ReplicatedComponent.bindAsset`, has 31 crashes spread over eight small boxes, one for each way the networking code reaches the cache. In the tree, the handlers sit side by side under `ReplicatedComponent.applyField`, each with its own folded frames. When one caller breaks into many small boxes like this, the cause is likely in how that whole subsystem uses the shared function, and fixing one handler leaves the others crashing.

<figure><img src="https://976110677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LBMgmIcgkIXSUfnXDSv%2Fuploads%2Fgit-blob-367745fc5439f1c421b3c9885ad962d8c4291a4a%2Fstack-explorer-tree.png?alt=media" alt="The tree under ReplicatedComponent.applyField: seven replication handlers with 2 to 8 crashes each, each followed by a folded 17 more frames row, and VehicleReplicator.onSnapshot continuing to a branch point at EntityReplicator.dispatch"><figcaption><p>Many small paths into the same function</p></figcaption></figure>

## Large crash groups

A group with many different call paths may have more frames than the Stack Explorer can show at once. When that happens, a banner says so and the Stack Explorer shows the call paths with the most crashes. Choose a shorter date range to see every call path.

Some crash reports arrive without a call stack, so they can't appear in the tree or the treemap. When a group has crashes like these in the selected date range, a note under the tree's toolbar says how many there are. The crash count at the top of the page counts only crashes with a call stack, and **View all crashes** opens every crash in the group.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bugsplat.com/guides/stack-explorer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
