I have a problem with my Character blueprint.
In it, I have some nodes to check what the player is looking at. It looks like this: http://puu.sh/8cFDX.jpg
The problem is that after like 20-50 seconds, the game closes down with a “Runnable thread crashed” error in the log.
I have managed to pinpoint it to be caused by either of the “Cast to NewHUD”'s at the end.
Previously, I had both of those comment boxes (and other BP’s to check for) in separate functions, but the mere existence of those functions caused the game to not start at all (even if they weren’t hooked up to anything), while having the nodes out directly (or in a collapsed node), causes the game to crash after a while.
What’s up with that? Am I doing something stupid?
Also, is there a better way to check what the player is looking at?
Edit: Might be worth mentioning that the crash only happens when running Launched/Packaged, not when playing in viewport.