Description

This user's project crashes on opening a level in PIE after adding a variable to a struct referenced in the GameInstance. Note that I had to do this twice to get the crash to occur.

The project can be found here:
[Link Removed]

The editor will freeze for a while before the crash reporter comes up.

Reproduced in 4.8.3 binary, 4.9.0 binary, and Main (CL 2678421)

Crash Report:
[Link Removed]

Steps to Reproduce

1. Download the project from [Link Removed]
2. Open LevelInfo struct
3. Add a new variable to the struct
4. Save
5. Open the RTSGameInstance
6. Compile/Save
7. PIE
8. Click the Host Game button

Result:
Crash NOTE you may need to follow these steps twice before the crash occurs

Callstack
Assertion failed: ((UObject*)ContainerPtr)->IsA((UClass*)GetOuter()) [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.8\Engine\Source\Runtime\CoreUObject\Public\UObject\UnrealType.h] [Line: 304] 'RTSGameInstance_C_0' is of class 'RTSGameInstance_C' however property 'ArrayProperty_150' belongs to class 'TRASHCLASS_RTSGameInstance_571'

UE4Editor_CoreUObject!UObject::execInstanceVariable() scriptcore.cpp:1074 
UE4Editor_CoreUObject!UObject::ProcessContextOpcode() scriptcore.cpp:1552 
UE4Editor_Engine!UKismetArrayLibrary::execArray_Get() kismetarraylibrary.h:388 
UE4Editor_CoreUObject!UFunction::Invoke() class.cpp:4125 
UE4Editor_CoreUObject!UObject::CallFunction() scriptcore.cpp:463 
UE4Editor_CoreUObject!UObject::ProcessContextOpcode() scriptcore.cpp:1552 
UE4Editor_CoreUObject!UObject::ProcessInternal() scriptcore.cpp:673 
UE4Editor_CoreUObject!UObject::CallFunction() scriptcore.cpp:587 
UE4Editor_CoreUObject!UObject::ProcessInternal() scriptcore.cpp:673 
UE4Editor_CoreUObject!UObject::CallFunction() scriptcore.cpp:587 
UE4Editor_CoreUObject!UObject::ProcessInternal() scriptcore.cpp:673 
UE4Editor_CoreUObject!UObject::CallFunction() scriptcore.cpp:587 
UE4Editor_CoreUObject!UObject::ProcessInternal() scriptcore.cpp:673 
UE4Editor_CoreUObject!UFunction::Invoke() class.cpp:4125 
UE4Editor_CoreUObject!UObject::ProcessEvent() scriptcore.cpp:1023 
UE4Editor_Engine!AActor::ProcessEvent() actor.cpp:520 
UE4Editor_Engine!AActor::ProcessUserConstructionScript() actorconstruction.cpp:539 
UE4Editor_Engine!AActor::ExecuteConstruction() actorconstruction.cpp:487 
UE4Editor_Engine!AActor::RerunConstructionScripts() actorconstruction.cpp:366 
UE4Editor_Engine!ULevel::IncrementalUpdateComponents() level.cpp:746 
UE4Editor_Engine!UWorld::UpdateWorldComponents() world.cpp:1266 
UE4Editor_Engine!UWorld::InitializeActorsForPlay() world.cpp:2930 
UE4Editor_Engine!UEngine::LoadMap() unrealengine.cpp:9260 
UE4Editor_Engine!UEngine::Browse() unrealengine.cpp:8360 
UE4Editor_Engine!UEngine::TickWorldTravel() unrealengine.cpp:8535 
UE4Editor_UnrealEd!UEditorEngine::Tick() editorengine.cpp:1277 
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() unrealedengine.cpp:366 
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:2359 
UE4Editor!GuardedMain() launch.cpp:142 
UE4Editor!GuardedMainWrapper() launchwindows.cpp:126 
UE4Editor!WinMain() launchwindows.cpp:200 

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.8.34.94.10
Target Fix4.11
Fix Commit2824161
Main Commit2842166
Release Commit2824161
CreatedSep 3, 2015
ResolvedJan 12, 2016
UpdatedApr 27, 2018
View Jira Issue