java.lang.Error in UnityMain in 5.4.0p4

Crashes when using multiple scenes.

java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version : 5.4.0p4
Device model : samsung GT-I9305
Device fingerprint: samsung/m3xx/m3:4.4.4/KTU84P/I9305XXUFNL1:user/release-keys

Caused by: java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
Build fingerprint: ‘samsung/m3xx/m3:4.4.4/KTU84P/I9305XXUFNL1:user/release-keys’
Revision: ‘2’
pid: 21440, tid: 21505, name: UnityPreload >>> com.dirtybit.fra <<<
r0 00000000 r1 00000400 r2 000003ff r3 00000067
r4 00000000 r5 6b7d5790 r6 00000400 r7 00000000
r8 62619329 r9 00000000 sl 0000001b fp 76724e40
ip 0000006c sp 6315dbc8 lr 61c48d08 pc 61c48d1c cpsr 4c4e4655

at libunity.0043fd1c(Native Method)
at libunity.0043cc74(Native Method)
at libunity.0043b688(Native Method)
at libunity.00436a88(Native Method)
at libunity.00412890(Native Method)
at libunity.00412164(Native Method)
at libunity.004120a0(Native Method)
at libunity.0046d2bc(Native Method)
at libc.__thread_entry(__thread_entry:72)
at libc.pthread_create(pthread_create:240)

Just tested on 5.4.3.f1 and it is still a issue, but it does not give a log in logcat. Only shows
Force removing ActivityRecord{43151da0 u0 com.dirtybit.fra/com.unity3d.player.UnityPlayerActivity}: app died, no saved state

1 Like

More logs from other devices

java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version : 5.4.0p4
Device model : samsung SM-G935F
Device fingerprint: samsung/hero2ltexx/hero2lte:6.0.1/MMB29K/G935FXXU1BPI2:user/release-keys

Caused by: java.lang.Error: signal 8 (SIGFPE), code -6 (?), fault addr 0000299a
Build fingerprint: ‘samsung/hero2ltexx/hero2lte:6.0.1/MMB29K/G935FXXU1BPI2:user/release-keys’
Revision: ‘9’
pid: 10650, tid: 10737, name: UnityPreload >>> com.dirtybit.fra <<<
r0 00000000 r1 000029f1 r2 00000008 r3 d3fa9978
r4 d3fa9980 r5 d3fa9930 r6 00000014 r7 0000010c
r8 d3fa9704 r9 0000000f sl bd1c6ed0 fp d3fa9700
ip 00000008 sp d3fa9618 lr f72bc365 pc f72be754 cpsr 4b393242

at libc.tgkill(tgkill:12)
at libc.pthread_kill(pthread_kill:32)
at libc.raise(raise:10)
at libunity.00dadc18(Native Method)
at libunity.0043dd3c(Native Method)
at libunity.0043cc40(Native Method)
at libunity.0043b688(Native Method)
at libunity.00436a88(Native Method)
at libunity.00412890(Native Method)
at libunity.00412164(Native Method)
at libunity.004120a0(Native Method)
at libunity.0046d2bc(Native Method)
at libc.__pthread_start(void*)(__pthread_start:30)
at libc.__start_thread(__start_thread:6)

java.lang.Error: FATAL EXCEPTION [main]
Unity version : 5.4.0p4
Device model : HTC HTC Desire 610
Device fingerprint: htc/cingular_us/htc_a3ul:4.4.2/KOT49H/343839.6:user/release-keys

Caused by: java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000050
Build fingerprint: ‘htc/cingular_us/htc_a3ul:4.4.2/KOT49H/343839.6:user/release-keys’
Revision: ‘0’
pid: 21854, tid: 21935, name: UnityPreload >>> com.dirtybit.fra <<<
r0 00000050 r1 58705ba0 r2 00000001 r3 00000133
r4 00000005 r5 58705ba0 r6 00000050 r7 9c60fc13
r8 58705ba4 r9 0000000f sl 60cb79c0 fp 00000009
ip 55af4001 sp 58705ae0 lr 57378b80 pc 5737f724 cpsr 34332f48

at libunity.00444724(Native Method)
at libunity.0043db7c(Native Method)
at libunity.0043cc40(Native Method)
at libunity.0043b688(Native Method)
at libunity.00436a88(Native Method)
at libunity.00412890(Native Method)
at libunity.00412164(Native Method)
at libunity.004120a0(Native Method)
at libunity.0046d2bc(Native Method)
at libc.__thread_entry(__thread_entry:72)
at libc.pthread_create(pthread_create:240)

1 Like

We are also getting same crashes on multiple android devices (Android version 4 and 5)

Fatal Exception: java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version : 5.5.0p2
Device model : OPPO R7sf
Device fingerprint: OPPO/R7sfg/R7sf:5.1.1/LMY47V/1443181720:user/release-keys

Caused by java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
Build fingerprint: ‘OPPO/R7sfg/R7sf:5.1.1/LMY47V/1443181720:user/release-keys’
Revision: ‘0’
pid: 3508, tid: 3560, name: UnityMain >>> app id <<<
r0 ab7055bc r1 00000007 r2 00000000 r3 00000000
r4 df0bedbb r5 ab7043d0 r6 ab7e7e60 r7 ffffe97c
r8 000011ec r9 00000000 sl 00000002 fp 00000002
ip 0000002a sp de1b0890 lr ffffffff pc de6bedec cpsr 3a303237

at libunity.0050ddec(Unknown Source)
at libunity.002190d8(Unknown Source)
at libunity.001de06c(Unknown Source)
at libunity.00233258(Unknown Source)
at libunity.0053c80c(Unknown Source)
at libunity.0053c4c4(Unknown Source)
at libunity.0053eda8(Unknown Source)
at data@app@net.0060108f(Unknown Source)

Please see my post on how to diagnose this crash further (e.g: get meaningful function names): Loading...

Thank you for the reply, by using the technique you mentioned i got following methods name against each memory address. Please reply if you found something helpful.

at libunity.0050ddec(Unknown Source):
TransformFeedbackSkinning::SkinMesh(VertexStreamSource const&, GfxBuffer*, GPUSkinPoseBuffer*, GfxBuffer*, int, int, unsigned int, bool)

at libunity.002190d8(Unknown Source):
Texture2D::UploadTexture()

at libunity.001de06c(Unknown Source):
LoadMemoryBufferIntoTextureInternal(Texture2D&, unsigned char const*, unsigned int, LoadImageCompression, bool)

at libunity.00233258(Unknown Source):
Destripify(unsigned short const*, int, std::vector<unsigned int, stl_allocator<unsigned int, (MemLabelIdentifier)1, 16> >&)

at libunity.0053c80c(Unknown Source):
PlayerPrefs::Init()

at libunity.0053c4c4(Unknown Source):
PlayerPrefs::Init()

at libunity.0053eda8(Unknown Source):
JavaInput::Register(android::view::InputEvent const&)

these don’t look like anything to me … seems a bit weird. did you use the symbols from the same Unity version that your game is built with?

No, i have updated the Unity version : 5.5.0p2 to Unity version : 5.5.0p3. Game was built using Unity version : 5.5.0p2.
Additionally i am unable to reproduce this crash on my local devices, but crashlytics shows 2% of public users are affected with this crash.
Here is another crash on different device:

Fatal Exception: java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version : 5.5.0p2
Device model : samsung GT-I9505
Device fingerprint: samsung/jfltexx/jflte:4.4.2/KOT49H/I9505XXUGNG2:user/release-keys

Caused by java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
Build fingerprint: ‘samsung/jfltexx/jflte:4.4.2/KOT49H/I9505XXUGNG2:user/release-keys’
Revision: ‘11’
pid: 29907, tid: 29939, name: UnityMain >>> Appid <<<
r0 7f2aa21c r1 00000007 r2 00000000 r3 00000000
r4 7cd89db8 r5 7f2a9030 r6 7cdab0c0 r7 ffffe97c
r8 000011ec r9 00000001 sl 00000002 fp 00000002
ip 0000002c sp 7b3ab7c0 lr ffffffff pc 7a4f3dec cpsr 35303539

at libunity.0050ddec(Unknown Source)
at libunity.002190d8(Unknown Source)
at libunity.004aceec(Unknown Source)
at libunity.004acd7c(Unknown Source)
at libunity.004af3d0(Unknown Source)
at libunity.004b0658(Unknown Source)
at libunity.00174c10(Unknown Source)
at libunity.001753d8(Unknown Source)
at libunity.003317d0(Unknown Source)
at libunity.002e5980(Unknown Source)
at libunity.0053c4d8(Unknown Source)
at libunity.0053eda8(Unknown Source)
at libdvm.dvmPlatformInvoke(dvmPlatformInvoke:112)
at libdvm.dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)(dvmCallJNIMethod:398)
at libdvm.0002a1e0(Unknown Source)
at libdvm.dvmMterpStd(Thread*)(dvmMterpStd:76)
at libdvm.dvmInterpret(Thread*, Method const*, JValue*)(dvmInterpret:184)
at libdvm.dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)(dvmCallMethodV:336)
at libdvm.dvmCallMethod(Thread*, Method const*, Object*, JValue*, …)(dvmCallMethod:20)
at libdvm.00058b4b(Unknown Source)
at libc.__thread_entry(__thread_entry:72)
at libc.pthread_create(pthread_create:240)

When you use the technique shown in my blog, you have to use the symbols from the same unity version the game was built with.