# A strange error about GetWorldFromContextObject()

**URL:** <https://forums.unrealengine.com/t/a-strange-error-about-getworldfromcontextobject/400798>\
**Category:** Platform & Builds\
**Tags:** error, unreal-engine, packaged-game, packaging-projects, question\
**Created:** [July 28, 2017, 10:18am UTC](https://forums.unrealengine.com/t/a-strange-error-about-getworldfromcontextobject/400798 "2017-07-28T10:18:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wukakuki](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wukakuki/32/1134338_2.png) [@wukakuki](https://forums.unrealengine.com/u/wukakuki)\
**Post date:** [July 28, 2017, 10:18am UTC](https://forums.unrealengine.com/t/a-strange-error-about-getworldfromcontextobject/400798/1 "2017-07-28T10:18:04Z")

</div>

When I package this project, it shows me: UATHelper: Packaging (Mac): Cook: LogScriptCore: Error: Script Msg: A null object was passed as a world context object to UEngine::GetWorldFromContextObject().

 ![203246-screen+shot+2017-07-28+at+5.40.57+pm.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/3/4334eeaed0427c7a44b5ffc85e44a3281e4227c6.png)

In addition, when I open packaged file of this project, it couldn’t be run completely, specifically stoped at initializing movie player.  
[link text][2]

Therefore, could you please tell me whether there are connections between these two errors and how to solve these?  
Thank you very much.

---

<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:51pm UTC](https://forums.unrealengine.com/t/a-strange-error-about-getworldfromcontextobject/400798/2 "2017-08-07T20:51:45Z")

</div>

Check AIController if you had one. I experience same problem with AIPerception component when I compile AIController blueprint and packing a project: ["Error: Script Msg: A null object was passed as a world context object to UEngine::GetWorldFromContextObject()" after compiling AIController blueprint with AIPerception component - AI - Unreal Engine Forums](https://answers.unrealengine.com/questions/666822/error-script-msg-a-null-object-was-passed-as-a-wor.html)  
It seems that this is an engine bug.
