Game crashes when running without editor

When I try to run our project outside of editor, either by packaging or running from Visual Studio, the game crashes and the last thing in VS output is this:

[2014.06.30-10.02.15:323][  0]LogMemory: 27264K allocated in pools (with 2422K slack and 1469K waste). Efficiency 94.61%
[2014.06.30-10.02.15:323][  0]LogMemory: Allocations 91257 Current / 747662 Total (in 426 pools)
[2014.06.30-10.02.15:323][  0]LogMemory: 
D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.2\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp(2918): Assertion failed: GetStructureSize() >= sizeof(UObject)

Ancestory.exe has triggered a breakpoint.

I tried reverting to build when everything worked but it’s not helping. What might be causing this? If any additional details are required, just ask and I’ll deliver. Thanks!

Still having this issue with Assertion failed: GetStructureSize() >= sizeof(UObject). Any help would be appreciated :slight_smile:

Hi ,

Would you be able to attach the game log located at WindowsNoEditor/ProjectName/Saved/Logs?

Could you also confirm that this issue is only happening in packaged builds? Does it not occur when you run PIE?

Hi , thanks for looking into this!

While trying to package the project the cooking fails with multiple errors:

[2014.07.09-15.03.22:673][  0]LogWindows: Fatal error!

Address = 0x6be40ab5 (filename not found) [in D:\Program Files\Unreal Engine\4.2\Engine\Binaries\Win64\UE4Editor-CoreUObject.dll]
Address = 0x6bd8b31a (filename not found) [in D:\Program Files\Unreal Engine\4.2\Engine\Binaries\Win64\UE4Editor-CoreUObject.dll]
Address = 0x6bd68f94 (filename not found) [in D:\Program Files\Unreal Engine\4.2\Engine\Binaries\Win64\UE4Editor-CoreUObject.dll]
Address = 0x6be1cb97 (filename not found) [in D:\Program Files\Unreal Engine\4.2\Engine\Binaries\Win64\UE4Editor-CoreUObject.dll]
Address = 0x6bd4aacd (filename not found) [in D:\Program Files\Unreal Engine\4.2\Engine\Binaries\Win64\UE4Editor-CoreUObject.dll]

My cook log is attached here: cook.txt

Also the game runs fine in PIE.

If I make an empty project I don’t have this issue. My packaging settings are attached here:exported packaging settings

Is this only happening in your project, or do you see the same results if you create a new project from a template and immediately package it?

What are the packaging settings you are using?

My colleague was able to package the project on her machine (which is weird since we have same hardware setup and project version), but the crash still occurs with the packaged game. I attached all the log files from WindowsNoEditor/ProjectName/Saved/Logs

Thank you for providing the logs for this issue. Would you be able to narrow it down at all? We won’t be able to investigate your entire project, but if you can narrow the down the culprit to one or two levels, classes, or assets, we can help look through those to find out what is happening.

While I was cutting stuff from the project to narrow the problem down, I got it to run even when packaged but for some reason my character Begin Play is not called. I added print string right after the character begin play and it doesn’t get printed. This is probably just hiding the real crash issue because there is basically nothing done when the game starts (our level is generated at runtime). Again the game runs fine in editor. Could you provide an email address so I could send the link to our zipped project to you?

Hi ,

If you would like to provide a link to you project, you can send me a private message on the forums (https://forums.unrealengine.com/member.php?4893--). My username there is the same as it is here.

Hi ! I sent link to the project with additional details in a private message through forums.

Hi ,

I downloaded the project this afternoon, but unfortunately I have not had a to look at it today. I will try to take a look as soon as I can on Monday.

Hi! I have 4.2.1 and I’m using binaries through launcher

Hi ,

I forgot to ask, what version of the Engine are you using, and are you using the Engine built from source, or running from binaries through the Launcher?

Edit It looks like you may be using 4.2 from source. I will try using that version unless you mention that you are using something different.

Ok. I am starting to dig into this issue now. I will let you know as soon as I am able to find something.

,

I am getting the EXACT same error and narrowed it down to a single changeset in our perforce depot, i can send you the before and after if you would like.

It’s just a bunch of blueprint changes, which will prolly be painful as the error looks like it is in core? just a guess.

I have been looking around in the project for a while, and even though I can easily reproduce the issue that you described, every time I think I may have figured it out, it turns out to be a false trail. I will probably need to get a few extra eyes on this to track this issue down.

Hi joessu,

Any information you can provide that would help identify the cause of this issue would be appreciated.

I have requested some assistance from our development team on this issue. I am hoping to get some feedback soon.

You and me both :), thank you for taking time to figure this out!