Some crashes on Unity 4.6.4 for iOS

Hi there

We have an app, built for 64bits with IL2CPP for iOS with Fabric (formerly called Crashlytics) and we are receiving some crashed on AppWillTerminate with all version of Unity (we started working on it on 4.6.3). It’s quite strange, because to it seems to happen once the app is killed from background by OS due to memory pressure

Do you know anything?

Regards

Here is the raw of the crash

Thread : Crashed:
com.apple.main-thread 0
libsystem_kernel.dylib
0x3853ddf0 __pthread_kill + 8 1
libsystem_pthread.dylib
0x385bccc7 pthread_kill + 62 2
libsystem_c.dylib
0x384d9909 abort + 76 3 Scooby
0x01865270 GC_stop_world
(darwin_stop_world.c:569) 4 Scooby
0x018644f4 GC_stopped_mark
(alloc.c:610) 5 Scooby
0x0186407c GC_try_to_collect_inner
(alloc.c:460) 6 Scooby
0x01860a6c GC_collect_or_expand
(alloc.c:1260) 7 Scooby
0x01860d64 GC_allocobj (alloc.c:1349)
8 Scooby
0x0185f544 GC_generic_malloc_inner
(malloc.c:133) 9 Scooby
0x01860e34 GC_generic_malloc
(malloc.c:182) 10 Scooby
0x01861870 GC_malloc (misc.c:381) 11
Scooby
0x018b7b10
il2cpp::vm::Object::Clone(Il2CppObject*)
(Object.cpp:52) 12 Scooby
0x00b104f8
MulticastDelegate_RemoveImpl_m1569
(GeneratedVirtualInvokers.h:20) 13
Scooby
0x00b11ef0 Delegate_Remove_m1466
(Bulk_mscorlib_0.cpp:61557) 14 Scooby
0x001e6168
EventManager_remove_OnDarkBackgroundOut_m3980
(il2cpp-codegen.h:331) 15 Scooby
0x002fedd0
TutorialEvent_OnDestroy_m4589
(il2cpp-codegen.h:331) 16 Scooby
0x00ce2ce0
RuntimeInvoker_Void_t54(MethodInfo*,
void*, void**)
(GeneratedInvokers.cpp:12) 17 Scooby
0x018bd048
il2cpp::vm::Runtime::Invoke(MethodInfo*,
void*, void**, Il2CppObject**)
(Runtime.cpp:307) 18 Scooby
0x0130a344
ScriptingInvocation::Invoke(ScriptingException**,
bool) (ScriptingInvocation.cpp:128) 19
Scooby
0x0130a8dc
ScriptingInvocationNoArgs::InvokeChecked()
(ScriptingInvocationNoArgs.cpp:83) 20
Scooby
0x012fe21c
MonoBehaviour::CallMethodInactive(ScriptingMethodIl2Cpp)
(MonoBehaviour.cpp:370) 21 Scooby
0x01114664
Unity::GameObject::WillDestroyGameObject()
(stl_iterator.h:752) 22 Scooby
0x012a8264
PreDestroyRecursive(Unity::GameObject&,
unsigned long*) (stl_vector.h:400) 23
Scooby
0x012a84bc
DestroyGameObjectHierarchy(Unity::GameObject&)
(GameObject.h:424) 24 Scooby
0x012a8904
DestroyObjectHighLevel(Object*, bool)
(GameObjectUtility.cpp:1447) 25 Scooby
0x012c7bd8 CleanupAllObjects(bool)
(BaseObject.h:845) 26 Scooby
0x012c8430 CleanupEngine()
(SaveAndLoadHelper.cpp:450) 27 Scooby
0x012b004c PlayerCleanup(bool, bool)
(Player.cpp:1162) 28 Scooby
0x01005378 UnityCleanup
(LibEntryPoint.mm:235) 29 UIKit
0x2d1d18b1 -[UIApplication
_terminateWithStatus:] + 192 30 UIKit 0x2d3b8349 -[UIApplication
_handleApplicationDectivationWithScene:shouldForceExit:transitionContext:completion:]

  • 2416 31 UIKit 0x2d3b38e7 -[UIApplication
    workspaceShouldExit:] + 166 32
    FrontBoardServices
    0x305c2ec9 __31-[FBSSerialQueue
    performAsync:]_block_invoke_2 + 16 33
    CoreFoundation
    0x29ac1fd5
    CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12 34 CoreFoundation 0x29ac1299 __CFRunLoopDoBlocks + 216
    35 CoreFoundation
    0x29abfa37 __CFRunLoopRun + 790 36
    CoreFoundation
    0x29a0c201 CFRunLoopRunSpecific + 476
    37 CoreFoundation
    0x29a0c013 CFRunLoopRunInMode + 106 38
    GraphicsServices
    0x311e8201 GSEventRunModal + 136 39
    UIKit
    0x2d1b0a59 UIApplicationMain + 1440 40
    Scooby
    0x000b09e4 main (main.mm:45)

I have same problem.
we are serving game. This issue ocuurs very much. Do you have a plan to update UNITY relate to this bug?
Unity Version is 4.6.5p2.

0x000000010151a138 GC_stop_world (darwin_stop_world.c:569)

3
0x00000001015196dc GC_stopped_mark (alloc.c:611)

4
0x0000000101519258 GC_try_to_collect_inner (alloc.c:460)

5
0x0000000101515f08 GC_collect_or_expand (alloc.c:1264)

6
0x0000000101516244 GC_allocobj (alloc.c:1353)

7
0x00000001015149d0 GC_generic_malloc_inner (malloc.c:133)

8
0x0000000101516304 GC_generic_malloc (malloc.c:182)

9
0x0000000101516a50 GC_malloc (malloc.c:287)

10
0x000000010155a6c0 _ZN6il2cpp2vm6Object5CloneEP12Il2CppObject + 40

11
0x0000000100bf4378 MulticastDelegate_RemoveImpl_m36053 (GeneratedVirtualInvokers.h:20)

12
0x000000010029670c UILabel_SetActiveFont_m13616 (Bulk_Assembly-CSharp_14.cpp:51845)

13
0x0000000100297320 UILabel_OnDisable_m13615 (Bulk_Assembly-CSharp_14.cpp:51804)

14
0x0000000100d52ee0 RuntimeInvoker_Void_t38 (GeneratedInvokers.cpp:12)

15
0x000000010155deb8 _ZN6il2cpp2vm7Runtime6InvokeEP10MethodInfoPvPS4_PP12Il2CppObject + 64

16
0x0000000101107230 (unknown) (ScriptingInvocation.cpp:128)

17
0x00000001011075e4 (unknown) (ScriptingInvocationNoArgs.cpp:83)

18
0x00000001010fe280 (unknown) (MonoBehaviour.cpp:370)

19
0x00000001010fe4ec (unknown) (MonoBehaviour.cpp:347)

20
0x0000000100fa23f8 (unknown) (GameObject.cpp:227)

21
0x0000000100fa2358 (unknown) (GameObject.cpp:209)

22
0x0000000100fa2358 (unknown) (GameObject.cpp:209)

23
0x0000000100fa2358 (unknown) (GameObject.cpp:209)

24
0x0000000100fa24ac (unknown) (GameObject.cpp:241)

25
0x00000001010c0a14 DestroyGameObjectHierarchy (GameObjectUtility.cpp:1283)

26
0x00000001010c0df0 DestroyObjectHighLevel (GameObjectUtility.cpp:1447)

27
0x00000001010d68d8 CleanupAllObjects (SaveAndLoadHelper.cpp:298)

28
0x00000001010d6e54 CleanupEngine (SaveAndLoadHelper.cpp:450)

29
0x00000001010c6378 PlayerCleanup (Player.cpp:1162)