New Project Crashes after a random period of time.

I started recently working on a custom HUD system , which somewhat resembles the Unity OnGUI system.

It’s now completely bug free and works perfectly.
It’s also set up so I’m not just wasting memory be recreating objects on every DrawHUD call.

My problem is, after a random period of time, normally arround the 30 second , it just crashes out of nowhere.

Originally, when I checked the logs, I found the same error a lot of users are getting, which is this:

“LogSlate:Warning: GetFontFace failed to load or process” with reference to Roboto Black. So I made sure this font existed in the required location.

Now I don’t know what the problem is. The only objects in this project are a material, 2 textures, and 4 Class blueprints for the PC, Character, GameMode and HUD. And this appears to be the only project it does it on.

Here is my log file:

Finally My system specs:

Windows 7 Home Premium SP 1

AMD FX-9590 Black Edition, Stock Speed

8GB DDR3 1333 RAM

XFX 7970 DD Ghost Edition

I do not know about your particular problem, but its important that after every iteration you test your project and when this problem first occured you see what code is causing it. Otherwise there’s not really a way to debug it atm.
So try deleting/commenting some code that you wrote lately and find out which line/node is causing the problem.

How long after starting the does the crash occur? I’ve found that many of the crashes that occur randomly are a result of a reference being garbage collected and then used afterwards.

I’m not too familiar with Slate, but where is the reference to this font stored? Is it stored in a UPROPERTY and if so how is it allocated?

Cool! Please as answer if possible. Thanks!

You were right! It was being GCd because I hadn’t defined the loaded object as UPROPERTY.

Thanks so much!