> ## 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.

# Error event

> Reference for the error event that records game errors and hangs, from engine captures or your track_error() calls, with the properties of Error tracking.

The `error` event records a game error: an engine or script error that the SDK captures, or your own `track_error()` call. A hang (the main thread blocked for 5 seconds or more) is also an `error`, with `error_type` `game_hang`. It is a `track` event with the same player, session, build and platform as your other events. So you can use it in funnels, filters and charts. [Error tracking](https://docs.manalens.dev/features/error-tracking.md) groups errors and shows the crash-free rates.

A crash is its own event: see [game crash](https://docs.manalens.dev/data/events/game-crash.md).

## When it is sent

| Source | `source` | When |
| - | - | - |
| Your code | `manual` | `track_error()` (Godot), `TrackError()` (Unity, Unreal) or `trackError()` (Web SDK), in every mode |
| [Godot SDK](https://docs.manalens.dev/sdks/godot.md) | `auto` | An engine or script error on Godot 4.5 and later, such as `push_error()` or a failed `load()`. Warnings with `capture_warnings`. |
| [Unity SDK](https://docs.manalens.dev/sdks/unity.md) | `auto` | An unhandled exception, `Debug.LogError` or a failed assert, from any thread. Warnings with `CaptureWarnings`. |
| [Unreal SDK](https://docs.manalens.dev/sdks/unreal.md) | `auto` | An `Error` line of the engine log (**Capture Log Errors**). Warnings with **Capture Log Warnings**. |
| [Web SDK](https://docs.manalens.dev/sdks/web.md#errors) with `game: true` | `auto` | A window `error` or `unhandledrejection` |
| Game SDKs, Web SDK with `game: true` | `auto` | A hang: the main thread was blocked for at least the hang limit. See [hangs](#hangs). |

Code examples are in [Error tracking](https://docs.manalens.dev/features/error-tracking.md#send-errors-from-godot) and on each SDK page.

## Properties

| Property | Type | Description |
| - | - | - |
| `severity` | String | `debug`, `info`, `warning`, `error` or `critical` |
| `message` | String | The error text, at most 1024 characters |
| `error_type` | String | The error class, for example `SaveFailed`. Godot engine errors use `engine_error`, `script_error` or `engine_warning`. Unity uses the exception class (for example `NullReferenceException`), `log_error`, `assert` or `log_warning`. The Web SDK uses the error's `name`. A hang is `game_hang`. |
| `handled` | Boolean | `false` for an error that the game did not recover from. Engine errors and hangs are always `false`. A `critical` error with `handled` `false` counts as a crash in the crash-free rates. |
| `source` | String | `manual` (a `track_error()` call) or `auto` (an automatic capture by the SDK). The engine is in `context.app.engine`. |
| `fingerprint` | String | The group key. Errors with the same fingerprint are one row in **Top errors**. |
| `file`, `line`, `function` | String, Number, String | Where the error happened. Absent for an unknown location. |
| `stack` | String | The script stack trace. The SDKs send at most 1024 characters. The ingestion API takes up to 4096. |
| `breadcrumbs` | String | The names of the last 20 `track` events before the error (not `error`), oldest first, separated by commas, at most 1024 characters. Withdrawn consent and a reset clear them. |
| `log_type` | String | Automatic captures in game engines: the engine's log level. Unity: `exception`, `error`, `assert` or `warning`. Godot: `error`, `script` or `warning`. Unreal: `error` or `warning`, with `log_category`. Not sent by the Web SDK. |
| `hang_duration_s` | Number | Hangs only: how long the main thread was blocked, in seconds with one decimal |

You can add your own properties to a `track_error()` call, within the limit of 50 properties and 8 KB.

## Hangs

When the main thread is blocked for at least the hang limit (5 seconds by default), the SDK records an `error`. The `error` has `error_type` `game_hang`, `severity` `error`, `handled` `false` and `source` `auto`. The message is "The main thread was blocked for N s".

* A hang that ends is sent after the game runs again, with `hang_duration_s`.
* The game SDKs write the hang to disk while the game is stuck. So a hang that ends in a kill is sent at the next launch. Then the [`game_crash`](https://docs.manalens.dev/data/events/game-crash) of that run has `hang_message_id`, the `message_id` of the hang.
* No hang is counted while the game is paused, unfocused, or loading a map, or after the computer sleeps. The Web SDK never counts one while the page is hidden.
* Change the limit (1 to 60 seconds) or turn it off with 0: `hang_threshold_seconds` (Godot), `HangThresholdSeconds` (Unity), **Hang Threshold Seconds** (Unreal), or `hangThresholdMs` (Web SDK, in milliseconds).

See [Hangs](https://docs.manalens.dev/features/error-tracking.md#hangs) for the SDK versions.

## Limits

To protect your game and your event volume, the SDKs limit errors:

| Limit | Value |
| - | - |
| Same fingerprint | Once a second |
| All errors | 20 in 10 seconds |
| Automatic errors | 5 engine log errors in one frame, 50 in one session |

`track_error()` calls skip only the session limit. The next [`session_end`](https://docs.manalens.dev/data/events/session) has the number of dropped errors in `errors_dropped`.

## Grouping

Errors group by `error_type`, `file` and `function` (not the line number). Without a file or function, they group by the message with numbers and quoted text removed: `Save failed for slot 3` and `Save failed for slot 4` are one group. Set `fingerprint` to group in your own way.

## Sample payload

```json theme={null}
{
  "type": "track",
  "event": "error",
  "message_id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
  "channel": "app",
  "version": "0.1.0",
  "original_timestamp": "2026-11-09T10:12: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": "godot" },
    "locale": "en-US"
  },
  "properties": {
    "severity": "critical",
    "message": "Save failed for slot 3",
    "error_type": "SaveFailed",
    "handled": false,
    "source": "manual",
    "fingerprint": "9f2c1a7e",
    "breadcrumbs": "level_start,resource,level_complete",
    "level": 3
  }
}
```

## FAQ

> [accordion] Do captured errors contain personal data?
>
> The SDKs clean captured engine and browser messages before they are queued: home folders, URL users, queries and fragments, emails and token values are removed. The text that you pass to `track_error()` is sent as it is. Use `before_send` to drop or change errors. See [remove personal data](https://docs.manalens.dev/features/error-tracking.md#remove-personal-data).

> [accordion] Why is an error missing?
>
> The [limits](#limits) drop repeated errors. Check `errors_dropped` on `session_end`. Godot captures engine errors only on Godot 4.5 and later. On older versions, call `track_error()`.

> [accordion] Can I send errors from another engine?
>
> Yes. Send `error` events to the [events endpoint](https://docs.manalens.dev/sdks/app-events.md) with the same property names, so the Game health dashboard and the Errors page read them.


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