> ## Documentation Index
> Fetch the complete documentation index at: https://docs.manalens.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Game crash event

> Reference for the game_crash event. The game SDKs send it at the next launch if the last run did not exit normally. It has the engine's crash stack.

The `game_crash` event records that the last run of your game crashed: it did not exit normally while the game had focus (a crash, a force quit or a power loss). A running game cannot report its own crash, so the SDK sends `game_crash` at the next launch. It is a `track` event. It has the session ID and the time of the run that crashed. So it counts in that session and build, not in the session that reported it.

A session with a `game_crash`, or with an unhandled `critical` [error](https://docs.manalens.dev/data/events/error.md), is not crash-free. See [Error tracking](https://docs.manalens.dev/features/error-tracking.md).

## When it is sent

* **Godot, Unity and Unreal SDKs:** at the next launch, when the last saved session was open and focused. A normal quit, or a close by the operating system in the background, is not a crash. A mobile game that the OS closes in the background is not a crash.
* **Web SDK with `game: true`:** at the next load, if a tab of the game closed without `pagehide`. The tab was visible and had focus (for example a tab that ran out of memory). A normal close, reload or navigation is never a crash.
* **Electron:** the main process can report an unclean exit with the [Node.js SDK](https://docs.manalens.dev/sdks/node.md) in app mode. See [unclean exits in Electron](https://docs.manalens.dev/sdks/app-events.md#unclean-exits-in-electron).
* **Server builds** send no `game_crash` unless you turn on `track_server_builds`.
* The game SDKs write `game_crash` to disk as soon as it is queued.

## Properties

| Property | Type | Description |
| - | - | - |
| `previous_session_id` | String | The session ID of the run that crashed |
| `previous_build` | String | The `build` of the run that crashed |
| `previous_app_version` | String | The `app_version` of the run that crashed |
| `hang_message_id` | String | The `message_id` of the last [hang](https://docs.manalens.dev/data/events/error.md#hangs) of the run that crashed. If the run had a hang, the crash was a freeze. |

## Crash stacks

The SDK installs no crash handler. The engine already writes crash data at a crash: a backtrace in its log, or a crash folder. At the next launch, the SDK reads the crash data of the session that crashed and adds it to `game_crash`:

| Property | Type | Description |
| - | - | - |
| `stack` | String | The crash frames, top frame first, one per line. Home folders, URLs and emails are removed. The ingestion API takes at most 4096 characters. The current SDKs send at most 1024. |
| `error_type` | String | The crash kind, for example `SIGSEGV`, `SIGABRT` or `EXCEPTION_ACCESS_VIOLATION`. If the kind is unknown, the value is `crash`. |
| `message` | String | The first line of the engine crash text, cleaned, at most 1024 characters |
| `fingerprint` | String | A hash of the crash kind and the top 5 frames. Crashes with the same fingerprint are one group. If no frame is readable, the field is absent. |
| `crash_source` | String | Where the data came from: `godot_log`, `unity_crash_folder`, `unity_player_log` or `unreal_crash_folder` |
| `symbolicated` | Boolean | `true` for frames with function names, `false` for frames that are only addresses (release builds without symbols) |

An older SDK, or a crash with no engine crash data (a force quit or a power loss), sends `game_crash` without these properties. Turn crash stacks off with `capture_crash_stacks` (Godot), `CaptureCrashStacks` (Unity) or **Capture Crash Stacks** (Unreal). See [crash stacks](https://docs.manalens.dev/features/error-tracking.md#crash-stacks) for the engines and SDK versions.

## Sample payload

```json theme={null}
{
  "type": "track",
  "event": "game_crash",
  "message_id": "a9b8c7d6-e5f4-4a3b-9c2d-1e0f9a8b7c6d",
  "channel": "app",
  "version": "0.1.0",
  "original_timestamp": "2026-11-09T10:31:00.000Z",
  "anonymous_id": "3f0c5c1e-8a8e-4c1b-9d7e-2b1f4e6a9c10",
  "session_id": "1762682400000",
  "context": {
    "app": { "platform": "windows", "storefront": "steam", "app_version": "1.4.0", "build": "571", "engine": "unity" },
    "locale": "en-US"
  },
  "properties": {
    "previous_session_id": "1762682400000",
    "previous_build": "571",
    "previous_app_version": "1.4.0",
    "error_type": "EXCEPTION_ACCESS_VIOLATION",
    "stack": "Inventory::apply_loot\nLootTable::roll\nGameLoop::tick",
    "fingerprint": "3b1d9e0a",
    "crash_source": "unity_crash_folder",
    "symbolicated": true
  }
}
```

## FAQ

> [accordion] Why is a crash reported a day later?
>
> The SDK sends `game_crash` at the next launch. If the player opens the game again a day later, the crash arrives then. It still counts in the session and build that crashed.

> [accordion] My SDK sends app\_crash. Is it counted?
>
> No. Older SDKs sent the crash as `app_crash`, which Manalens does not count any more. Update to Godot SDK 0.7.0, Unity SDK 0.7.0, Unreal SDK 0.8.0, or web SDK 0.6.0 or later, and ship a new build.

> [accordion] Does Manalens store crash dumps?
>
> No. Manalens stores no native crash dumps and has no symbol upload. For full symbolication of native crashes, keep Sentry or Backtrace.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.