Hey i’m having a serious issue running Unity builds on My low end testing device Galaxy S4
apk’s built wtih Unity 2020.1 and up doesn’t work at all
even a simple empty scene
Tried disabling Multi-threading , disabling engine code stripping , didn’t help either
tried using custom jdk , sdk and ndk , instead of built in that i downloaded ,
didn’t work either
Built apk’s works fine with my other phone , Redmi note 7
i think there is some very serious issue with unity 2020 and this device galaxy s4
it crashes as soon as i lunch !
Note : it crashes as well With ILCPP2 and and both .NET 2.0 and 4.0
Here is the cat log from adb
PS: Main reason states:
E/CRASH (25725): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
E/CRASH (25725): Cause: null pointer dereference
E/mono-rt (25725): =================================================================
E/mono-rt (25725): Got a SIGSEGV while executing native code. This usually indicates
E/mono-rt (25725): a fatal error in the mono runtime or one of the native libraries
E/mono-rt (25725): used by your application.
E/mono-rt (25725): =================================================================
E/mono-rt (25725):
E/CRASH (25725): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
E/CRASH (25725): Version '2020.1.0f1 (2ab9c4179772)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
E/CRASH (25725): Build fingerprint: 'samsung/jfltetmo/jfltetmo:4.4.4/KTU84P/M919UVSFQA1:user/release-keys'
E/CRASH (25725): Revision: '10'
E/CRASH (25725): ABI: 'arm'
E/CRASH (25725): Timestamp: 2020-08-05 12:14:11+0100
E/CRASH (25725): pid: 25725, tid: 25739, name: UnityMain >>> com.DefaultCompany.galaxys4_test <<<
E/CRASH (25725): uid: 10387
E/CRASH (25725): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
E/CRASH (25725): Cause: null pointer dereference
E/CRASH (25725): r0 00000000 r1 00000000 r2 00000000 r3 ff0189bb
E/CRASH (25725): r4 7c586a60 r5 00000000 r6 786cdc88 r7 1d200422
E/CRASH (25725): r8 00000000 r9 78ee8a2c r10 00000001 r11 78ee8a78
E/CRASH (25725): ip 00000003 sp 78ee88b8 lr 780b1ce5 pc 780b1cec
E/CRASH (25725):
E/CRASH (25725): backtrace:
E/CRASH (25725): #00 pc 00a32cec /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #01 pc 00a35cb9 /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #02 pc 003ffbef /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #03 pc 004163fb /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #04 pc 0040b6db /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #05 pc 0041a0a9 /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #06 pc 0040ca5b /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #07 pc 0040d469 /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #08 pc 0041b2cd /data/app-lib/com.DefaultCompany.galaxys4_test-1/libunity.so (BuildId: 48e05d94cf21c5f3b69d7a6444e98b663b548d5e)
E/CRASH (25725): #09 pc 00020ecc /system/lib/libdvm.so (dvmPlatformInvoke+112)
E/CRASH (25725): #10 pc 00051b6f /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
E/CRASH (25725): #11 pc 0002a360 /system/lib/libdvm.so
E/CRASH (25725): #12 pc 00031810 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
E/CRASH (25725): #13 pc 0002eea8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
E/CRASH (25725): #14 pc 00063fdd /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
E/CRASH (25725): #15 pc 00064001 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
E/CRASH (25725): #16 pc 00058cd3 /system/lib/libdvm.so
E/CRASH (25725): #17 pc 0000d288 /system/lib/libc.so (__thread_entry+72)
E/CRASH (25725): #18 pc 0000d420 /system/lib/libc.so (pthread_create+240)
E/CRASH (25725): Tombstone written to: /storage/emulated/0/Android/data/com.DefaultCompany.galaxys4_test/files/tombstone_01
W/dalvikvm(25725): threadid=10: thread exiting with uncaught exception (group=0x417f3da0)
E/AndroidRuntime(25725): FATAL EXCEPTION: UnityMain
E/AndroidRuntime(25725): Process: com.DefaultCompany.galaxys4_test, PID: 25725
E/AndroidRuntime(25725): java.lang.Error: FATAL EXCEPTION [UnityMain]
E/AndroidRuntime(25725): Unity version : 2020.1.0f1
E/AndroidRuntime(25725): Device model : samsung SGH-M919
E/AndroidRuntime(25725): Device fingerprint: samsung/jfltetmo/jfltetmo:4.4.4/KTU84P/M919UVSFQA1:user/release-keys
E/AndroidRuntime(25725): Build Type : Release
E/AndroidRuntime(25725): Scripting Backend : Mono
E/AndroidRuntime(25725): ABI : armeabi-v7a
E/AndroidRuntime(25725): Strip Engine Code : false
E/AndroidRuntime(25725):
E/AndroidRuntime(25725): Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
E/AndroidRuntime(25725): Version '2020.1.0f1 (2ab9c4179772)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
E/AndroidRuntime(25725): Build fingerprint: 'samsung/jfltetmo/jfltetmo:4.4.4/KTU84P/M919UVSFQA1:user/release-keys'
E/AndroidRuntime(25725): Revision: '10'
E/AndroidRuntime(25725): ABI: 'arm'
E/AndroidRuntime(25725): Timestamp: 2020-08-05 12:14:11+0100
E/AndroidRuntime(25725): pid: 25725, tid: 25739, name: UnityMain >>> com.DefaultCompany.galaxys4_test <<<
E/AndroidRuntime(25725): uid: 10387
E/AndroidRuntime(25725): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
E/AndroidRuntime(25725): Cause: null pointer dereference
E/AndroidRuntime(25725): r0 00000000 r1 00000000 r2 00000000 r3 ff0189bb
E/AndroidRuntime(25725): r4 7c586a60 r5 00000000 r6 786cdc88 r7 1d200422
E/AndroidRuntime(25725): r8 00000000 r9 78ee8a2c r10 00000001 r11 78ee8a78
E/AndroidRuntime(25725): ip 00000003 sp 78ee88b8 lr 780b1ce5 pc 780b1cec
Built apk with unity 2018 LTS works fine
i’m downloading 2019 LTS now and i’ll see if the problem reproduces with that version
But i would really want a fix for that as i wanna benefit from the new GPU lightmapping features in 2020 version , it does the best job baking lights with Russian roulette feature on my open world game which is surprisingly good compared to any other unity version
thank you