# "Error: Script Msg: A null object was passed as a world context object to UEngine::GetWorldFromContextObject()" after compiling AIController blueprint with AIPerception component

**URL:** <https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389>\
**Category:** AI\
**Tags:** aiperception, add-component, ai-controller, unreal-engine, question, Blueprint\
**Created:** [August 7, 2017, 8:34pm UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389 "2017-08-07T20:34:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![geekB0B0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geekB0B0](https://forums.unrealengine.com/u/geekB0B0)\
**Post date:** [August 7, 2017, 8:34pm UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389/1 "2017-08-07T20:34:46Z")

</div>

**STR:**

1. Create new blueprint project.
2. Create AIController blueprint.
3. In AIController blueprint add AIPerception component.
4. Compile AIController blueprint.

**Result:**

> LogScriptCore: Error: Script Msg: A  
> null object was passed as a world  
> context object to  
> UEngine::GetWorldFromContextObject().  
> LogScriptCore: Error: Script call  
> stack:  
> [Empty] (FFrame::GetScriptCallstack() called  
> from native code)

 ![193291-error.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/f/91fe7db225ae2c839ad47aa28c1f72631c38b01f.png)

**Reproducibility** : 100% in my environment (4.17)

No repro on 4.16.3 version

---

<div class="post-metadata">

**Author:** ![looter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/looter/32/914507_2.png) [@looter](https://forums.unrealengine.com/u/looter)\
**Post date:** [August 8, 2017, 3:50am UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389/2 "2017-08-08T03:50:48Z")

</div>

I’m running into this error after updating the project to 4.17 today. Not sure what it affects yet but it pops up in the dedicated servers console.

---

<div class="post-metadata">

**Author:** ![OverRated\_AU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/overrated_au/32/1008648_2.png) [@OverRated\_AU](https://forums.unrealengine.com/u/OverRated_AU)\
**Post date:** [August 8, 2017, 12:16pm UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389/3 "2017-08-08T12:16:01Z")

</div>

I get two of these am i special ?

---

<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:** [August 8, 2017, 7:13pm UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389/4 "2017-08-08T19:13:40Z")

</div>

Hello Smulack,

After doing some digging I was able to find that this is a known issue. I have provided a link to the public tracker. Please feel free to use the link provided for future updates.

Link: [Unreal Engine Issues and Bug Tracker (UE-47948)](https://issues.unrealengine.com/issue/UE-47948)

Make it a great day

---

<div class="post-metadata">

**Author:** ![geekB0B0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geekB0B0](https://forums.unrealengine.com/u/geekB0B0)\
**Post date:** [August 8, 2017, 7:30pm UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389/5 "2017-08-08T19:30:12Z")

</div>

Thank you for response!  
I see that this issue is labeled as target fix for 4.18. Is there any chance to get it in any 4.17.x version considering that affected version is 4.17?

---

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [August 11, 2017, 5:43am UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389/6 "2017-08-11T05:43:02Z")

</div>

I get six of em when i’m cooking for a package in 4.17. The process completes successfully but the package doesn’t work

---

<div class="post-metadata">

**Author:** ![Vuthric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vuthric](https://forums.unrealengine.com/u/Vuthric)\
**Post date:** [August 11, 2017, 7:53am UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389/7 "2017-08-11T07:53:20Z")

</div>

A lot of people including myself are getting this world context issue since 4.17. It was definitely not in 4.16 and is very unpredictable. Sometimes some functions work other times they don’t. You can also check out this post.

> **[\[BP Compilation Manager\] WorldContextObject is null in BP function library](https://forums.unrealengine.com/questions/678150/bp-compilation-manager-worldcontextobject-is-null.html)**
>
> It's annoying issue we've encountered just after updating to 4.17. We use BP function library to call methods like GetGameInstance(), GetPlayerController(). They require WorldContextObject which should automatically retrieved by method call placed...

---

<div class="post-metadata">

**Author:** ![E1andri1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@E1andri1](https://forums.unrealengine.com/u/E1andri1)\
**Post date:** [August 27, 2017, 11:26am UTC](https://forums.unrealengine.com/t/error-script-msg-a-null-object-was-passed-as-a-world-context-object-to-uengine-getworldfromcontextobject-after-compiling-aicontroller-blueprint-with-aiperception-component/398389/8 "2017-08-27T11:26:37Z")

</div>

I’m receiving a similar error when using the Localization Dashboard. I started to translate my Game on Engine Version 4.15 and moved on to 4.17 today. I literally did nothing else then chaning the version, opening the editor and rerunning the gather word function in the localization dashboard. Now the Word Gather process fails with that error. See log attached. Do you have any solutions for this as the translation is a bit time critical.

Logfile
