Unreal Engine Crash Reporter - Can't get it to work

Hey there,

I’m trying to set up sentry with the UE4 (4.22) crash reporter. The problem is, I cannot even get a single event to reach sentry.

I created a brand new first person example project; followed the instructions to set the required section in the DefaultEngine.ini file and set include crash reporter and debug files.

In in c++ I added the line throw("crash on purpose"); whenever a projectile hits a target to make it crash.
If packaged or not, the ue4 crash handler appears -> I click send and close but I don’t get an event in sentry.

Am I doing something stupid? Please let me know!

Took me a while to get it to work the first time. Epic Games provides no docs and if you look up online you see questions like this raised 2 years ago still without an answer on their forum.

We’ve documented the process on Sentry docs and it seems you’ve done the two key settings already. Now if the crash is not being uploaded to Sentry perhaps the crash reporter didn’t pick up on the DataRouterUrl. Can you confirm the correct DefaultEngine.ini was changed?
Also check the Sentry URL has unreal in it. It’s an endpoint in Sentry build specially for Unreal Engine crashes and is down on the Client Keys (DSN) page in Sentry’s project settings.

Besides that, you could use ngrok (replace sentry.io with you ngrok url) to see if the crash reporter is trying to send the event or not.

I used requestcatcher.com and webhook.site to check, but I got nothing. Which means UE-crash reporter isn’t sending anything.

Maybe editing Epic Epic Games\UE_4.22\Engine\Config\BaseEngine.ini would work?

Is this feature limited to certain UE versions?
Or did I miss a necessary step?

I made this account just to reply to you because your post helped me figure out the problem. We had to edit the crash reporters ini file. In the packaged build it was located in [StagingFolder]/Engine/programs/CrashReportClient/Config/DefaultEngine.ini

1 Like

@JDooley thank you very much! That was exactly the problem.

There are still some problems:

  1. Does this only work when packaging without .pak files?
  2. Can you use sentry for crashes in the editor as well?