After switching to the UE4.18 version, I had to start using Gradle to build Android applications. In assemblies with Gradle appeared a lot of Crashes. I can not in any way determine the exact cause of these crashes, but I think it’s all the same with Gradle.
libMali.so:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.SobratStudio.AndroidSimulator <<<
backtrace:
#00 pc 000000000006d00c /system/lib/libMali.so
#01 pc 000000000001d220 <unknown>
tgkill:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.SobratStudio.AndroidSimulator <<<
backtrace:
#00 pc 000000000004b034 /system/lib/libc.so (tgkill+12)
#01 pc 00000000000487d3 /system/lib/libc.so (pthread_kill+34)
#02 pc 000000000001d785 /system/lib/libc.so (raise+10)
#03 pc 00000000000192c1 /system/lib/libc.so (__libc_android_abort+34)
#04 pc 0000000000017034 /system/lib/libc.so (abort+4)
#05 pc 0000000000319775 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+252)
#06 pc 00000000000b4cb9 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+864)
#07 pc 00000000002388e9 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+2572)
#08 pc 00000000002393db /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+66)
#09 pc 00000000002654d3 /system/lib/libart.so (_ZN3art3JNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+518)
#10 pc 000000000193d5ab /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so
#11 pc 000000000199ae5c /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (Java_com_epicgames_ue4_GameActivity_nativeSetGlobalActivity+628)
#12 pc 000000000053e955 /data/app/com.SobratStudio.AndroidSimulator-1/oat/arm/base.odex
libandroid.so:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.SobratStudio.AndroidSimulator <<<
backtrace:
#00 pc 0000000000009376 /system/lib/libandroid.so
#01 pc 0000000001d3049c /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_ZN14FAndroidWindow20CalculateSurfaceSizeEPvRiS1_+116)
#02 pc 0000000001d2af98 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_ZN23FAndroidApplicationMisc28ComputePhysicalScreenDensityERi+728)
#03 pc 0000000001d31070 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_ZN31FGenericPlatformApplicationMisc21ConvertInchesToPixelsEfRf+76)
#04 pc 00000000027bdda0 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_ZN17FSlateApplicationC1Ev+1656)
#05 pc 00000000027bca64 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_ZN17FSlateApplication6CreateERK10TSharedRefI18GenericApplicationL7ESPMode1EE+44)
#06 pc 00000000027bc928 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_ZN17FSlateApplication6CreateEv+72)
#07 pc 00000000019a407c /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_ZN11FEngineLoop7PreInitEPKw+7992)
#08 pc 000000000199cfa4 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_ZN11FEngineLoop7PreInitEiPPwPKw+2904)
#09 pc 000000000199c1c8 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (_Z11AndroidMainP11android_app+2536)
#10 pc 000000000199fdf0 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so (android_main+108)
#11 pc 00000000019b28a4 /data/app/com.SobratStudio.AndroidSimulator-1/lib/arm/libUE4.so
#12 pc 0000000000042783 /system/lib/libc.so (_ZL15__pthread_startPv+30)
#13 pc 0000000000019361 /system/lib/libc.so (__start_thread+6)
com.epicgames.ue4.GameActivity:
"main" tid=1 WaitingForJniOnload
"main" prio=5 tid=1 WaitingForJniOnLoad
| group="main" sCount=1 dsCount=0 obj=0x338c45d8 self=0x74239000
| sysTid=26022 nice=0 cgrp=apps sched=0/0 handle=0x77747160
| state=R schedstat=( 9523583446 87047360 552 ) utm=927 stm=25 core=2 HZ=100
| stack=0x7f510000-0x7f512000 stackSize=8MB
| held mutexes=
#00 pc 00000000001c395b /system/lib/libhoudini.so (???)
#01 pc 0000000001927573 ???
at java.lang.Runtime.nativeLoad (Native method)
at java.lang.Runtime.doLoad (Runtime.java:497)
- locked <@addr=0x339867c0> (a java.lang.Runtime)
at java.lang.Runtime.loadLibrary (Runtime.java:438)
at java.lang.System.loadLibrary (System.java:989)
at com.epicgames.ue4.GameActivity.<clinit> (GameActivity.java:3217)
at java.lang.reflect.Constructor.newInstance! (Native method)
at java.lang.Class.newInstance (Class.java:1572)
at android.app.Instrumentation.newActivity (Instrumentation.java:1065)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2222)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2381)
at android.app.ActivityThread.access$800 (ActivityThread.java:147)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1286)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:135)
at android.app.ActivityThread.main (ActivityThread.java:5260)
at java.lang.reflect.Method.invoke! (Native method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:677)
"Heap thread pool worker thread 0" tid=2 Native
"Heap thread pool worker thread 0" prio=5 tid=2 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0x5c910100
| sysTid=26026 nice=0 cgrp=apps sched=0/0 handle=0x74252580
| state=S schedstat=( 2421170 255284 7 ) utm=0 stm=0 core=3 HZ=100
| stack=0x63809000-0x6380b000 stackSize=1020KB
| held mutexes=
#00 pc 0000000000000422 [vdso] (???)
#01 pc 0000000000012e14 /system/lib/libc.so (syscall+36)
#02 pc 00000000000fdc97 /dev/ashmem/dalvik-Heap thread pool worker thread 0 (deleted) (???)
"Heap thread pool worker thread 1" tid=3 Native
"Heap thread pool worker thread 1" prio=5 tid=3 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0x5f475b00
| sysTid=26027 nice=0 cgrp=apps sched=0/0 handle=0x74252800
| state=S schedstat=( 2166456 0 3 ) utm=0 stm=0 core=0 HZ=100
| stack=0x63707000-0x63709000 stackSize=1020KB
| held mutexes=
#00 pc 0000000000000422 [vdso] (???)
#01 pc 0000000000012e14 /system/lib/libc.so (syscall+36)
#02 pc 00000000000fdc97 /dev/ashmem/dalvik-Heap thread pool worker thread 1 (deleted) (???)
"Heap thread pool worker thread 2" tid=4 Native
"Heap thread pool worker thread 2" prio=5 tid=4 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0x5c912900
| sysTid=26029 nice=0 cgrp=apps sched=0/0 handle=0x74252a80
| state=S schedstat=( 1670290 214434 2 ) utm=0 stm=0 core=1 HZ=100
| stack=0x63605000-0x63607000 stackSize=1020KB
| held mutexes=
#00 pc 0000000000000422 [vdso] (???)
#01 pc 0000000000012e14 /system/lib/libc.so (syscall+36)
#02 pc 00000000000fdc97 /dev/ashmem/dalvik-Heap thread pool worker thread 2 (deleted) (???)
"ReferenceQueueDaemon" tid=6 Waiting
"ReferenceQueueDaemon" daemon prio=5 tid=6 Waiting
| group="system" sCount=1 dsCount=0 obj=0x1304fe80 self=0x5f476a00
| sysTid=26032 nice=0 cgrp=apps sched=0/0 handle=0x74252f80
| state=S schedstat=( 1893388 0 1 ) utm=0 stm=0 core=1 HZ=100
| stack=0x633ef000-0x633f1000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x3c0f7111> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Daemons$ReferenceQueueDaemon.run (Daemons.java:133)
- locked <0x3c0f7111> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Thread.run (Thread.java:818)
"FinalizerDaemon" tid=7 Waiting
"FinalizerDaemon" daemon prio=5 tid=7 Waiting
| group="system" sCount=1 dsCount=0 obj=0x1304fee0 self=0x5f477400
| sysTid=26033 nice=0 cgrp=apps sched=0/0 handle=0x74253200
| state=S schedstat=( 1606602 0 1 ) utm=0 stm=0 core=1 HZ=100
| stack=0x632e5000-0x632e7000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x0b2c8276> (a java.lang.ref.ReferenceQueue)
at java.lang.Object.wait (Object.java:422)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:101)
- locked <0x0b2c8276> (a java.lang.ref.ReferenceQueue)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:72)
at java.lang.Daemons$FinalizerDaemon.run (Daemons.java:173)
at java.lang.Thread.run (Thread.java:818)
"FinalizerWatchdogDaemon" tid=8 Waiting
"FinalizerWatchdogDaemon" daemon prio=5 tid=8 Waiting
| group="system" sCount=1 dsCount=0 obj=0x1304ff40 self=0x5f477900
| sysTid=26034 nice=0 cgrp=apps sched=0/0 handle=0x74253700
| state=S schedstat=( 2075028 0 1 ) utm=0 stm=0 core=3 HZ=100
| stack=0x5fb76000-0x5fb78000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x2ef7b077> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject (Daemons.java:239)
- locked <0x2ef7b077> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.run (Daemons.java:211)
at java.lang.Thread.run (Thread.java:818)
"HeapTrimmerDaemon" tid=9 Waiting
"HeapTrimmerDaemon" daemon prio=5 tid=9 Waiting
| group="system" sCount=1 dsCount=0 obj=0x1304ffa0 self=0x5f477e00
| sysTid=26035 nice=0 cgrp=apps sched=0/0 handle=0x74253980
| state=S schedstat=( 2196400 906756 2 ) utm=0 stm=0 core=2 HZ=100
| stack=0x52b87000-0x52b89000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x2a4494e4> (a java.lang.Daemons$HeapTrimmerDaemon)
at java.lang.Daemons$HeapTrimmerDaemon.run (Daemons.java:310)
- locked <0x2a4494e4> (a java.lang.Daemons$HeapTrimmerDaemon)
at java.lang.Thread.run (Thread.java:818)
"GCDaemon" tid=10 Waiting
"GCDaemon" daemon prio=5 tid=10 Waiting
| group="system" sCount=1 dsCount=0 obj=0x130b2080 self=0x5f478300
| sysTid=26036 nice=0 cgrp=apps sched=0/0 handle=0x74253c00
| state=S schedstat=( 3253522 0 6 ) utm=0 stm=0 core=0 HZ=100
| stack=0x52a83000-0x52a85000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x30e90d4d> (a java.lang.Daemons$GCDaemon)
at java.lang.Daemons$GCDaemon.run (Daemons.java:341)
- locked <0x30e90d4d> (a java.lang.Daemons$GCDaemon)
at java.lang.Thread.run (Thread.java:818)
"Binder_1" tid=11 Native
"Binder_1" prio=5 tid=11 Native
| group="main" sCount=1 dsCount=0 obj=0x130bb080 self=0x5f47c900
| sysTid=26037 nice=0 cgrp=apps sched=0/0 handle=0x74253e80
| state=S schedstat=( 8848224 7474448 22 ) utm=0 stm=0 core=0 HZ=100
| stack=0x52887000-0x52889000 stackSize=1012KB
| held mutexes=
#00 pc 0000000000000424 [vdso] (???)
#01 pc 0000000000084838 /system/lib/libc.so (__ioctl+24)
#02 pc 00000000000bde2b /system/lib/libc.so (ioctl+43)
#03 pc 000000000002c2c3 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+211)
#04 pc 000000000002cc26 /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+38)
#05 pc 000000000002cce9 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+105)
#06 pc 00000000000358b9 /system/lib/libbinder.so (_ZN7android10PoolThread10threadLoopEv+41)
#07 pc 0000000000016d7e /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+398)
#08 pc 0000000000070703 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+99)
#09 pc 000000000001648b /system/lib/libutils.so (_ZN13thread_data_t10trampolineEPKS_+123)
#10 pc 000000000002faa9 /system/lib/libc.so (_ZL15__pthread_startPv+57)
#11 pc 000000000002adfa /system/lib/libc.so (__start_thread+26)
#12 pc 0000000000012c56 /system/lib/libc.so (__bionic_clone+70)
"Binder_2" tid=12 Native
"Binder_2" prio=5 tid=12 Native
| group="main" sCount=1 dsCount=0 obj=0x130c0080 self=0x5c915100
| sysTid=26038 nice=0 cgrp=apps sched=0/0 handle=0x74256180
| state=S schedstat=( 6014716 7261914 11 ) utm=0 stm=0 core=0 HZ=100
| stack=0x52789000-0x5278b000 stackSize=1012KB
| held mutexes=
#00 pc 0000000000000424 [vdso] (???)
#01 pc 0000000000084838 /system/lib/libc.so (__ioctl+24)
#02 pc 00000000000bde2b /system/lib/libc.so (ioctl+43)
#03 pc 000000000002c2c3 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+211)
#04 pc 000000000002cc26 /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+38)
#05 pc 000000000002cce9 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+105)
#06 pc 00000000000358b9 /system/lib/libbinder.so (_ZN7android10PoolThread10threadLoopEv+41)
#07 pc 0000000000016d7e /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+398)
#08 pc 0000000000070703 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+99)
#09 pc 000000000001648b /system/lib/libutils.so (_ZN13thread_data_t10trampolineEPKS_+123)
#10 pc 000000000002faa9 /system/lib/libc.so (_ZL15__pthread_startPv+57)
#11 pc 000000000002adfa /system/lib/libc.so (__start_thread+26)
#12 pc 0000000000012c56 /system/lib/libc.so (__bionic_clone+70)
"ndroidSimulator"
"ndroidSimulator" prio=5 (not attached)
| sysTid=26057 nice=0 cgrp=apps
| state=S schedstat=( 173394 489706 1 ) utm=0 stm=0 core=1 HZ=100
"Signal Catcher" tid=5 Runnable
"Signal Catcher" daemon prio=5 tid=5 Runnable
| group="system" sCount=0 dsCount=0 obj=0x130a9080 self=0x5f47a100
| sysTid=26031 nice=0 cgrp=apps sched=0/0 handle=0x74252d00
| state=R schedstat=( 87244466 938258 16 ) utm=3 stm=5 core=0 HZ=100
| stack=0x634f9000-0x634fb000 stackSize=1012KB
| held mutexes= "thread list lock" "mutator lock"(exclusive held)
#00 pc 0000000000005923 /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+83)
#01 pc 0000000000002e52 /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+34)
#02 pc 00000000003ca5b8 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+136)
#03 pc 000000000039378d /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+285)
#04 pc 000000000039edce /system/lib/libart.so (_ZN3art10ThreadList14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+430)
#05 pc 00000000003747cd /system/lib/libart.so (_ZN3art7Runtime14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+141)
#06 pc 000000000037e1ac /system/lib/libart.so (_ZN3art13SignalCatcher13HandleSigQuitEv+1756)
#07 pc 000000000037fd0a /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+554)
#08 pc 000000000002faa9 /system/lib/libc.so (_ZL15__pthread_startPv+57)
#09 pc 000000000002adfa /system/lib/libc.so (__start_thread+26)
#10 pc 0000000000012c56 /system/lib/libc.so (__bionic_clone+70)
Thank you in advance