So is the crash reporter not showing up at all? Neither in the Engine/Win64 folder of the packaged game, nor popping up if you force the game to crash?
I tested this on a new project, both in a source version of Unreal Editor built from scratch, and with a launcher version of UE 5.6.1 from the Epic Games launcher. Just enabling “Edit -> Project Settings -> Include Crash Reporter” (no other settings), and exporting via “Platforms -> Windows -> Package Project”, and that was enough to get the crash reporter automatically compiled and included in the project.
I tested running a Development game and writing “debug crash” into the console, and that correctly triggered the crash reporter.
There shouldn’t be anything else needed to get the crash reporter included in the project, the packaging process should just do it automatically if the project setting is set. Does it work for you if you package the game from Unreal Editor via the “Platforms -> Windows -> Package Project” button?
It might be that the project setting checkbox is only used on a higher level, at some point “-CrashReporter” is added to the command line when UAT calls UnrealEditor-Cmd.exe. Can you try adding that argument to your command line? You might need to wrap it into -AdditionalBuildOptions=“-crashreporter” or -AdditionalCookerOptions=“-crashreporter”. I’m currently not in the office so I can’t easily check.
I agree, I would’ve expected the project setting to be enough. Glad that the “-crashreporter” argument works for you, it seems that’s the way to go when going the RunUAT route, weirdly enough.
But have to use “-crashreporter” going through UAT, is this going to be changed? Also for .pdb’s have to use “-nodebuginfo” doesnt use respect the setting from package settings.
Also noticed building from within package within the Editor it creates more files like:
CrashReportClient.pak
Which doesn’t get created going through our command line for building the package.
Are there things we are missing going through UAT, should we be passing extra switches?
Re: “But have to use “-crashreporter” going through UAT, is this going to be changed?”
It seems some of the packaging project settings, like for including crash reporter or debug symbols, are for setting which arguments to send to UAT. I don’t think there’s a high priority/reason to change that.
Re: “Also noticed building from within package within the Editor it creates more files like: CrashReportClient.pak, which doesn’t get created going through our command line for building the package.”
I ran the same command line as you provided, with the -CrashReporter argument, and it does create a “GameFolder\Windows\Engine\Programs\CrashReportClient\Content\Paks\CrashReportClient.pak” file for me. If you provide both -CrashReporter and -Pak to UAT, it should create and copy this pak file over.
I am having this same issue currently. Yes, it works in Development, but I am working through trying to make it appear in Shipping. So far I have added this line to BuildCommonTools.Automation.cs in MakeAgenda, under the Windows binaries, and that gets the executable into the packaged build, but attaching a debugger it appears to have the wrong path… digging into that now.
You shouldn’t need to make any changes to the engine just to have the crash reporter included in shipping builds. The engine already has the functionality to include it. How are you packaging your project?
Ah, should have said -- this is packaging via the Editor UI. We do have the -crashreporter flag in our automation scripts, and it does show up in that packaged build. But it does not currently pop up in shipping builds, which is why I’m debugging the path stuff currently… however, if that behaves differently in editor packaged builds than in builds packaged via automation script, I may be barking up the wrong tree.
Packaging it via the editor, with the “Include Crash Reporter” project setting on, just forwards the “-crashreporter” parameter to the Unreal’ Automation Tool. It does this for all build configurations.
I just ran a test: I clicked Platforms -> Package Project -> Windows & Shipping -> Package Project, with “Include Crash Reporter” project setting enabled, and it includes the crash reporter in “PackagedDir\Windows\Engine\Binaries\Win64\CrashReportClient.exe”. If that isn’t happening for you, then something is going wrong.