black screen on MALI-based android

[SOLVED]](black screen on MALI-based android - Mobile - Epic Developer Community Forums)
Hello everyone!
I am trying to launch “TappyChiken2” game on my android pad 4.2.2. But I only get black screen on start and after ~10 secs app minimizes to background processes.
Android specs: model DNS E79, chipset Amlogic AML8726-M 2x1.2MHz, videoprocessor Mali-400MP2, 1024Mb RAM, 12800 Antutu rating.
I know, this hardware is not powerfull, but it runs almost all 3D games nicely.
Now I’ll try to describe everything from very start;)
Using latest for now UE4 ver 4.2.1 and 4.2ver of TappyChiken2.
So, I’ve installed NDK, SDK, JDK etc via tadp-2.0r8-windows.exe. Then I’ve set up paths for them.
Installed driver for droid, so when I type in “adb devices” it shows device with id “0123456789ABCDEF” and UE4 Editor recognizes it too.


C:\Users\suparlava>adb devices
List of devices attached
0123456789ABCDEF        device

In “ProjectSettings” → “Rendering” HDR is off by default, so I don’t change anything in settings and just choose “Package Project” → “Android” or “Android ETC1”, doesn’t matter which one, result is the same.
While cooking it shows log, I’ve searched there for “error” and “fail”:


80:<[FONT=Arial Black]Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>6835A29EBD41C022</RequestId><HostId>IypYH3yYJqO6CulK1RhdQTCCtTSEKHxM6K6s9iBM1hq255yMyH+rckJyaStKOpjc</HostId></[FONT=Arial Black]Error>
LogAssetRegistry: Asset discovery search completed in 28.2187 seconds
LogEpicSurvey:Warning: EnumerateFiles request failed. Invalid response. code=403 [FONT=Arial Black]error=<?xml version="1.0" encoding="UTF-8"?>

A lot of this kind of “fails”:


LogPlayLevel:Display: UE4Editor-Cmd: [2014.06.22-16.22.30:606]  0]LogPackageDependencyInfo:Display:  [FONT=Arial Black]Package Info not found for ../../../../../Users/suparlava/Documents/Unreal Projects//Content/Blueprints/BP_TappyChickenSaveGame!
LogPlayLevel:Display: UE4Editor-Cmd: [2014.06.22-16.22.30:607]  0]LogCookCommandlet:Display: [FONT=Arial Black]Failed to find dependency timestamp for: ../../../../../Users/suparlava/Documents/Unreal 

Then:


LogPlayLevel:Display: cmd: [FONT=Arial Black]failed to copy 'E:\Users\suparlava\Documents\Unreal Projects\\Saved\StagedBuilds\Android\Manifest_NonUFSFiles.txt' to '[FONT=Arial Black]/mnt/sdcard//Manifest_NonUFSFiles.txt': No such file or directory

Also, same “failed to copy”:
failed to copy E:.…\UE4CommandLine.txt No such file or directory
failed to copy E:.…\build.properties No such file or directory
failed to copy E:.…-Android.pak No such file or directory
All these files exist on PC in specified directiories.
[FONT=Arial Black]Full cook log file is here](https://drive.google.com/file/d/0B5n4aCLxq1wrdkdJNnM1NVJaVzg/edit?usp=sharing).

Then I launch “Install_TappyChicken2_Development.bat” and it installs app on device.

And then, before launching on device, in cmd i type in “adb logcat -s UE4 -s Debug”.
Here’s log:


D/UE4     ( 4460): In the JNI_OnLoad function
D/UE4     ( 4460): [FONT=Arial Black]Path found as '/storage/sdcard0'
D/UE4     ( 4460): Entering native app glue main function
D/UE4     ( 4460): Created event thread
D/UE4     ( 4460): Entered AndroidMain()
D/UE4     ( 4460): Controller interface supported
D/UE4     ( 4460): Entering event processing thread engine entry point
D/UE4     ( 4460): Prepared looper for event thread
D/UE4     ( 4460): Setting screen orientation to landscape because it's a Sheild

D/UE4     ( 4460): Passed callback initialization
D/UE4     ( 4460): Passed sensor initialization
D/UE4     ( 4460): App is running in Portrait
D/UE4     ( 4460): ==================================> Inside onStart function i
n GameActivity
D/UE4     ( 4460): OnAppCommandCB cmd: 10
D/UE4     ( 4460): LogAndroidEvents: EnqueueAppEvent : 9, 0
D/UE4     ( 4460): OnAppCommandCB cmd: 11
D/UE4     ( 4460): LogAndroidEvents: EnqueueAppEvent : 7, 0
D/UE4     ( 4460): OnAppCommandCB cmd: 0
D/UE4     ( 4460): OnAppCommandCB cmd: 8
D/UE4     ( 4460): OnAppCommandCB cmd: 1
D/UE4     ( 4460): LogAndroidEvents: EnqueueAppEvent : 0, 1735846880
D/UE4     ( 4460): LogAndroidEvents: EnqueueAppEvent : 2, 1735846880
D/UE4     ( 4460): OnAppCommandCB cmd: 6
D/UE4     ( 4460): LogAndroidEvents: EnqueueAppEvent : 11, 0
D/UE4     ( 4460): Final commandline:
D/UE4     ( 4460): [FONT=Arial Black]Obb directory not found
D/UE4     ( 4460): [FONT=Arial Black]Obb directory not found
D/UE4     ( 4460): Cannot display dialog box on this platform: Message : [FONT=Arial Black]Failed
to open descriptor file '../../..//.uproject'
D/UE4     ( 4460): D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.2\Engine\Sou
rce\Runtime\Core\Private\Misc\[FONT=Arial Black]OutputDevice.cpp(176): [FONT=Arial Black]Fatal error:
D/UE4     ( 4460): [FONT=Arial Black]Assertion failed: Class [File:D:/BuildFarm/buildmachine_++dep
ot+UE4-Releases+4.2/Engine/Source/Runtime/CoreUObject/Public/UObject\Class.h] [L
ine: 2377]
D/UE4     ( 4460): ConstructObject called with a NULL class object
D/UE4     ( 4460): Stack:
D/UE4     ( 4460): [Callstack] 0x00000000
D/UE4     ( 4460):
D/UE4     ( 4486): In the JNI_OnLoad function
D/UE4     ( 4486): Path found as '/storage/sdcard0'
D/UE4     ( 4486): Setting screen orientation to landscape because it's a Sheild

D/UE4     ( 4486): Entering native app glue main function
D/UE4     ( 4486): Created event thread
D/UE4     ( 4486): Entered AndroidMain()
D/UE4     ( 4486): Controller interface supported
D/UE4     ( 4486): Entering event processing thread engine entry point
D/UE4     ( 4486): Prepared looper for event thread
D/UE4     ( 4486): Passed callback initialization
D/UE4     ( 4486): Passed sensor initialization
D/UE4     ( 4486): App is running in Portrait
D/UE4     ( 4486): ==================================> Inside onStart function i
n GameActivity
D/UE4     ( 4486): OnAppCommandCB cmd: 10
D/UE4     ( 4486): LogAndroidEvents: EnqueueAppEvent : 9, 0
D/UE4     ( 4486): OnAppCommandCB cmd: 11
D/UE4     ( 4486): LogAndroidEvents: EnqueueAppEvent : 7, 0
D/UE4     ( 4486): OnAppCommandCB cmd: 0
D/UE4     ( 4486): OnAppCommandCB cmd: 8
D/UE4     ( 4486): OnAppCommandCB cmd: 1
D/UE4     ( 4486): LogAndroidEvents: EnqueueAppEvent : 0, 1735846880
D/UE4     ( 4486): LogAndroidEvents: EnqueueAppEvent : 2, 1735846880
D/UE4     ( 4486): OnAppCommandCB cmd: 6
D/UE4     ( 4486): LogAndroidEvents: EnqueueAppEvent : 11, 0
D/UE4     ( 4486): Final commandline:
D/UE4     ( 4486): [FONT=Arial Black]Obb directory not found
D/UE4     ( 4486): [FONT=Arial Black]Obb directory not found
D/UE4     ( 4486): Cannot display dialog box on this platform: Message : [FONT=Arial Black]Failed
to open descriptor file '../../..//.uproject'
D/UE4     ( 4486): D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.2\Engine\Sou
rce\Runtime\Core\Private\Misc\OutputDevice.cpp(176): [FONT=Arial Black]Fatal error:
D/UE4     ( 4486): Assertion failed: Class [File:D:/BuildFarm/buildmachine_++dep
ot+UE4-Releases+4.2/Engine/Source/Runtime/CoreUObject/Public/UObject\Class.h] [L
ine: 2377]
D/UE4     ( 4486): ConstructObject called with a NULL class object
D/UE4     ( 4486): Stack:
D/UE4     ( 4486): [Callstack] 0x00000000
D/UE4     ( 4486):

P.S.: TappyChicken from market runs well.

Hi MrHappy,

There were a number of Android fixes made when we were shipping Tappy Chicken that unfortunately didn’t make it into the 4.2 release in time (they’ll be in the 4.3 release some time in July). You can try building from GitHub source (which has all the fixes) to see if that resolves your issues, or wait for 4.3 to release.

Cheers,
Michael Noland

Thanks for reply Michael! I saw somewhere on answerHub same advice, but link was broken and I skipped that path of searching solution, nah… I’m lazy guy;)

Finnaly I solved this problem.
I’ve created new directory “com.epicgames.” on internal device memory card: [FONT=Arial Black]\Android\obb\com.epicgames. and placed there “[FONT=Arial Black]main.00001.com.epicgames…obb” file from PC folder. And that worked!
(as seen in my previous post, there’s quite clear error message in launching log saying “[FONT=Arial Black]Obb directory not found”)
I’ve used this trick with “Cards” game. Even “Temple” launched succesfully with [FONT=Arial Black]turned off HDR and 2-3fps;).
P.S.: I’ve tried to copy .obb earlier, but did it in wrong way, I just copied it to “com.epicgames.EpicCitadel” folder, ofcourse .obb was unrecognizable for app in that case.
P.P.S.: can’t find how to change topic’s header to add [solved] to it