[4.7.6 ] game force close on samsung note 3 and note 4

I package the Android Game (ETC1) use UE 4.7.6 Source Code.

But It force close on samsung note 3 and note 4 right after launching.

Usually there will be a directory the same name as project name in the /storage/emulated/0

but I can’t find this directory in these samsung devices, I tested on other devices such like Sony Z3, Xiaomi 2S,

they are all working.

I prepared a apk file for you.

Please tell me your contact details.

####################

Device information

Note 4 (SM-N916K) (Android 5.0.1) (N916KKTU1BOD2) (3.10.9-4459679)
Note 3 (SM-N900) (Android 5.0) (N900XXUEBOC3) (3.4.39-40315330)

Hi KONADEV,

Before we get to the project stage, I have some info I need from you. Can you provide the build output logs for your successful apk build, and the crash logs from logcat on the devices? Thank you for the device information, that is very helpful.

Good luck!

Hi wittlief, here’s my log files

Build.log

link text

link text

Hi KONADEV,

It looks like you have your SDK set ‘android-22’, which is the API for devices running OS 5.1, and you stated your devices are both running 5.0. Please try setting your SDK to ‘android-19’, restart your computer as you have made changes to your SDK, package and try deploying to your devices again.

Good luck!

Hi ,
I packaged a new apk file with new setting,
but problem still.

setting↓↓

logcat ↓↓

[link text][2]

Hi KONADEV,

It looks like you’re leaving out a lot of the SDK locations. Please have a look at this forum post for how it should look. It may not be exactly identical depending on the versions of the SDK parts that you have installed, but those locations should not be empty.

Also, you have your minimum SDK set as 14, but your SDK level set to ‘matchndk’ which is android-19.

Here is the relevant section of the Android documentation concerning that:

So you might consider reviewing the Android SDK documentation while you’re double checking your SDK setup.

Hope this helps!

I changed the SDK API Level back to ‘latest’, and Minimum SDK Version to 9 which is the default setting,

re-packaged a new apk file, installed to Samsung Galaxy Note 3 and it still crashed.

I have tested this apk on Nexus 5(5.1), Nexus 9(5.0.2), Samsung Galaxy S3(4.1), Sony Z3(5.0),

they all worked just fine. It seems the problem is not the SDK settings.

Will this help?

I just found that if I uncheck “Package game data inside .apk”, then everything is fine,

my Samsung Galaxy Note 4 can run the app normally. But I have no idea how this works.

I have a Galaxy Note 3 and I have the same problem. I noticed that when you install the apk through the launch button in the editor, it creates a folder on the smartphone the same name as the project. If I package an apk and I trying to install it on the smartphone, if this folder is not present, app crash. If the folder is present, the app launches successfully.

ps : sorry for my english.

Hi KONADEV and Audera,

First thing, to rule out any possible problems with the Galaxy Note 3, please download Tappy Chicken release version from the Google Play store and make sure it runs on your device.

After we make sure Tappy runs on your device, please go into the editor and get the Tappy project from the Learn tab, package it for development and ETC1, and let me know if that crashes on your device.

Thanks!

Hi wittlief,

I can run Tappy Chicken both from Google Play version and packaged version, no problem at all.

Tappy Chicken from Play Store work perfectly and packaged too. But if i uncheck “Package game data inside .apk” Tappy Chicken crash immediately after launch. I think this is because it lacks a folder containing the .ini

Hi Audera,

I packaged Tappy for development and ETC1 with the pak option unchecked from both the Packaging portion of the Project Settings and the Platforms-Android portion and ran it on our Galaxy Note 3 SM-N900P and it never crashed. So at this point I’m not sure what is not working correctly for you.

42889-pak+unchecked.jpg

Ok, so that indicates to me that there’s something in your specific project that the Galaxy Note 3 does not like. Can you try again with your project and include another set of logcat logs, and this time show the whole log and not just the UE4 filter? I want to see if there’s something else going on. What version of Android is your Note 3 running?

I was able to install the Tappy apk from the batch file in the attempt above without launching on, so I am not sure why that is the only way it works for you. What operating system is your Note 3 currently running?

I found why application crash. I have a pretty heavy .obb (450mo), suddenly when I run the install via the .bat file, it’s really long. I launched the application before the bat is completely finished (the application being present on the smartphone, I thought it was good). So the config file was not present on the smartphone. Now my application works correctly. Sorry for my problem was that do not. Thank you for taking the time to answer.

Note 3 is running on Android 5.0.
link text

Hi KONADEV,

As you’re only seeing this issue specific to the Note 3, I have two ideas for you:

Are you trying (or is the device trying) to put the project onto a SD card? I see this in your logs:

05-08 18:47:25.567:
W/ContextImpl(8387): Failed to ensure
directory:
/storage/extSdCard/Android/obb/com.YourCompany.PrototypeProject
05-08 18:47:25.567: I/GLSUser(17314):
[GLSUser] getTokenFromCache: [account:
, callingPkg:
com.google.android.gms, service:
androidmarket] 05-08 18:47:25.567:
E/Vold(2319): Failed to find mounted
volume for
/storage/extSdCard/Android/obb/com.YourCompany.PrototypeProject/
05-08 18:47:25.567: W/Vold(2319):
Returning OperationFailed - no handler
for errno 0 05-08 18:47:25.572:
W/ContextImpl(8387): Failed to ensure
directory:
/storage/extSdCard/Android/data/com.YourCompany.PrototypeProject/file

Also, it looks like you’re getting a crash due to there not being enough memory on that device for your project:

05-08 18:47:25.647: E/filemap(8387):
mmap(0,574273862) failed: Out of
memory 05-08 18:47:25.647:
W/asset(8387): create map from entry
failed 05-08 18:47:25.647:
D/UE4(8387): Assertion failed: nullptr
!= File
[File:C:\Users\ZenTechPC\Documents\UnrealEngineSource\Engine\Source\Runtime\Core\Private\Android\AndroidFile.cpp]
[Line: 1681]

For those two factors, I am guessing your Note 3 is not robust enough to support your project.

Hi wittlief,

I’m not trying to put the project on sd card, in fact, I didn’t even install a sd card on this Note 3,

is there a way to solve this issue?

And the memory problem that you’ve mentioned, I really want my project to run on these devices,

how am I going to do that? Like how to reduce the memory used of my project? Or some kind of optimization?

Here’s the Android documentation on managing you application’s memory usage.

Good luck!