# Crash on startup - UnknownModule!UnknownFunction

**URL:** <https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 23, 2015, 7:57pm UTC](https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843 "2015-02-23T19:57:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![OhiraKyou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OhiraKyou](https://forums.unrealengine.com/u/OhiraKyou)\
**Post date:** [February 23, 2015, 7:57pm UTC](https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843/1 "2015-02-23T19:57:25Z")

</div>

**Branch** : Binary

**Build version** : 4.6.1-2386410+++depot+UE4-Releases+4.6

**OS** : Windows 7 x64

I’ve attached my dump and log.

I was able to compile and play my project in editor without a problem. After closing the editor, it now crashes on startup.

A function in a blueprint seems to be the cause. I’ve tried removing the blueprint, loading the editor, copying the blueprint back in, and them making changes to see if I could stop it from crashing on load. When what seems to be the problem function and its calls are deleted, the project loads. When I try to copy the function’s contents, create a new function with a different name, paste those contents in, and replace the old function call with the new, the project still crashes. I am able to paste the nodes in, unlink execution pins, and slowly work my way through, linking and unlinking execution pins and restarting the editor to see if it crashes. However, the points at which it crashes seem completely arbitrary. At one point, only deleting a "Make Literal Int’ that was not connected to anything let me load the project. However, after restoring my backup and removing the literal int again to see if that really was the problem, it still crashed.

Again, I didn’t have an issue with this blueprint until closing the editor; it compiled without error or warning and performed as expected in PIE.

I’m pretty burnt out on the issue, but development is totally halted until I’ve resolved it. I can email staff my entire project if necessary.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [February 23, 2015, 9:42pm UTC](https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843/2 "2015-02-23T21:42:37Z")

</div>

Hi OhiraKyou,

If you believe that function is responsible for the crash, could you post a screenshot of the function’s setup?

---

<div class="post-metadata">

**Author:** ![OhiraKyou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OhiraKyou](https://forums.unrealengine.com/u/OhiraKyou)\
**Post date:** [February 23, 2015, 9:57pm UTC](https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843/3 "2015-02-23T21:57:23Z")

</div>

It’s a pretty big function that calls other functions, and it crashes in more that one point. It would be a lot easier to just email a download for the 111mb project backup zip, really. But, here’s just one crash point:

 ![30867-crashpoint.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/8/118196aeb866efb549dceca58a4ddfc00c9be253.jpeg)

(if GetUnbuiltStructureIndices is connected, it crashes).

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [February 23, 2015, 10:12pm UTC](https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843/4 "2015-02-23T22:12:05Z")

</div>

That will be fine then. Send me a link to download the project by private message over the Forums.

[https://forums.unrealengine.com/](https://forums.unrealengine.com/)

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [February 24, 2015, 4:18pm UTC](https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843/5 "2015-02-24T16:18:48Z")

</div>

Hi OhiraKyou,

I’m not exactly sure what the cause of the crash is but I converted your project to 4.7 Preview 8 and it is now fixed. I don’t suggest converting to this just yet because the preview builds are not intended for development. However, the official 4.7.0 release will be coming out very soon.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![OhiraKyou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OhiraKyou](https://forums.unrealengine.com/u/OhiraKyou)\
**Post date:** [February 24, 2015, 9:19pm UTC](https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843/6 "2015-02-24T21:19:20Z")

</div>

After much debugging, I’ve solved the problem (_just_ in time for the 4.7 release :P) and posted the details in a new answer. But, thanks for taking a look at the project.

---

<div class="post-metadata">

**Author:** ![OhiraKyou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OhiraKyou](https://forums.unrealengine.com/u/OhiraKyou)\
**Post date:** [February 24, 2015, 10:12pm UTC](https://forums.unrealengine.com/t/crash-on-startup-unknownmodule-unknownfunction/307843/7 "2015-02-24T22:12:39Z")

</div>

I’ve determined that the crash was caused by a circular dependency between my BuildingManager and TownRoad blueprints; they referenced each other. Strangely, this only affects a single function. Other functions use TownRoad references without incident.

Ultimately, I solved the problem by replacing my TownRoad references with Actor references and their function calls with calls to functions defined in a new interface. I was always telling myself that I should be using interfaces, but, in my laziness, I never listened to myself. That finally caught up to me and bit me in the ■■■. Lesson learned.

For the record, 4.7 supposedly eliminates circular dependency crashes. But, I really should have been using interfaces anyway.
