# Custom structure in blueprint corrupts Project

**URL:** <https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394>\
**Category:** Blueprint\
**Tags:** unreal-engine, crash, bug-report, editor, question, Blueprint\
**Created:** [February 9, 2015, 3:59am UTC](https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394 "2015-02-09T03:59:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [February 9, 2015, 3:59am UTC](https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394/1 "2015-02-09T03:59:40Z")

</div>

Similar to what **DasMatze** posted. CustomStructure can corrupt the project. I’ve created a sample project showing an Actor with a CustomStructure I’ve made. I’ve included log reports from a different project I’m working on experiencing the same issue.

**CustomStructure Bug Sample Project:** [CustomStructBug](http://www.mediafire.com/download/n0zzug7g0zh7swt)

**Engine Version:** 4.61

_Instructions to Completion:_

1. Create CustomStructure.

2. Create Interface with Function  
returning CustomStructure.

3. Create UserWidget with  
CustomStructure and Implement  
Interface & Populate Function

4. Create Actor Class that Spawns the  
UserWidget, and get the  
CustomStructure using the Interface.

5. Make Changes to CustomStructure.

6. Compile Dirty Blueprints.

7. Save All.

8. Place Actor Within Level.

9. Reload Project.

I believe this bug report is related to **DasMatze**.

> **[Default value of custom structure in blueprint corrupts project](https://forums.unrealengine.com/questions/159026/default-value-of-custom-structure-in-blueprint-cor.html)**
>
> I’m using 4.7 Preview 3 right now. I have a custom structure using three variables: an enumerator entry, a class of a blueprint which has another blueprint I made as parent class and a userwidget. Everything seems to work until I go to my blueprint...

**Project Log Reports:**

[2015.02.09-03.37.54:154][126]LogContentBrowser:Verbose: The content browser source was changed by the sources view to ‘/Game/StarterContent’

[2015.02.09-03.38.04:984][780]LogProperty:Error: UStructProperty::Serialize Loading: Property ‘StructProperty /Game/StarterContent/Interface.Interface\_C:GetStruct.return’. Unknown structure.

[2015.02.09-03.38.05:005][780]LogBlueprint:Error: [compiler] Error Invalid property ‘return’ structure ‘newStruct’ error: Struct ‘UserDefinedStruct /Game/StarterContent/newStruct.newStruct’ is empty

[2015.02.09-03.38.05:006][780]LogBlueprint:Error: [compiler] Error Failed to create property return from Return due to a bad or unknown type (New Struct Structure)

[2015.02.09-03.38.05:007][780]LogBlueprint:Warning: [compiler] Warning [0040.11] Compile of Interface failed. 2 Fatal Issue(s) 0 Warning(s) [in 1 ms]

[2015.02.09-03.38.05:007][780]LogLinker:Warning: BoolProperty\_97 has an inappropriate outermost, it was probably saved with a deprecated outer.

[2015.02.09-03.38.05:018][780]LogProperty:Error: UStructProperty::Serialize Loading: Property ‘StructProperty /Game/StarterContent/aWidget.aWidget\_C:GetStruct.return’. Unknown structure.

[2015.02.09-03.38.05:018][780]LogProperty:Error: UStructProperty::Serialize Loading: Property ‘StructProperty /Game/StarterContent/aWidget.aWidget\_C:coolStruct’. Unknown structure.

**Related Log Reports:**

[2015.02.09-02.23.13:650][0]LogLinker:Warning: ByteProperty\_119 has an inappropriate outermost, it was probably saved with a deprecated outer.

[2015.02.09-02.23.13:661][0]LogLinker:Warning: StructProperty\_786 has an inappropriate outermost, it was probably saved with a deprecated outer.

[2015.02.09-02.23.13:661][0]LogLinker:Warning: TextProperty\_63 has an inappropriate outermost, it was probably saved with a deprecated outer.

[2015.02.09-02.23.13:666][0]LogProperty:Error: UStructProperty::Serialize Loading: Property ‘StructProperty /Game/Blueprints/\*\*\*\*\*’. Unknown structure.

[2015.02.09-02.23.14:933][0]LogBlueprint:Error: [compiler] Error Variable node Set Parent uses an invalid target. It may depend on a node that is not connected to the execution chain, and got purged.

[2015.02.09-02.23.15:358][0]LogBlueprint:Warning: ExposeOnSpawn ambiguity. Property ‘IntProperty /Engine/Transient.REINST\__ **\_C\_19:** _’, MetaData ‘False’, Flag ‘True’

[2015.02.09-02.23.15:444][0]LogBlueprint:Error: [compiler] Error COMPILER ERROR: failed building connection with ‘\*\*\*\*\* Reference is not compatible with \*\*\*\*\* Reference.’ at Create Widget

[2015.02.09-02.23.15:492][0]LogBlueprint:Error: [compiler] Error This blueprint (self) is not a \*\*\*\*\*\_C, therefore ’ Target ’ must have a connection

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [February 9, 2015, 4:23am UTC](https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394/2 "2015-02-09T04:23:41Z")

</div>

Adding some context. I’m using UMG heavily within Editor.

**What I believe is happening:**  
UMG seems to have issues with Interfaces. I’m not sure what its related to, but errors continued to happen when I had them in the UMG Blueprint.

This also causes problems when those widgets are used in Other blueprints which reference them. Causing them to Reinstance? I guess.

I think UMG tries to get the information from the Interface, and something isn’t handled properly when everything is loaded initially. So the UMG is dirty, and a temporary one is made, creating issues with referencing because now original types don’t match temporary.

So – we have CustomStructure, Interface, and UMG at play in this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [February 11, 2015, 8:38pm UTC](https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394/3 "2015-02-11T20:38:41Z")

</div>

Hello `,

I downloaded the project from the link provided and I do not see any errors and the project does not appear to crash. Is there something that I need to do to get the project to crash or is there some other form of corruption?

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [February 12, 2015, 12:02am UTC](https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394/4 "2015-02-12T00:02:59Z")

</div>

Did you try opening the Map in the Starter Content Folder?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [February 12, 2015, 5:16pm UTC](https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394/5 "2015-02-12T17:16:56Z")

</div>

Hello `,

I was able to reproduce this issue with the project given if I clicked on the map first. If I opened the struct first the project would run fine. This may be due to a circular dependency. However, I have submitted a report ( UE-9747) to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your information and time.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Draco\_Houston](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Draco\_Houston](https://forums.unrealengine.com/u/Draco_Houston)\
**Post date:** [February 19, 2015, 10:44am UTC](https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394/6 "2015-02-19T10:44:19Z")

</div>

had the same issue in my project, removing refs to classes that ref the struct fixed the problem so it is definitely circular dependency. i hope y’all can fix that, it is a real PITA

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_99e8ad321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_99e8ad321](https://forums.unrealengine.com/u/anonymous_user_99e8ad321)\
**Post date:** [February 26, 2015, 9:05pm UTC](https://forums.unrealengine.com/t/custom-structure-in-blueprint-corrupts-project/306394/7 "2015-02-26T21:05:22Z")

</div>

EDIT2: this is fixed for me in 4.7

same issue, trying to fix this corrupted my project which now crashes on any startup map load other than template default 😃  
EDIT: ok it crashes on anything that has even remotely to do with the struct. to the rescue backups (and i figured the mapload triggers loading the linked gamemode/instance etc)
