[Android Packaging] Crash on startup caused by UMG

Engine Version: 4.4.1

When I launch my project via the editor targeting my Samsung Galaxy S4 (Launch>>GT_I9505) it deploys onto the device without issue.

However, when I try to package a distributable APK so I can pass the project around to other members of the team, the the project does not run and crashes on start-up (see package settings below).

I have attempted to install the APK by moving it directly onto the device. It installs fine, but crashes on start-up with this log:
[development-log][2]

Reading through it, I’m guessing it did not install correctly as it cannot find the cooked content (my “Map” in this case):

09-02 11:58:07.573: D/UE4(13255): [2014.09.02-10.58.07:583][  0]LogLinker:Warning: Can't find file '/Temp/Autosaves/Game/UEDPCMap'
09-02 11:58:07.573: D/UE4(13255): [2014.09.02-10.58.07:584][  0]LogLinker:Warning: Can't find file '/Temp/Autosaves/Game/UEDPCMap'
09-02 11:58:07.573: D/UE4(13255): [2014.09.02-10.58.07:584][  0]LogUObjectGlobals:Warning: Failed to load '/Temp/Autosaves/Game/UEDPCMap': Can't find file '/Temp/Autosaves/Game/UEDPCMap'
09-02 11:58:07.573: D/UE4(13255): [2014.09.02-10.58.07:585][  0]LogUObjectGlobals:Warning: Failed to load '/Temp/Autosaves/Game/UEDPCMap': Can't find file '/Temp/Autosaves/Game/UEDPCMap'
09-02 11:58:07.573: D/UE4(13255): Cannot display dialog box on this platform: Message : The map specified on the commandline '/Temp/Autosaves/Game/UEDPCMap' could not be found. Would you like to load the default map instead?
09-02 11:58:07.573: D/UE4(13255): [2014.09.02-10.58.07:586][  0]LogGenericPlatformMisc: FPlatformMisc::RequestExit(0)
09-02 11:58:07.573: D/UE4(13255): [2014.09.02-10.58.07:586][  0]LogGenericPlatformMisc: FPlatformMisc::RequestExit(0)

So I decide to install it via the Batch file that the packager creates. This installs fine, but now I get a different error in the log this time which states it doesn’t like UMG Widget stuff that I am using for my interface:

LogLinker:Warning: Can't find file '/Script/UMGEditor'
09-02 12:15:51.601: D/UE4(17106): [2014.09.02-11.15.51:615][  0]LogLinker:Warning: Can't find file '/Script/UMGEditor'
09-02 12:15:51.601: D/UE4(17106): [2014.09.02-11.15.51:616][  0]LoadErrors: Info Failed to load /Game/RITA/Blueprint/MyHUD.MyHUD_C Referenced by MyUI_C Property /Script/Engine.GameMode:HUDClass
09-02 12:15:51.601: D/UE4(17106): [2014.09.02-11.15.51:616][  0]LoadErrors: Info Failed to load /Game/RITA/Blueprint/MyHUD.MyHUD_C Referenced by MyUI_C Property /Script/Engine.GameMode:HUDClass
09-02 12:15:51.601: D/UE4(17106): [2014.09.02-11.15.51:617][  0]LogUObjectGlobals:Warning: Failed to load '/Script/UMGEditor': Can't find file '/Script/UMGEditor'
09-02 12:15:51.601: D/UE4(17106): [2014.09.02-11.15.51:617][  0]LogUObjectGlobals:Warning: Failed to load '/Script/UMGEditor': Can't find file '/Script/UMGEditor'
09-02 12:15:51.601: D/UE4(17106): [2014.09.02-11.15.51:618][  0]LogLinker:Warning: Can't find file for asset '/Script/UMGEditor' while loading NULL.
09-02 12:15:51.601: D/UE4(17106): [2014.09.02-11.15.51:618][  0]LogLinker:Warning: Can't find file for asset '/Script/UMGEditor' while loading NULL.
09-02 12:15:51.611: D/UE4(17106): [2014.09.02-11.15.51:619][  0]LoadErrors: Info Failed to load /Game/RITA/Blueprint/MyHUD.MyHUD_C Referenced by MyUI_C Property /Script/Engine.GameMode:HUDClass
09-02 12:15:51.611: D/UE4(17106): [2014.09.02-11.15.51:620][  0]LoadErrors: Info Failed to load /Game/RITA/Blueprint/MyHUD.MyHUD_C Referenced by MyUI_C Property /Script/Engine.GameMode:HUDClass
09-02 12:15:51.611: D/UE4(17106): [2014.09.02-11.15.51:620][  0]LogUObjectGlobals:Warning: Failed to load '/Script/UMGEditor': Can't find file for asset '/Script/UMGEditor' while loading NULL.
09-02 12:15:51.611: D/UE4(17106): [2014.09.02-11.15.51:621][  0]LogUObjectGlobals:Warning: Failed to load '/Script/UMGEditor': Can't find file for asset '/Script/UMGEditor' while loading NULL.
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:792][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'WidgetTree_1': WidgetBlueprint /Game/RITA/Blueprint/MyUI.MyUI
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:792][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'WidgetTree_1': WidgetBlueprint /Game/RITA/Blueprint/MyUI.MyUI
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:792][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'Button_120': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:792][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'Button_120': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:792][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'ConnectButton': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:792][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'ConnectButton': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:792][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'DisconnectButton': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:792][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'DisconnectButton': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:793][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'ButtonSlot_58': Button /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.Button_120
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:793][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'ButtonSlot_58': Button /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.Button_120
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:793][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'ButtonSlot_83': Button /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.ConnectButton
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:793][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'ButtonSlot_83': Button /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.ConnectButton
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:794][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'ButtonSlot_83': Button /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.DisconnectButton
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:794][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'ButtonSlot_83': Button /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.DisconnectButton
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:794][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanel_0': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:794][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanel_0': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:795][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_1049': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:795][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_1049': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:795][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_1233': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:795][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_1233': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:796][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_1408': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:796][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_1408': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:796][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_344': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:796][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_344': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:797][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_405': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:797][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_405': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:797][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_593': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:797][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_593': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:798][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_666': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.782: D/UE4(17106): [2014.09.02-11.15.51:798][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'CanvasPanelSlot_666': CanvasPanel /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1.CanvasPanel_0
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:799][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'IPText': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:799][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'IPText': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:799][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'PortText': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:800][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'PortText': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:800][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'DefaultAnimationData_0': WidgetBlueprint /Game/RITA/Blueprint/MyUI.MyUI
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:800][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'DefaultAnimationData_0': WidgetBlueprint /Game/RITA/Blueprint/MyUI.MyUI
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:801][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_127': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:801][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_127': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:801][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_156': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:801][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_156': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:802][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_277': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:802][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_277': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:802][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_288': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:802][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_288': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:803][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_84': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:51.792: D/UE4(17106): [2014.09.02-11.15.51:803][  0]LogLinker:Warning: CreateExport: Failed to load Outer for resource 'TextBlock_84': WidgetTree /Game/RITA/Blueprint/MyUI.MyUI:WidgetTree_1
09-02 12:15:56.666: D/UE4(17106): D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.4\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp(51): Fatal error:
09-02 12:15:56.666: D/UE4(17106): Ran out of memory allocating 176128 bytes with alignment 0
09-02 12:15:56.666: D/UE4(17106): [2014.09.02-11.15.56:670][  0]LogMemory:Fatal: Ran out of memory allocating 176128 bytes with alignment 0
09-02 12:15:56.666: D/UE4(17106): [2014.09.02-11.15.56:671][  0]LogGenericPlatformMisc: FPlatformMisc::RequestExit(1)

So I decide to remove my UI completely (removing the widget and and any references to it). I package the APK again and this time it is working (moving the APK directly onto the device and running it to install is working also, I do not need to run the Batch file).

So I am wondering why UMG Widgets are causing the crash issue, especially when I can “Launch” from editor just fine with my widgets. My widgets only contain buttons, text and text fields (which work as intended when I touch them on the screen).

The interface for this project is quite important, and I cannot understand why they would work when I “Launch from the editor” but not work when I “package an APK.”

Just to add more to this, I think I have isolated and found the issue to be with the CreateWidget node (I think) or any node that is UMG specific.

I have attached a log [here][1]

Here’s what my blueprint looks like (I removed the node where I add my widget to a viewport because I read that there may be some crash issues there, but it is still crashing with only this):

Note: if I delete all the above nodes it stops crashing. Just “un-hooking” them from Event Begin Play still causes a crash, which suggests it may be missing a UMG dependency somewhere…

Howdy jaragoondoo,

Sorry about the delay in a response. I have been looking into the issue for the past couple of days. Just want to clear up a bit of confusion that I am having. You are currently packing your game with the APK checkbox enabled in the project settings, correct? I was able to package and deploy the project in 4.4.1 but, when attempting to run on a device, it would fail to open. I am seeing these errors even when not placing a UMG into the level.

Are you able to see a similar error without UMG?

Are you using binary of source code to run UE4?

Any additional information would be greatly appreciated.

Thanks and have a great day!

Hi Sean

Thank you for your reply!

Where is this APK checkbox? You can see my packaging settings in the first image. When packaging the project, I go File>>Package Project>>Android>>Android (All)

My project is running fine WITHOUT UMG when I package it as above (runs as intended, without the UI of course), but as I have said previously I can “Launch from the editor” WITH UMG (Launch>>GT_I9505) without a problem.

I think you may be having some other issue which is causing your crash (I have had a bunch of problems deploying onto Android with UE4, but I have been working around the problems one by one; I’d be screwed without Logcat :P).

Also, I am using the binary version of the engine.

Thanks again for your help, I hope we can figure this out :slight_smile:

The Checkbox that I was pointing to was the ‘Use OBB to APK’ checkbox in the project settings. If you disable that checkbox, are you able to package your project and then deploy it?

I’ll give that a go later today or tomorrow morning. When I am installing do I just move the .apk and the .obb into the same directory on the device and run the APK?

Regardless, I’ll keep you posted.

Howdy jaragoondoo,

Thanks you for reporting this issue. I was able to see the error that you were. The issue was that when you have a Widget Blueprint in the content browser, have ‘Use OBB in APK’ enabled in the project settings, and package for Android (All), the build will fail every time. I have entered TTP# 345720 into our Bug database so that it may be fixed in a future release.

If any more information is needed, please let me know.

Thanks and have a great day!

Thanks, that fixed it for me :slight_smile:

Can you help me the packaging error with window packaging error. I think there is a bug too

I had the same problem when I was trying to build the lights.
Finally I managed to fix the bug by removing the add to viewport node from level blueprint.

Hello!

I think I have similar problem here.

Engine Version: 4.7.6

Device: HTC One V

So, my app is similar to Tappy Chicken:

  • no any advanced render settings,
    everything is off (bloom, mobile hdr,
    etc…)
  • all materials are Unlit.
  • package settings - with separate obb
    file

I have UMG widgets there - health bar, and few indicators for every special object.

So, when I deploy game without UMGs, it works fine, but if I use widgets, app crushes my device and it just reloaded.

Any advice?

Maybe you need some logs?

Thanks!

After sometimes I realized that I had some models imported from max carelessly with their materials. And by modefing them. The scene got better.

Hey redbox,

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 list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any blueprints that may be involved with this issue?

Hello Rudy.

No, clean “Tappy Chicken” app works fine on this device.

I have reproduce this issue and here is detailed description.

So, I tried to make object indicators as described in this tutorial - [UMG Tutorial] - Placing Widgets Over Actors In Screenspace - Blueprint Visual Scripting - Unreal Engine Forums

But my fuckup here, that I tried to use Set Position for widget which have Canvas Panel.

So, repro steps:

  • Open clean “Tappy Chicken” project in Editor.

  • Create widget blueprint. It must have Canvas Panel and anything else - I tested with Text Box and Image.

  • Add this widget to viewport on begin play

  • Use Set Position In Viewport in Tick for this widget. In this case - position of player character.

  • Launch this app on device from Editor.

Result → device reloaded.

So, when you use Set Position in Tick for widget with Canvas Panel, it works on PC and maybe on other devices, but in this case with HTC One V it causes device crash.

It’s my error and I will remember it for the future.

Sorry for disturb.

Hello redbox,

I was able to reproduce this crash on the device. I have written up a report ( UE-16214) 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 information and time.

Note: The crash happens when referencing a blueprint from a widget.

Make it a great day

Thank you Rudy!

Hello!

I want to ask about status of this issue (UE-16214). Is it already fixed? Any ETA?

Thanks!

Hello redbox,

I went ahead and double checked on this issue for you. The status has not been changed to fixed as of this moment. However, I will be sure to bump up the community interest for this issue. Thank you for your time and information.

Make it a great day

Hello!

I deployed my app with 4.9 and checked issue with UI and BPs (UE-16214)

Everything works fine. Device is not crashed.

Thank you for this fix and for your great work! :slight_smile: