[4.7 Crash] Standalone Game

And another 4.7 crash :wink:

This time the crash occurs if I start the game in stand alone build (tested with Debug-x64 and Shipping-x64 mode on Windows).

It happens somewhere in FText::ToString(). This crash didn’t happen in 4.6 and below. Also, it only happens in stand alone build - PIE works fine.

Below are some more infos about the Crash:

This is the message box that pops up when the game crashes

This is a snapshot of Visual Studio and the debug mode of the game.

This is the code that was executed before the crash happened

And I’m sorry but I couldn’t find any log file this time… there was no CrashReporter, so I guess the log files haven’t been written? I’ve looked at C:\Users\AppData\Local\TheLastLook\Saved\Logs and \Saved\Logs - they weren’t there.

Hope the screenshots provide enough information.

Hey

Dop you get the same crash if you run the game when not in Visual Studio debug mode? If so does it also happen in a fresh project with no additional content? Also, are you using the binary version of the 4.7 preview from the launcher or are you using source code from GitHub? Any additional information you can think of will also help in identifying exactly what’s happening.

Cheers

Hey ,

the crash occurs everywhere excep PIE: (run .exe via double-click, run game from visual studio, run via editor using the “Launch” button, run via editor using the “Standalone Preview” mode).

I’m using the unmodified official source code from github.

It doesn’t seem to happen in other projects. However, I’m not sure how I could reproduce it in another project since the crash seems to happen in my c++ code (which worked fine in previous launcher build versions. Also, this method (ShowSubtitle) isn’t called the first time in the game. There already are subtitles which work just fine - it always crashes on this subtitle call (100%))

But because the code works fine in 4.6 and below, I think it’s an engine bug.

Just to help me understand what’s happening, you’re saying that you make a call to ShowSubtitle() before the crash occurs and the call is ignored? Also, where is FTextHistory::Rebuild() being called from? Is this where Visual Studio is saying the break occurred?

Additionally, when exactly does the crash occur? Does the game crash as you open/close it? Does it happen at a specific point in game play? Since the crash happens outside of VS debug mode could you also post the log file from the crash as this could help point to where exactly the crash is happening.

No, the call isn’t ignored. The crash happens in the intro scene. There, several dialogues are played. One of them causes the crash (it’s always the same dialog text which seems to cause this crash - the one shown in the screenshots). All these dialogues call the “ShowSubtitle” method of my HUD class - so the method itself does not cause a crash.

FTextHistory::Rebuild is called from FText::ToString(), which is called by my ShowSubtitle-Method. (The call stack is included in the Visual Studio screenshot). And yes, this is where Visual Studio says the break occurred (see the green arrow in the Visual Studio screenshot I posted :slight_smile: )

The game crash at a specific point in gameplay and as I already told you, I can’t seem to find a log file (even if I run the shipping version. Normally, the log file was located at “C:\Users\AppData\Local\TheLastLook\Saved\Log\TheLastLook.log” - but it’s not there this time (even though the folder exists).

Edit The “ShowSubtitle” method of my HUD is called from a Blueprint, if that matters. It is defined like this:

UFUNCTION(BlueprintCallable, Category = HUD)
void ShowSubtitle(const FText &text, float Duration = -1.0f);

Bug is fixed! :slight_smile: Updated to the latest git source code - no crash in packaged game. So, sorry to have bothered you, Epic.