iOS App crashes with stack from UnityCleanup()
We collected many crash stack info from user of our app. Most of them leads to a strange call of UnityCleanup() function call from UIKit. We do not call this function ourselves, so we want to make sure what cause the crash. Another thing is, according to the crash stack, when will UnityCleanup() be called?
Stacks here:
Operating system: iOS 10.0.2 14A456 CPU: arm64 2 CPUs
Crash reason: EXC_SOFTWARE / SIGABRT Crash address: 0x18272e014 Process uptime: 2076 seconds
Thread 0 (crashed) 0 libsystem_kernel.dylib + 0x1f014 x0 = 0x0000000000000000 x1 = 0x0000000000000000 x2 = 0x0000000000000000 x3 = 0x0000000000000000 x4 = 0x0000000000000000 x5 = 0x0000000000000000 x6 = 0x0000000000000001 x7 = 0x0000000000000000 x8 = 0x0000000008000000 x9 = 0x0000000004000000 x10 = 0x0000000000000000 x11 = 0x00000001827ed830 x12 = 0x0000000000000000 x13 = 0x0000000000000034 x14 = 0x000000000000004f x15 = 0x0000000000000061 x16 = 0x0000000000000148 x17 = 0x00000000fffffffe x18 = 0x0000000000000000 x19 = 0x0000000000000006 x20 = 0x00000001a85cac40 x21 = 0x0000000000000000 x22 = 0x00000001a6f2c078 x23 = 0x0000000000000006 x24 = 0x0000000105ef4000 x25 = 0x0000000000000006 x26 = 0x0000000000000018 x27 = 0x000000017249b320 x28 = 0x0000000000000002 fp = 0x000000016fd16270 lr = 0x00000001827f5460 sp = 0x000000016fd16250 pc = 0x000000018272e014 Found by: given as instruction pointer in context 1 libsystem_pthread.dylib + 0x545c fp = 0x000000016fd162b0 lr = 0x00000001826a23f4 sp = 0x000000016fd16280 pc = 0x00000001827f5460 Found by: previous frame's frame pointer 2 libsystem_c.dylib + 0x633f0 fp = 0x000000016fd16310 lr = 0x000000018276495c sp = 0x000000016fd162c0 pc = 0x00000001826a23f4 Found by: previous frame's frame pointer 3 libsystem_malloc.dylib + 0x3958 fp = 0x000000016fd16330 lr = 0x00000001013b1efc sp = 0x000000016fd16320 pc = 0x000000018276495c Found by: previous frame's frame pointer 4 cos!Renderer::ClearPropertyBlock() + 0x48 fp = 0x000000016fd16360 lr = 0x00000001015764ac sp = 0x000000016fd16340 pc = 0x00000001013b1efc Found by: previous frame's frame pointer 5 cos!Animator::ClearRelatedPropertyBlocks() + 0x2c fp = 0x000000016fd16380 lr = 0x0000000101576464 sp = 0x000000016fd16370 pc = 0x00000001015764ac Found by: previous frame's frame pointer 6 cos!Animator::Deactivate(Unity::DeactivateOperation) + 0x18 fp = 0x000000016fd16400 lr = 0x0000000101302e20 sp = 0x000000016fd16390 pc = 0x0000000101576464 Found by: previous frame's frame pointer 7 cos!Unity::GameObject::ActivateAwakeRecursivelyInternal(Unity::DeactivateOperation, AwakeFromLoadQueue&) + 0x1b8 fp = 0x000000016fd16540 lr = 0x0000000101302ed4 sp = 0x000000016fd16410 pc = 0x0000000101302e20 Found by: previous frame's frame pointer 8 cos!Unity::GameObject::ActivateAwakeRecursively(Unity::DeactivateOperation) + 0x44 fp = 0x000000016fd16580 lr = 0x0000000101439de0 sp = 0x000000016fd16550 pc = 0x0000000101302ed4 Found by: previous frame's frame pointer 9 cos!DestroyGameObjectHierarchy(Unity::GameObject&) + 0x18 fp = 0x000000016fd16610 lr = 0x000000010143a1bc sp = 0x000000016fd16590 pc = 0x0000000101439de0 Found by: previous frame's frame pointer 10 cos!DestroyObjectHighLevel(Object*, bool) + 0x380 fp = 0x000000016fd166f0 lr = 0x0000000101451e20 sp = 0x000000016fd16620 pc = 0x000000010143a1bc Found by: previous frame's frame pointer 11 cos!CleanupAllObjects(bool) + 0x114 fp = 0x000000016fd16700 lr = 0x000000010145239c sp = 0x000000016fd16700 pc = 0x0000000101451e20 Found by: previous frame's frame pointer 12 cos!CleanupEngine() + 0x28 fp = 0x000000016fd16720 lr = 0x0000000101440458 sp = 0x000000016fd16710 pc = 0x000000010145239c Found by: previous frame's frame pointer 13 cos!PlayerCleanup(bool, bool) + 0x3c fp = 0x000000016fd16730 lr = 0x000000010123109c sp = 0x000000016fd16730 pc = 0x0000000101440458 Found by: previous frame's frame pointer 14 cos!UnityCleanup + 0x10 fp = 0x000000016fd16780 lr = 0x0000000189635440 sp = 0x000000016fd16740 pc = 0x000000010123109c Found by: previous frame's frame pointer 15 UIKit + 0x9c43c fp = 0x000000016fd169c0 lr = 0x0000000189837864 sp = 0x000000016fd16790 pc = 0x0000000189635440 Found by: previous frame's frame pointer 16 UIKit + 0x29e860 fp = 0x000000016fd16bb0 lr = 0x000000018983b074 sp = 0x000000016fd169d0 pc = 0x0000000189837864 Found by: previous frame's frame pointer 17 UIKit + 0x2a2070 fp = 0x000000016fd16c10 lr = 0x000000018982ce28 sp = 0x000000016fd16bc0 pc = 0x000000018983b074 Found by: previous frame's frame pointer 18 UIKit + 0x293e24 fp = 0x000000016fd16c50 lr = 0x000000018959bb80 sp = 0x000000016fd16c20 pc = 0x000000018982ce28 Found by: previous frame's frame pointer 19 UIKit + 0x2b7c fp = 0x000000016fd16c60 lr = 0x000000018370d7dc sp = 0x000000016fd16c60 pc = 0x000000018959bb80 Found by: previous frame's frame pointer 20 CoreFoundation + 0xdc7d8 fp = 0x000000016fd16d00 lr = 0x000000018370b40c sp = 0x000000016fd16c70 pc = 0x000000018370d7dc Found by: previous frame's frame pointer 21 CoreFoundation + 0xda408 fp = 0x000000016fd17a10 lr = 0x000000018370b89c sp = 0x000000016fd16d10 pc = 0x000000018370b40c Found by: previous frame's frame pointer 22 CoreFoundation + 0xda898 fp = 0x000000016fd17aa0 lr = 0x000000018363a048 sp = 0x000000016fd17a20 pc = 0x000000018370b89c Found by: previous frame's frame pointer 23 CoreFoundation + 0x9044 fp = 0x000000016fd17b00 lr = 0x00000001850bd198 sp = 0x000000016fd17ab0 pc = 0x000000018363a048 Found by: previous frame's frame pointer 24 GraphicsServices + 0xc194 fp = 0x000000016fd17b50 lr = 0x0000000189614628 sp = 0x000000016fd17b10 pc = 0x00000001850bd198 Found by: previous frame's frame pointer 25 UIKit + 0x7b624 fp = 0x000000016fd17b90 lr = 0x000000018960f360 sp = 0x000000016fd17b60 pc = 0x0000000189614628 Found by: previous frame's frame pointer 26 UIKit + 0x7635c fp = 0x000000016fd17bd0 lr = 0x00000001000ef734 sp = 0x000000016fd17ba0 pc = 0x000000018960f360 Found by: previous frame's frame pointer 27 cos!main [main.mm : 37 + 0xc] fp = 0x000000016fd17bf0 lr = 0x000000018261c5b8 sp = 0x000000016fd17be0 pc = 0x00000001000ef734 Found by: previous frame's frame pointer 28 libdyld.dylib + 0x45b4 fp = 0x0000000000000000 lr = 0x0000000000000000 sp = 0x000000016fd17c00 pc = 0x000000018261c5b8 Found by: previous frame's frame pointer​
Your answer
Follow this Question
Related Questions
error CS0234: The type or namespace name `IActiveBuildTargetChanged 3 Answers
Unity 5.3.1: Baked scene crashes Editor on Mac 4 Answers
Unity and Vuforia app crashes on iOS after reloading scene with ARCamera 3 Answers
iOS crash during game play. il2cpp related 0 Answers
iOS game crashes before launch because of too many image assets? 1 Answer