# I keep getting an Access Violation Error when I try to open up my player controller blueprint

**URL:** <https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552>\
**Category:** Blueprint\
**Tags:** unreal-engine, crash, bug-report, editor, UE4, question, Blueprint\
**Created:** [June 30, 2015, 1:30pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552 "2015-06-30T13:30:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0d53d466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0d53d466](https://forums.unrealengine.com/u/anonymous_user_0d53d466)\
**Post date:** [June 30, 2015, 1:30pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/1 "2015-06-30T13:30:36Z")

</div>

This file was working fine yesterday and when I came back today it keeps crashing when I open up the player controller blueprint. This is the error i’m getting

MachineId:3AF2DA5D499FB8D7411D528E17D9A74C  
EpicAccountId:f424f84956bc462494cacfae73fb3776

Access violation - code c0000005 (first/second chance not available)

“”

UE4Editor\_UMG!UWidgetLayoutLibrary::execSlotAsCanvasSlot() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\umg\public\blueprint\widgetlayoutlibrary.h:10]  
UE4Editor\_CoreUObject!UFunction::Invoke() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\class.cpp:4125]  
UE4Editor\_CoreUObject!UObject::CallFunction() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:463]  
UE4Editor\_CoreUObject!UObject::ProcessContextOpcode() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1552]  
UE4Editor\_CoreUObject!UObject::execLetObj() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1391]  
UE4Editor\_CoreUObject!UObject::ProcessInternal() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:673]  
UE4Editor\_CoreUObject!UObject::CallFunction() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:587]  
UE4Editor\_CoreUObject!UObject::ProcessInternal() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:673]  
UE4Editor\_CoreUObject!UFunction::Invoke() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\class.cpp:4125]  
UE4Editor\_CoreUObject!UObject::ProcessEvent() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1023]  
UE4Editor\_Engine!AActor::ProcessEvent() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\actor.cpp:520]  
UE4Editor\_Engine!AActor::ReceiveTick() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\intermediate\build\win64\ue4editor\inc\engine\engine.generated.1.cpp:2267]  
UE4Editor\_Engine!AActor::Tick() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\actor.cpp:682]  
UE4Editor\_Engine!APlayerController::TickActor() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\playercontroller.cpp:3880]  
UE4Editor\_Engine!FActorTickFunction::ExecuteTick() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\actor.cpp:105]  
UE4Editor\_Engine!FTickTaskSequencer::FTickFunctionTask::DoTask() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\ticktaskmanager.cpp:113]  
UE4Editor\_Engine!TGraphTask::ExecuteTask() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\core\public\async\taskgraphinterfaces.h:753]  
UE4Editor\_Core!FTaskThread::ProcessTasks() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\core\private\async\taskgraph.cpp:430]  
UE4Editor\_Core!FTaskThread::ProcessTasksUntilQuit() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\core\private\async\taskgraph.cpp:273]  
UE4Editor\_Core!FTaskGraphImplementation::WaitUntilTasksComplete() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\core\private\async\taskgraph.cpp:991]  
UE4Editor\_Engine!FTaskGraphInterface::WaitUntilTaskCompletes() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\core\public\async\taskgraphinterfaces.h:192]  
UE4Editor\_Engine!FTickTaskSequencer::ReleaseTickGroup() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\ticktaskmanager.cpp:232]  
UE4Editor\_Engine!FTickTaskManager::RunTickGroup() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\ticktaskmanager.cpp:643]  
UE4Editor\_Engine!UWorld::RunTickGroup() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\leveltick.cpp:697]  
UE4Editor\_Engine!UWorld::Tick() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\leveltick.cpp:1181]  
UE4Editor\_Kismet!FSCSEditorViewportClient::Tick() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\editor\kismet\private\scseditorviewportclient.cpp:202]  
UE4Editor\_UnrealEd!UEditorEngine::Tick() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\editor\unrealed\private\editorengine.cpp:1399]  
UE4Editor\_UnrealEd!UUnrealEdEngine::Tick() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\editor\unrealed\private\unrealedengine.cpp:366]  
UE4Editor!FEngineLoop::Tick() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\launchengineloop.cpp:2359]  
UE4Editor!GuardedMain() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\launch.cpp:142]  
UE4Editor!GuardedMainWrapper() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]  
UE4Editor!WinMain() [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0d53d466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0d53d466](https://forums.unrealengine.com/u/anonymous_user_0d53d466)\
**Post date:** [June 30, 2015, 2:29pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/2 "2015-06-30T14:29:56Z")

</div>

actually this error keeps coming up even if I create a new project and recreate the blueprint

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0d53d466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0d53d466](https://forums.unrealengine.com/u/anonymous_user_0d53d466)\
**Post date:** [June 30, 2015, 6:08pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/3 "2015-06-30T18:08:30Z")

</div>

I found what the problem was but I don’t know why that crases the program. It seems to have issues with the picture in the widget blueprint. It should’t be breaking because of that but it is. The moment I delete it, its stops crashing and allows me to open my player controller blueprint

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0d53d466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0d53d466](https://forums.unrealengine.com/u/anonymous_user_0d53d466)\
**Post date:** [June 30, 2015, 6:23pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/4 "2015-06-30T18:23:04Z")

</div>

apparently adding anything to the widget blueprint like a button or picture will cause unreal to crash when trying to open player controller

---

<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:** [June 30, 2015, 6:23pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/5 "2015-06-30T18:23:29Z")

</div>

Hello,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Can you reproduce this issue in a clean project?
2. If so could you provide a detailed set of steps to reproduce this issue on our end?
3. Could you provide screen shots of any blueprints that may be involved?

We currently have a similar issue in our database currently I would like to know if these steps are the ones that you are taking.

Warning these steps will cause a crash

1. Create a Widget Blueprint.
2. Open the widget blueprint by double clicking it.
3. Add a “Button” to the canvas panel.
4. With the button selected, expand “Style \> Normal” in the details panel.
5. Click “Use Selected Asset from Content Browser” under normal

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0d53d466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0d53d466](https://forums.unrealengine.com/u/anonymous_user_0d53d466)\
**Post date:** [June 30, 2015, 7:24pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/6 "2015-06-30T19:24:22Z")

</div>

yes  
I made a whole new project and it does the exact same thing  
This started when I created a widget blueprint added an image and went into style \> normal in the details panel and clicked use selected asset from content browser and picked an image  
I then went back into my player controller blueprint and connected the event tick to the code that used the image variable.  
I hit compile in this blueprint and it crashes.

I did a bit more testing and when it opened up again from crashing i went into the widget blueprint.

 ![48556-step1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/8/888f39430d8a434db5b59fa2e950f0dfe7fc4be0.png)

Deleted the image.

 ![48557-step2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/8/1d8da283df94aa27fe044cb1ecef5274fd537f96.png)

Saved and compiled.

 ![48558-step3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/e/1befdaaf9c88eb4b73d6efdf6780d6f900c392a4.png)

I then went into my player controller blueprint

 ![48559-step4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/5/d1510987d0d65e4c79eca74172b4b16163c541c4.png)

and got rid of the parts of my code that were liked to that image variable.Saved and compiled.

 ![48561-step4-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/4/3045619e82a23ef764df7e96e232d45dc11beda0.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0d53d466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0d53d466](https://forums.unrealengine.com/u/anonymous_user_0d53d466)\
**Post date:** [June 30, 2015, 7:25pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/7 "2015-06-30T19:25:00Z")

</div>

Then I liked my event tick to the rest of my code and saved and compiled.

 ![48562-step5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/7/c5753dfbb327190e9b6ad5b7d32c419a07124b49.png)

It saved but never compiled because it crashed.

 ![48563-step6.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/b/ecb38de2ff8f9d479165c9a78e07cddda4adcf4c.png)

this is what the whole player controller blueprint looks like

 ![48566-wholeplayer.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/6/90675dc332689e603ab4a3ecdd5d798d9716dd65.png)

---

<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:** [July 1, 2015, 2:11pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/8 "2015-07-01T14:11:38Z")

</div>

Hello

I was able to reproduce this issue on our end. The issue is that the tick event is firing off before the event begin play. This then causes the “Slot as Canvas Slot” node to try and pull a null value. A workaround for this is to add a gate in that insures that the begin play fires off first. I have written up a report ( UE-18029) for the crash and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Workaround:

I have add a gate that does not open until after the event begin play has fired off.

 ![48662-slotascanvasorderhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/6/c1691591368e3791510be8b4d5cc4ee3a7da3396.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0d53d466](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0d53d466](https://forums.unrealengine.com/u/anonymous_user_0d53d466)\
**Post date:** [July 2, 2015, 3:41pm UTC](https://forums.unrealengine.com/t/i-keep-getting-an-access-violation-error-when-i-try-to-open-up-my-player-controller-blueprint/323552/9 "2015-07-02T15:41:41Z")

</div>

thank you very much!
