Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Analytics resulting in build crashing

Discussion in 'Unity Analytics' started by dgoyette, Sep 17, 2020.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
    I received this crash today running a build of my game. I'm posting this here, since the stack trace is results from "AnalyticsCoreStats::RegisterGlobalCallbacks'::`2'::EarlyUpdateAnalyticsCoreStatsUpdateRegistrator::Forward"

    Here is the stack trace:

    Code (CSharp):
    1. Native StackTrace:
    2.  
    3. Thread 0 (crashed)
    4. 0   ntdll                              0x00007fff67a9cbc4 ZwWaitForMultipleObjects
    5. 1   KERNELBASE                         0x00007fff657d2ae7 WaitForMultipleObjectsEx
    6. 2   KERNELBASE                         0x00007fff657d29ce WaitForMultipleObjects
    7. 3   UnityPlayer                        0x00007ffef52e191d ?HandleCrash@ExternalCrashHandler@winutils@@AEAAXKKPEBDPEAU_CONTEXT@@PEAU_EXCEPTION_RECORD@@_N@Z
    8. 4   UnityPlayer                        0x00007ffef52e19c2 ?HandleCrash@ExternalCrashHandler@winutils@@QEAA_NKKPEAU_EXCEPTION_POINTERS@@@Z
    9. 5   UnityPlayer                        0x00007ffef52f1608 ?ProcessInternalCrash@winutils@@YAHPEAU_EXCEPTION_POINTERS@@_N@Z
    10. 6   KERNELBASE                         0x00007fff658808aa UnhandledExceptionFilter
    11. 7   ntdll                              0x00007fff67aa4ab2 RtlUserThreadStart$filt$0
    12. 8   ntdll                              0x00007fff67a8c656 _C_specific_handler
    13. 9   ntdll                              0x00007fff67aa11cf RtlpExecuteHandlerForException
    14. 10  ntdll                              0x00007fff67a6a209 RtlDispatchException
    15. 11  ntdll                              0x00007fff67a9fe3e KiUserExceptionDispatch
    16. 12  UnityPlayer                        0x00007ffef5c7a178 ?Pop@AtomicStack@@QEAAPEAVAtomicNode@@XZ
    17. 13  UnityPlayer                        0x00007ffef53923a8 ?Allocate@BucketAllocator@@UEAAPEAX_KH@Z
    18. 14  UnityPlayer                        0x00007ffef53922bb ?Allocate@?$DualThreadAllocator@VDynamicHeapAllocator@@@@UEAAPEAX_KH@Z
    19. 15  UnityPlayer                        0x00007ffef537c7ba ?Allocate@MemoryManager@@QEAAPEAX_K0AEBUMemLabelId@@W4AllocateOptions@@PEBDH@Z
    20. 16  UnityPlayer                        0x00007ffef539003c ?malloc_internal@@YAPEAX_K0AEBUMemLabelId@@W4AllocateOptions@@PEBDH@Z
    21. 17  UnityPlayer                        0x00007ffef4d2b7ae ?allocate@?$StringStorageDefault@D@core@@AEAAX_K@Z
    22. 18  UnityPlayer                        0x00007ffef4d2b900 ?assign@?$StringStorageDefault@D@core@@QEAAXPEBD_K@Z
    23. 19  UnityPlayer                        0x00007ffef4d2b84e ?assign@?$StringStorageDefault@D@core@@QEAAXAEBV12@@Z
    24. 20  UnityPlayer                        0x00007ffef50391fc ?Update@Manager@ContinuousEvent@Analytics@UnityEngine@@QEAAXM@Z
    25. 21  UnityPlayer                        0x00007ffef503efd4 `AnalyticsCoreStats::RegisterGlobalCallbacks'::`2'::EarlyUpdateAnalyticsCoreStatsUpdateRegistrator::Forward
    26. 22  UnityPlayer                        0x00007ffef5a14aa7 ?ExecutePlayerLoop@@YAXPEAUNativePlayerLoopSystem@@@Z
    27. 23  UnityPlayer                        0x00007ffef5a14b6f ?ExecutePlayerLoop@@YAXPEAUNativePlayerLoopSystem@@@Z
    28. 24  UnityPlayer                        0x00007ffef5a18750 ?PlayerLoop@@YAXXZ
    29. 25  UnityPlayer                        0x00007ffef5319fdb PerformMainLoop
    30. 26  UnityPlayer                        0x00007ffef531892a MainMessageLoop
    31. 27  UnityPlayer                        0x00007ffef531d116 ?UnityMainImpl@@YAHPEAUHINSTANCE__@@0PEA_WH@Z
    32. 28  UnityPlayer                        0x00007ffef5320e4b UnityMain
    33. 29  GraviaDemo                         0x00007ff6665611f2 _scrt_common_main_seh
    34. 30  KERNEL32                           0x00007fff67917bd4 BaseThreadInitThunk
    35. 31  ntdll                              0x00007fff67a6ce51 RtlUserThreadStart
    36. 32  ntdll                              0x00007fff67a6ce51 RtlUserThreadStart
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you provide steps so we can attempt to reproduce here?
     
  3. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
    Sorry, I cannot. Native crashes, in general, seem to occur almost at random, and I usually have no idea how to reproduce or troubleshoot them. This error, specifically doesn't seem to come up often, but I posted this in case it's of some value in improving the stability of the Analytics code.