# Crash when try to copy/paste nodes

**URL:** <https://forums.unrealengine.com/t/crash-when-try-to-copy-paste-nodes/379479>\
**Category:** Platform & Builds\
**Tags:** copy, debug, paste, unreal-engine, crash, nodes, question\
**Created:** [December 16, 2016, 2:17pm UTC](https://forums.unrealengine.com/t/crash-when-try-to-copy-paste-nodes/379479 "2016-12-16T14:17:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b3639a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b3639a6](https://forums.unrealengine.com/u/anonymous_user_4b3639a6)\
**Post date:** [December 16, 2016, 2:17pm UTC](https://forums.unrealengine.com/t/crash-when-try-to-copy-paste-nodes/379479/1 "2016-12-16T14:17:33Z")

</div>

Hey guys,

when I try to copy/paste nodes from my custom Node Editor, I get a in  
SBoxPanel.cpp Line 53

```
 static void ArrangeChildrenAlong( const TPanelChildren<SBoxPanel::FSlot>& Children, const FGeometry& AllottedGeometry, FArrangedChildren& ArrangedChildren )
{
	//....
        //....
        //--Here--> if ( CurChild.GetWidget()->GetVisibility() != EVisibility::Collapsed )
        //...
}

```

I debugged it and GetWidget returns an invalid pointer

Thanks in advance for your answers

Greetings

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b3639a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b3639a6](https://forums.unrealengine.com/u/anonymous_user_4b3639a6)\
**Post date:** [December 16, 2016, 10:38pm UTC](https://forums.unrealengine.com/t/crash-when-try-to-copy-paste-nodes/379479/2 "2016-12-16T22:38:40Z")

</div>

I solved it.  
Unfortunately I had a Pointer which I wrapped around a local SharedPtr  
Because the SharedPtr went out of scope the Adress was deleted and one of the widgets got a dangling ptr.
