Android Build (All) Native crash at /system/lib/libc.so

I’ve successfully managed to create and upload a game to Google Play into the Alpha testers section.

Both of my alpha testing devices crash, one just blanks out the screen then the app disappears, but on the Galaxy Note 4 (which I used for most of my testing) I’ve managed to get an error report. Can anyone please advise me on what to do with this. I’ve blueprinted the whole project, so I’m not likely to go diving into C++ code anytime soon…I shouldn’t have to.

The game works on my desktop and in an emulator, and I can launch the game on the Note 4 when connected to the PC…but downloaded from the Play store it just doesn’t work…

Native crash at /system/lib/libc.so
in /system/lib/libc.so (tgkill+12), /system/lib/libc.so (pthread_kill+52)


Build fingerprint: ‘samsung/trltexx/trlte:5.0.1/LRX22C/N910FXXU1BOC5:user/release-keys’
Revision: ‘12’
ABI: ‘arm’
pid: 9887, tid: 9902, name: Thread-1756 >>> com.AtonnisProductions.BlackOrWhiteF1 <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: ‘sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: java_class == null’
r0 00000000 r1 000026ae r2 00000006 r3 00000000
r4 aeffddb8 r5 00000006 r6 00000002 r7 0000010c
r8 00000000 r9 b4e4f520 sl ad559400 fp 00000d38
ip 000026ae sp aeff8850 lr b6f0cfd1 pc b6f30970 cpsr 60070010

backtrace:
#00 pc 00037970 /system/lib/libc.so (tgkill+12)
#01 pc 00013fcd /system/lib/libc.so (pthread_kill+52)
#02 pc 00014beb /system/lib/libc.so (raise+10)
#03 pc 00011531 /system/lib/libc.so (__libc_android_abort+36)
#04 pc 0000fcbc /system/lib/libc.so (abort+4)
#05 pc 0021d4b9 /system/lib/libart.so (art::Runtime::Abort()+160)
#06 pc 000a8353 /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
#07 pc 000b1a81 /system/lib/libart.so (art::JniAbort(char const*, char const*)+1060)
#08 pc 000b1fdd /system/lib/libart.so (art::JniAbortF(char const*, char const*, …)+60)
#09 pc 001af5fb /system/lib/libart.so (art::JNI::GetMethodID(_JNIEnv*, _jclass*, char const*, char const*)+770)
#10 pc 012adf90 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FJavaClassObject::FJavaClassObject(FName, char const*, …)+324)
#11 pc 012af014 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FJavaAndroidMediaPlayer::FJavaAndroidMediaPlayer(bool)+116)
#12 pc 031a230c /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FAndroidMediaPlayerStreamer::FAndroidMediaPlayerStreamer()+132)
#13 pc 031a4224 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FAndroidMoviePlayerModule::StartupModule()+36)
#14 pc 01418220 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FModuleManager::LoadModuleWithFailureReason(FName, EModuleLoadResult&, bool)+700)
#15 pc 015d1fc0 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FModuleDescriptor::LoadModulesForPhase(ELoadingPhase::Type, TArray<FModuleDescriptor, FDefaultAllocator> const&, TMap<FName, EModuleLoadResult, FDefaultSetAllocator, TDefaultMapKeyFuncs<FName, EModuleLoadResult, false> >&)+1088)
#16 pc 015da874 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FPluginManager::LoadModulesForEnabledPlugins(ELoadingPhase::Type)+1092)
#17 pc 01294340 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FEngineLoop::PreInit(wchar_t const*)+12504)
#18 pc 0129120c /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FEngineLoop::PreInit(int, wchar_t**, wchar_t const*)+3632)
#19 pc 012a1240 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (AndroidMain(android_app*)+2560)
#20 pc 012a1550 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (android_main+116)
#21 pc 012a9698 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so
#22 pc 000137bb /system/lib/libc.so (__pthread_start(void*)+30)
#23 pc 0001189b /system/lib/libc.so (__start_thread+6)


Build fingerprint: ‘samsung/trltexx/trlte:5.0.1/LRX22C/N910FXXU1BOC5:user/release-keys’
Revision: ‘12’
ABI: ‘arm’
pid: 9495, tid: 9546, name: Thread-1656 >>> com.AtonnisProductions.BlackOrWhiteF1 <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: ‘sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: java_class == null’
r0 00000000 r1 0000254a r2 00000006 r3 00000000
r4 af995db8 r5 00000006 r6 00000002 r7 0000010c
r8 00000000 r9 b4f4f520 sl ad659400 fp 00000d3a
ip 0000254a sp af990850 lr b6f41fd1 pc b6f65970 cpsr 60070010

backtrace:
#00 pc 00037970 /system/lib/libc.so (tgkill+12)
#01 pc 00013fcd /system/lib/libc.so (pthread_kill+52)
#02 pc 00014beb /system/lib/libc.so (raise+10)
#03 pc 00011531 /system/lib/libc.so (__libc_android_abort+36)
#04 pc 0000fcbc /system/lib/libc.so (abort+4)
#05 pc 0021d4b9 /system/lib/libart.so (art::Runtime::Abort()+160)
#06 pc 000a8353 /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
#07 pc 000b1a81 /system/lib/libart.so (art::JniAbort(char const*, char const*)+1060)
#08 pc 000b1fdd /system/lib/libart.so (art::JniAbortF(char const*, char const*, …)+60)
#09 pc 001af5fb /system/lib/libart.so (art::JNI::GetMethodID(_JNIEnv*, _jclass*, char const*, char const*)+770)
#10 pc 012adf90 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FJavaClassObject::FJavaClassObject(FName, char const*, …)+324)
#11 pc 012af014 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FJavaAndroidMediaPlayer::FJavaAndroidMediaPlayer(bool)+116)
#12 pc 031a230c /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FAndroidMediaPlayerStreamer::FAndroidMediaPlayerStreamer()+132)
#13 pc 031a4224 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FAndroidMoviePlayerModule::StartupModule()+36)
#14 pc 01418220 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FModuleManager::LoadModuleWithFailureReason(FName, EModuleLoadResult&, bool)+700)
#15 pc 015d1fc0 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FModuleDescriptor::LoadModulesForPhase(ELoadingPhase::Type, TArray<FModuleDescriptor, FDefaultAllocator> const&, TMap<FName, EModuleLoadResult, FDefaultSetAllocator, TDefaultMapKeyFuncs<FName, EModuleLoadResult, false> >&)+1088)
#16 pc 015da874 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FPluginManager::LoadModulesForEnabledPlugins(ELoadingPhase::Type)+1092)
#17 pc 01294340 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FEngineLoop::PreInit(wchar_t const*)+12504)
#18 pc 0129120c /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FEngineLoop::PreInit(int, wchar_t**, wchar_t const*)+3632)
#19 pc 012a1240 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (AndroidMain(android_app*)+2560)
#20 pc 012a1550 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (android_main+116)
#21 pc 012a9698 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so
#22 pc 000137bb /system/lib/libc.so (__pthread_start(void*)+30)
#23 pc 0001189b /system/lib/libc.so (__start_thread+6)

4 more reports have come in with the same problem.

Can anyone please help - I’m getting desperate. This shouldn’t happen - not if I can launch the product from the connected PC.

Perhaps it has something to do with AdMob? But I really don’t know.

All I know is that it won’t work on any device now :frowning:

Can anyone give any feedback on this, I’m going crazy!

Do you use Media Player?

In the Unreal Engine I’m using just 5 objects, the entire rest of the game is based in the HUD. There are some animations between menus within the HUD but that’s it.

I don’t use Unreal Media Player,

OK, just added more debug to a build and uploaded it to Alpha. The moment it’s available I’ll download it again to my phone and see what I get. I haven’t used LogCat before so I hope you’ll bear with me whilst I figure it out. I installed CatLog on my device - I hope that’ll do the job.

I installed aLogcat as well. Seems to be more detailed.

I’m asking because you game is felling apart on MediaPlayer module startup as stack trace suggests:

FJavaClassObject::FJavaClassObject(FName, char const*, …)+324) #11 pc 012af014 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FJavaAndroidMediaPlayer::FJavaAndroidMediaPlayer(bool)+116) #12 pc 031a230c
(FAndroidMediaPlayerStreamer::FAndroidMediaPlayerStreamer()+132) #13 pc 031a4224 /data/app/com.AtonnisProductions.BlackOrWhiteF1-1/lib/arm/libUE4.so (FAndroidMoviePlayerModule::StartupModule()+36) #14 pc 01418220

Can you get more logs from that crash? aspecially before crash happens, maybe there will be hint whats going on there. UE4 outputs to LogCat, so you can capture longs there

Last thing from UE4 in stack is FJavaClassObject constructor btw soundsl ike class responcible for interaction with Java, then stack goes to Android core libraries and somethign worngs happens there.

Check also Android version if there specific version that have that problem. Considering it is related to MEdiaPlayer there might be some incombality maybe?

So you don’t have any device that crash this way?

Every device I try the game on crashes the same way. Black screen then the usual ‘Unfortunately, The game has stopped.’

I’m just unfamiliar with LogCat. I’m trying right now to use adb shell / logcat, etc but the buffer is not large enough to pick up everything that happens during the time it takes me to launch the game and crash.

Use this:

It’s hell better and have filters, including process filter so you can catch logs of your game only

Thank you for the advice - you’ve just opened my world up a bit more!

OK, I think I have it. Everything in the attached file is filtered to the app name. In DDMS most of it is red.

link text

Thank you for the advice - you’ve just opened my world up a bit more!

OK, I think I have it. Everything in the attached file is filtered to the app name. In DDMS most of it is red.

link text

bw_error_log_29092015.txt (34.6 kB)

Can anyone help, please? I’m now overdue on delivery date for the product :frowning:

Has anyone had any luck looking into this at all, please?

Still no luck with this - I could REALLY use some help here, PLEASE!