# \[Bug\] Crash when using inline objects inside user widget instance

**URL:** <https://forums.unrealengine.com/t/bug-crash-when-using-inline-objects-inside-user-widget-instance/473354>\
**Category:** Editor Scripting\
**Tags:** uobject, inventory, unreal-engine, instancing, Widget, question\
**Created:** [October 23, 2020, 6:27am UTC](https://forums.unrealengine.com/t/bug-crash-when-using-inline-objects-inside-user-widget-instance/473354 "2020-10-23T06:27:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGrouse](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DGrouse](https://forums.unrealengine.com/u/DGrouse)\
**Post date:** [October 23, 2020, 6:27am UTC](https://forums.unrealengine.com/t/bug-crash-when-using-inline-objects-inside-user-widget-instance/473354/1 "2020-10-23T06:27:40Z")

</div>

Hi, I’ve been working on an inventory system that uses inline objects for instancing default properties of items and containers. I normally do these inline property stacks on actor components (to give world context and allow net code to run), but I also have the ability to create inline objects using a struct wrapper so blueprints can have an inline item stack as a property type. This struct and the instanced items it spawns works normally as intended in blueprints.

I’ve been working on a Hot Bar Widget and thought it’d be neat to use this struct to preview item thumbnails by giving them an item object to reference. I can spawn an inline item container, but cannot give it children items.

The moment I click the plus button (as seen in the attached image) there is a crash that occurs in **WidgetBlueprintEditor.cpp @ 637** inside **MigratePropertyValue()**.

The **DestinationObject** which would normally be the user widget instance I’m editing (WBP\_ItemSlotGrid) appears to be broken, but not null.

**Output Log:**

```
Exception thrown at 0x00007FFC63913B29 in UE4Editor.exe: Microsoft C++ exception: _com_error at memory location 0x000000D7D0D77470.
Exception thrown: read access violation.
NewDestionationObject-> **** was 0xFFFFFFFFFFFFFF97.

```

**Widget before crash:**

 ![319774-hotbar.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/c/22c0a81a36124350c808e0712547b4b3f62e5cdb.png)

**Visual studio error:**

 ![319766-vs.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/9/a99c1773be789d340d84410f643263972af39014.png)

**WBP\_ItemSlotGrid property window:**

 ![319775-itemgrid.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/8/c88343178c50281f5caaf5f8f3351a57c9f26648.png)
