boltZharp Docs
sports_esportsSDKs

Unreal Engine

For games on Unreal Engine 5.4 and later. Crashes come from Unreal's own Crash Report Client. The Zharp plugin adds ensure() failures, error logs, Blueprint runtime errors and who was playing. Each frame reads as a function, file and line from your game's debug files.

Unreal's Crash Report Client (CRC) already collects each crash: the minidump, the crash context and the game's log. Point it at Zharp and every crash becomes an issue. No code is needed for this. The Zharp plugin is a small C++ runtime module. It reports the problems that don't crash the game, and adds the release, session, device and player to every crash report.

Crashes

Create an app from the Unreal Engine tile under Add app (Desktop → Cross-platform frameworks). Then turn on Include Crash Reporter in Project Settings → Packaging (advanced), and add the CRC's target to the project's config. The key goes in the URL path because the CRC adds its own query string. The key can only send data.

; Config/DefaultEngine.ini
[CrashReportClient]
CrashReportClientVersion=1.0
DataRouterUrl="https://api.zharp.io/api/v1/unreal/zpk_…"
bAgreeToCrashUpload=true          ; optional: send without asking the player
bSendUnattendedBugReports=true

The same packaging settings as ini, for builds from the command line (or add -CrashReporter to BuildCookRun):

; Config/DefaultGame.ini (Project Settings → Packaging → Include Crash Reporter)
[/Script/UnrealEd.ProjectPackagingSettings]
IncludeCrashReporter=True
IncludeDebugFiles=True
info
If crashes don't arrive
Packaged UE 5 builds read [CrashReportClient] from the project's config. Some setups read it from the CRC's own config instead: crashes in the editor, older engines, and some launcher builds. Add the same block there. For the editor, that file is the engine's Engine/Programs/CrashReportClient/Config/DefaultEngine.ini. For a packaged build, it is <Build>/Engine/Restricted/NoRedist/Programs/CrashReportClient/Config/DefaultEngine.ini.

What each crash shows:

Assertion failed: Health >= 0.f [File:Source/Shooter/Player/ShooterCharacter.cpp] [Line: 142]
#0  AShooterCharacter::ApplyDamage(float) (Source/Shooter/Player/ShooterCharacter.cpp:142) [ShooterGame.exe +0x1f3c2a]
#1  AShooterCharacter::TakeDamage(…) (Source/Shooter/Player/ShooterCharacter.cpp:97) [ShooterGame.exe +0x1f3a10]
#2  AActor::TakeDamage(…) (Engine/Source/Runtime/Engine/Private/Actor.cpp:3120) [ShooterGame.exe +0x2a1b04]
#3  AShooterWeapon_Instant::ProcessInstantHit(…) (Source/Shooter/Weapons/ShooterWeapon_Instant.cpp:61) [ShooterGame.exe +0x20c117]
  • A failed check() reads as Assertion failed and a fatal log line as Fatal error, with Unreal's own message. Access violations, GPU crashes, hangs and out-of-memory crashes are named the same way.
  • The issue is grouped by your game's functions. Engine frames are named but never count as your code: Unreal's modules (UnrealEditor-Core.dll and the rest), and in a monolithic game anything under Engine/Source or Engine/Plugins.
  • The last 100 lines of the game log become the crash's breadcrumbs. Under Advanced on the issue you find the engine version, build configuration, platform, CPU and GPU, and what the player typed into the crash dialog. There are also Download game log and Download minidump. Both files are kept 30 days.

The plugin

Download Zharp from github.com/zharp-io/zharp-unreal and copy the Zharp folder into your project's Plugins folder. Then build the project. The plugin is a C++ module, so a Blueprint-only project needs one C++ class first (Tools → New C++ Class).

MyGame/
  MyGame.uproject
  Plugins/
    Zharp/
      Zharp.uplugin
      Source/Zharp/…

Paste the app's key in Project Settings → Plugins → Zharp. Setting the key also writes the [CrashReportClient] block above into the same file, so crashes go to Zharp too.

; Config/DefaultEngine.ini (Project Settings → Plugins → Zharp)
[/Script/Zharp.ZharpSettings]
Key=zpk_…
Environment=production

From then on the plugin reports:

  • ensure() failures, as handled errors with the stack where they fired. When the CRC also reports an ensure, Zharp keeps only the plugin's copy, so each ensure is counted once.
  • Error log lines (UE_LOG(LogShooter, Error, …)), each grouped by its category and message.
  • Blueprint runtime errors, such as "Accessed None" and infinite loops, with the Blueprint's script stack.
  • Warnings, errors and map loads as breadcrumbs. The last 100 go with every error.

Each error also carries the session, the device and the current map (as the screen). The same error is sent at most once a minute. Play In Editor stays quiet unless you turn on Enable in Editor.

Users, tags and your own errors

#include "Zharp.h"

// Once the player signs in
FZharp::SetUser(PlayerId, Email, DisplayName);
FZharp::SetTag(TEXT("region"), TEXT("eu-west"));

// An error you handle
if (!SaveGame->LoadSlot(2))
{
    FZharp::CaptureError(TEXT("SaveCorrupt"), TEXT("slot 2 failed its checksum"));
}

FZharp::AddBreadcrumb(TEXT("ui"), TEXT("opened the shop"));

In Blueprints, the Zharp category has the same calls: Capture Error, Add Breadcrumb, Set User and Set Tag.

Settings

Environment variables override the project settings, so a build can be pointed elsewhere without repackaging.

SettingVariableDefault
KeyZHARP_KEYNone: without a key nothing is sent
EnvironmentZHARP_ENVIRONMENTproduction in Shipping builds, development otherwise
ReleaseZHARP_RELEASEThe Project Version (Project Settings → Description)
Configure Crash Reporter—On: writes [CrashReportClient] when the key changes
Capture Ensures, Error Logs, Blueprint Errors—On
Send LogsZHARP_LOGSOff
Enable in Editor—Off
EndpointZHARP_ENDPOINThttps://api.zharp.io
(service name)ZHARP_SERVICEThe project's name
(off switch)ZHARP_DISABLEDOff

Logs

Logs are off by default. Warnings and errors are kept as breadcrumbs either way. Turn on Send Logs (or set ZHARP_LOGS=true) to send every line from Log up, each with its category.

Readable stack traces

Crash dumps and the plugin's stacks hold addresses, not names. Package with Include Debug Files so the PDBs are staged. Then, after each packaged build, upload the debug files:

npx @zharp/cli debug-files upload Saved/StagedBuilds --app <application id> --include-sources
  • The CLI turns the game's PDBs (Windows) and debug files (Linux, macOS) into Breakpad symbol files with Mozilla's dump_syms. Each one is stored under its module's debug ID, the same ID the crash records. In CI, set ZHARP_AUTH_TOKEN to a workspace API key with the Build uploads scope.
  • Engine symbols are optional. In a monolithic game, the engine is linked into your executable, so your PDB names its frames too. For modular builds, the launcher's Editor symbols for debugging install option provides the engine's.
  • Symbols that arrive after a crash still count: the crash is walked again when you open its issue.

Platforms

  • Windows is the main target. The CRC, and the plugin's stacks named from your PDBs, both work there.
  • On macOS and Linux, the CRC works. The plugin's stacks are named when the build carries its symbols.
  • On Android and iOS, the plugin reports errors, breadcrumbs and logs. Unreal has no CRC there, so mobile crashes aren't covered yet.

Troubleshooting

  • No crashes arrive: check that Include Crash Reporter was on when you packaged. The build should have Engine/Binaries/<Platform>/CrashReportClient. Then try the CRC's own config file (see above).
  • The plugin sends nothing: the game log says Zharp on: … at start, or why it is off. A refused key is reported once, and then nothing more is sent.
  • Frames read as addresses: upload the debug files of the exact build you shipped. The issue lists the modules it is waiting for.