GameFuse Errors¶
GameFuse Errors catches the errors, exceptions and crashes your players hit, and shows them on your game's Errors tab in the GameFuse dashboard. It is free with every game.
Turn it on: one line¶
Call it once when your game starts, after setUpGame (or before: errors wait until the game id and token are known).
| Engine | One line | More |
|---|---|---|
| JavaScript (any browser game) | GameFuse.catchErrors(); |
JavaScript |
| Unity C# | GameFuse.CatchErrors(); |
Unity C# |
| Unreal C++ | UGameFuseManager::CatchErrors(); or the Catch Errors Blueprint node |
Unreal C++ and Blueprints |
Send your own whenever you like:
UGameFuseManager::SendError(TEXT("Boss had no target"), { { TEXT("level"), TEXT("boss") } }); // Unreal
What gets caught¶
| Kind | What it is |
|---|---|
| exception | An error nobody caught: a JavaScript error or unhandled promise rejection, a Unity exception, an Unreal fatal error. |
| error | One you sent with sendError, or a logged error (Debug.LogError in Unity, UE_LOG(..., Error, ...) in Unreal; console.error in JavaScript when you ask for it). |
| crash | The game died. Unreal writes the crash down as it happens. Desktop Unity and Unreal builds also notice if the game did not close cleanly last time. |
Each error comes with its stack, the game's version, the platform, the operating system and device, the signed-in GameFuse player (if any) and the scene or map.
Crashes reach you on the next start¶
Every error is first saved on the player's machine and then sent, about 2 seconds later. If the game crashes, or the player is offline, or the tab is closed first, it is still there next time, and catchErrors() sends it when the game starts again. These show "after a restart" on the dashboard.
The Errors tab¶
Open your game on the dashboard and choose Errors.
- Grouped. The same error from many players is one row, with how many times it happened. Errors are grouped by their type, their message (numbers and ids ignored, so "Enemy 12 not found" and "Enemy 47 not found" are one) and the first line of their stack.
- Graph. Errors per hour (24 hours) or per day (7, 30 or 90 days, or dates you choose).
- Search and filters. Search the message and stack, and filter by kind, platform and game version. Sort by last seen, most events or newest.
- One error's page. Its own graph, the latest stack and details, versions and platforms it happened on, and its latest 50 events.
- Archive. Hides an error from the list (choose Show: Archived to see it) and stops its emails. It is still counted.
- Delete forever. Deletes the error and all its events. There is no undo. If it happens again, it shows up as a new error.
Tick several rows to archive or delete them together.
Emails¶
GameFuse emails the game's owner:
- when a new error shows up (at most 10 of these an hour per game), and
- on a burst: the same error 50 times in 10 minutes (at most one burst email per error every 6 hours).
Archived errors never email. Turn all error emails off (or on again) with the Emails on / off button on the Errors tab.
Limits¶
| Errors kept per game per day | 10,000 (more are dropped and counted as dropped) |
| Events kept per error | the newest 200, for 90 days. The total count is kept. |
| Message | 1,000 characters |
| Stack | 16,000 characters |
| Details (context) | 4 KB as JSON |
| From one player | 30 a minute, the same error 5 a minute (the client libraries drop the rest) |
Your own HTTP client can send errors too. See Error API.