Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Native Crash - FMOD::SoundGroupI::getNumPlaying(int*) (Unknown File)

Discussion in 'iOS and tvOS' started by C-Gabriel, Jun 9, 2019.

  1. C-Gabriel

    C-Gabriel

    Joined:
    Jan 27, 2016
    Posts:
    114
    Audio Source crash, this report is all I have as it was received via Unity Analytics

    UNITY VERSION
    2018.4.0f1

    DEVICE
    iPad7,5

    OS VERSION
    iOS 12.2

    CPU
    arm64

    GFX
    Apple A10 GPU

    Code (CSharp):
    1. Thread 0 (crashed)
    2. 0   gameName                       0x000000010121b30c FMOD::SoundGroupI::getNumPlaying(int*)
    3. 1   gameName                       0x0000000101220fe8 FMOD::System::playSound(FMOD_CHANNELINDEX, FMOD::Sound*, bool, FMOD::Channel**)
    4. 2   gameName                       0x0000000100b310a8 SoundHandle::Instance::CreateChannel(SoundHandle&, bool)
    5. 3   gameName                       0x0000000100b24d04 SampleClip::AllocateChannel(bool, unsigned long long)
    6. 4   gameName                       0x0000000100b1c7d0 AudioSource::Play(double)
    7. 5   gameName                       0x00000001009546e0 AudioSource_CUSTOM_PlayDelayed(Il2CppObject*, float)
    8. 6   gameName                       0x000000010133d2e4 SoundSource_Play_m735BE898444968D18E5E14B8543AE90047600027
    9. 7   gameName                       0x000000010133cb98 SoundSource_Start_m8AE8424CE6894BEB79A018047979395283BE1BF3
    10. 8   gameName                       0x0000000100912690 RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017(void (*)(), MethodInfo const*, void*, void**)
    11. 9   gameName                       0x00000001012a72e0 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)
    12. 10  gameName                       0x0000000100d5ab28 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
    13. 11  gameName                       0x0000000100d62960 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
    14. 12  gameName                       0x0000000100d6c548 MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingExceptionPtr*)
    15. 13  gameName                       0x0000000100d6c740 MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr)
    16. 14  gameName                       0x0000000100d6b550 MonoBehaviour::DelayedStartCall(Object*, void*)
    17. 15  gameName                       0x0000000100c1fb4c DelayedCallManager::Update(int)
    18. 16  gameName                       0x0000000100cd0ed8 ExecutePlayerLoop(NativePlayerLoopSystem*)
    19. 17  gameName                       0x0000000100cd0f0c ExecutePlayerLoop(NativePlayerLoopSystem*)
    20. 18  gameName                       0x0000000100cd10e4 PlayerLoop()
    21. 19  gameName                       0x0000000100ec9380 UnityPlayerLoopImpl(bool)
    22. 20  gameName                       0x000000010087c7bc UnityRepaint
    23. 21  gameName                       0x000000010087c6a8 -[UnityAppController(Rendering) repaintDisplayLink]
    24. 22  QuartzCore                         0x000000019958d194 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long)
    25. 23  IOKit                              0x0000000195487718 IODispatchCalloutFromCFMessage
    26. 24  CoreFoundation                     0x0000000195196d30 __CFMachPortPerform
    27. 25  CoreFoundation                     0x00000001951bd934 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
    28. 26  CoreFoundation                     0x00000001951bd080 __CFRunLoopDoSource1
    29. 27  CoreFoundation                     0x00000001951b7ea4 __CFRunLoopRun
    30. 28  CoreFoundation                     0x00000001951b7354 CFRunLoopRunSpecific
    31. 29  GraphicsServices                   0x00000001973b779c GSEventRunModal
    32. 30  UIKitCore                          0x00000001c13b3b68 UIApplicationMain
    33. 31  gameName                       0x00000001008749f8 main
    34. 32  libdyld.dylib                      0x0000000194c7d8e0 start
     
    crekri and anatolyV like this.
  2. anatolyV

    anatolyV

    Joined:
    Nov 29, 2014
    Posts:
    63
    Did you end up finding out the cause or fixing this? I've got the same crash affecting a bunch of devices on 2019.1.6f1, getting the crash log via Xcode. Very similar trace:

    Code (csharp):
    1. Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    2. Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000000001e8
    3. VM Region Info: 0x1e8 is not in any region.  Bytes before following region: 4299537944
    4.       REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
    5.       UNUSED SPACE AT START
    6. --->
    7.       __TEXT                 000000010045c000-0000000100460000 [   16K] r-x/r-x SM=COW  ....app/gameName
    8.  
    9. Termination Signal: Segmentation fault: 11
    10. Termination Reason: Namespace SIGNAL, Code 0xb
    11. Terminating Process: exc handler [10969]
    12. Triggered by Thread:  0
    13.  
    14. Thread 0 name:
    15. Thread 0 Crashed:
    16. 0   gameName                          0x00000001011ed160 FMOD::SoundGroupI::getNumPlaying(int*) + 28
    17. 1   gameName                          0x00000001011f2e88 FMOD::System::playSound(FMOD_CHANNELINDEX, FMOD::Sound*, bool, FMOD::Channel**) + 72
    18. 2   gameName                          0x00000001008682cc SoundHandle::Instance::CreateChannel(SoundHandle&, bool) + 396 (SoundManager.cpp:389)
    19. 3   gameName                          0x0000000100854740 SampleClip::AllocateChannel(bool, unsigned long long) + 104 (AudioClip.cpp:127)
    20. 4   gameName                          0x0000000100846600 AudioSource::Play(double) + 692 (AudioSource.cpp:495)
    21. 5   gameName                          0x00000001008496fc AudioSource::AddToManager() + 88 (AudioSource.cpp:1341)
    22. 6   gameName                          0x0000000100844fd8 AudioSource::AwakeFromLoad(AwakeFromLoadMode) + 104 (AudioSource.cpp:194)
    23. 7   gameName                          0x0000000100b8dfdc AwakeFromLoadQueue::InvokePersistentManagerAwake(AwakeFromLoadQueue::Item*, unsigned int, AwakeFr... + 180 (AwakeFromLoadQueue.cpp:472)
    24. 8   gameName                          0x0000000100b8de8c AwakeFromLoadQueue::PersistentManagerAwakeFromLoad(int, AwakeFromLoadMode) + 140 (AwakeFromLoadQueue.cpp:286)
    25. 9   gameName                          0x0000000100b8dde8 AwakeFromLoadQueue::PersistentManagerAwakeFromLoad() + 36 (AwakeFromLoadQueue.cpp:158)
    26. 10  gameName                          0x0000000100a86774 LoadSceneOperation::CompleteAwakeSequence() + 136 (LoadSceneOperation.cpp:790)
    27. 11  gameName                          0x0000000100a867e0 LoadSceneOperation::CompletePreloadManagerLoadScene() + 36 (LoadSceneOperation.cpp:817)
    28. 12  gameName                          0x0000000100a863f0 LoadSceneOperation::PlayerLoadSceneFromThread() + 408 (LoadSceneOperation.cpp:643)
    29. 13  gameName                          0x0000000100a864d4 LoadSceneOperation::CompleteLoadFirstScene() + 12 (LoadSceneOperation.cpp:674)
    30. 14  gameName                          0x0000000100a8616c LoadSceneOperation::IntegrateMainThread() + 128 (LoadSceneOperation.cpp:351)
    31. 15  gameName                          0x0000000100a86f7c PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int) + 224 (PreloadManager.cpp:399)
    32. 16  gameName                          0x0000000100a87660 PreloadManager::UpdatePreloading() + 276 (PreloadManager.cpp:535)
    33. 17  gameName                          0x0000000100e06784 UnityPlayerLoopImpl(bool) + 124 (LibEntryPoint.mm:297)
    34. 18  gameName                          0x0000000100469008 UnityRepaint + 140 (UnityAppController+Rendering.mm:276)
    35. 19  gameName                          0x0000000100468ef4 -[UnityAppController(Rendering) repaintDisplayLink] + 88 (UnityAppController+Rendering.mm:71)
    36. 20  QuartzCore                        0x00000001edb30f90 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 636 (CADisplay.mm:2349)
    37. 21  QuartzCore                        0x00000001edbfab10 display_timer_callback(__CFMachPort*, void*, long, void*) + 272 (CADisplayTimer.cpp:163)
    38. 22  CoreFoundation                    0x00000001e9714a8c __CFMachPortPerform + 188 (CFMachPort.c:522)
    39. 23  CoreFoundation                    0x00000001e973b690 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 (CFRunLoop.c:1996)
    40. 24  CoreFoundation                    0x00000001e973addc __CFRunLoopDoSource1 + 440 (CFRunLoop.c:2133)
    41. 25  CoreFoundation                    0x00000001e9735c00 __CFRunLoopRun + 2096 (CFRunLoop.c:3152)
    42. 26  CoreFoundation                    0x00000001e97350b0 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
    43. 27  GraphicsServices                  0x00000001eb93579c GSEventRunModal + 104 (GSEvent.c:2245)
    44. 28  UIKitCore                         0x0000000215fa1978 UIApplicationMain + 212 (UIApplication.m:4353)
    45. 29  gameName                          0x0000000100462150 main + 160 (main.mm:41)
    46. 30  libdyld.dylib                     0x00000001e91fa8e0 start + 4
    47.  
     
  3. C-Gabriel

    C-Gabriel

    Joined:
    Jan 27, 2016
    Posts:
    114
  4. C-Gabriel

    C-Gabriel

    Joined:
    Jan 27, 2016
    Posts:
    114
    I've just got this again, so I guess it hasn't been fixed yet
     
  5. armnotstrong

    armnotstrong

    Joined:
    Mar 3, 2017
    Posts:
    21
    we also got this crash with version 2018.4.4, it seems an investigation is needed
     
  6. anatolyV

    anatolyV

    Joined:
    Nov 29, 2014
    Posts:
    63
    Has anybody found a way to reproduce this locally or is everyone getting this from cloud analytics?
     
  7. armnotstrong

    armnotstrong

    Joined:
    Mar 3, 2017
    Posts:
    21
    we are getting this from fabric crash analysitics
     
  8. Behnamjef

    Behnamjef

    Joined:
    Jan 22, 2016
    Posts:
    2
    I have the same problem.
     
  9. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    Same here with Unity 2018.4.16f1, iOS 12.4.5
     
  10. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    If you're able to reproduce this issue, please submit a bug-report as described in this document:
    https://unity3d.com/unity/qa/bug-reporting

    It's important that you report these issues together with a reproduction project if you want them to get fixed. If you don't do it, it might be a long time until someone else reports them or until Unity Technologies find them.

    After you submitted the bug-report, you receive a confirmation email with a bug-report Case number. Please post the Case number (number only, not the link) in this forum thread for Unity staff to pick up.
     
  11. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    Yes, I wish I could reproduce it, but unfortunately I only get these reports intermittently through Unity Analytics. It would be nice if Unity would at least examine stack traces without reproduction instructions, but they've just closed any case I open that only contains a stack trace :-(
     
  12. juliens137

    juliens137

    Joined:
    Oct 2, 2017
    Posts:
    26
    Hey, just wondering if anybody has an update on this or a fix? I'm experiencing some of these crashes on my iOS app.
     
  13. JonBFS

    JonBFS

    Joined:
    Feb 25, 2019
    Posts:
    39
    Yes, I get this occasionally as well. Would be nice to be able to reproduce it, but no luck so far.
    Unity 2019.4.17