Search Unity

TMP Null Reference Exception / NATIVE CRASH / SIGSEGV - Nothing useful in logs, builds crashing

Discussion in 'UGUI & TextMesh Pro' started by Bwacky, Jun 26, 2022.

  1. Bwacky

    Bwacky

    Joined:
    Nov 2, 2016
    Posts:
    206
    Hi!
    I'm having an issue where my builds crash - on a regular basis.

    Unity 2021.3 LTS, all packages updated to the latest available versions including TMP.

    When I check the console and logs in run-time (and after the build crashes), the only things logged are the following errors related to TMP. Nothing else implies there is an issue from my understanding of the logs. The error also only pops up in build - it never appears in the editor, albeit I experience crashes in the editor (very randomly though, which I can't really relate to the builds - editor crashes once every few days, the build literally every time at a specific spot in the game scene).

    So far I've tried:
    - Deleting models, scripts, shaders, and objects from the repo, then building an exe;
    - Reinstalling all packages;
    - Wiping library;
    - Remaking the scene from zero, slowly re-adding objects 1 by 1;

    I've tested primarily by adding/removing all objects in the scene and rebuilding it, which left me with around 50 builds over the last 4 days. Crashes in every conceivable case and setting, so I'm at my wit's end. The TMP errors are a 100% regular occurrence, but I have no way to track them.

    Code (CSharp):
    1. Uploading Crash Report
    2. NullReferenceException: Object reference not set to an instance of an object.
    3.   at TMPro.MaterialReference..ctor (System.Int32 index, TMPro.TMP_FontAsset fontAsset, TMPro.TMP_SpriteAsset spriteAsset, UnityEngine.Material material, System.Single padding) [0x0002c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\MaterialReferenceManager.cs:525
    4.   at TMPro.TextMeshProUGUI.SetArraySizes (TMPro.TMP_Text+UnicodeChar[] unicodeChars) [0x000af] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1042
    5.   at TMPro.TMP_Text.ParseInputText () [0x00069] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMP_Text.cs:1902
    6.   at TMPro.TextMeshProUGUI.OnPreRenderCanvas () [0x000c2] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1644
    7.   at TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) [0x0004c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TextMeshProUGUI.cs:216
    8.   at UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () [0x0015f] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:215
    9.   at UnityEngine.Canvas.SendWillRenderCanvases () [0x0000c] in C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96
    10. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    11. UnityEngine.Logger:LogException(Exception, Object)
    12. UnityEngine.Debug:LogException(Exception, Object)
    13. UnityEngine.UI.CanvasUpdateRegistry:performUpdate() (at X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:219)
    14. UnityEngine.Canvas:SendWillRenderCanvases() (at C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96)
    15.  
    16. NullReferenceException: Object reference not set to an instance of an object.
    17.   at TMPro.MaterialReference..ctor (System.Int32 index, TMPro.TMP_FontAsset fontAsset, TMPro.TMP_SpriteAsset spriteAsset, UnityEngine.Material material, System.Single padding) [0x0002c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\MaterialReferenceManager.cs:525
    18.   at TMPro.TextMeshProUGUI.SetArraySizes (TMPro.TMP_Text+UnicodeChar[] unicodeChars) [0x000af] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1042
    19.   at TMPro.TMP_Text.ParseInputText () [0x00069] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMP_Text.cs:1902
    20.   at TMPro.TextMeshProUGUI.OnPreRenderCanvas () [0x000c2] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1644
    21.   at TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) [0x0004c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TextMeshProUGUI.cs:216
    22.   at UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () [0x0015f] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:215
    23.   at UnityEngine.Canvas.SendWillRenderCanvases () [0x0000c] in C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96
    24. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    25. UnityEngine.Logger:LogException(Exception, Object)
    26. UnityEngine.Debug:LogException(Exception, Object)
    27. UnityEngine.UI.CanvasUpdateRegistry:performUpdate() (at X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:219)
    28. UnityEngine.Canvas:SendWillRenderCanvases() (at C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96)
    29.  
    30. NullReferenceException: Object reference not set to an instance of an object.
    31.   at TMPro.MaterialReference..ctor (System.Int32 index, TMPro.TMP_FontAsset fontAsset, TMPro.TMP_SpriteAsset spriteAsset, UnityEngine.Material material, System.Single padding) [0x0002c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\MaterialReferenceManager.cs:525
    32.   at TMPro.TextMeshProUGUI.SetArraySizes (TMPro.TMP_Text+UnicodeChar[] unicodeChars) [0x000af] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1042
    33.   at TMPro.TMP_Text.ParseInputText () [0x00069] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMP_Text.cs:1902
    34.   at TMPro.TextMeshProUGUI.OnPreRenderCanvas () [0x000c2] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1644
    35.   at TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) [0x0004c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TextMeshProUGUI.cs:216
    36.   at UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () [0x0015f] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:215
    37.   at UnityEngine.Canvas.SendWillRenderCanvases () [0x0000c] in C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96
    38. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    39. UnityEngine.Logger:LogException(Exception, Object)
    40. UnityEngine.Debug:LogException(Exception, Object)
    41. UnityEngine.UI.CanvasUpdateRegistry:performUpdate() (at X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:219)
    42. UnityEngine.Canvas:SendWillRenderCanvases() (at C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96)
    43.  
    44. NullReferenceException: Object reference not set to an instance of an object.
    45.   at TMPro.MaterialReference..ctor (System.Int32 index, TMPro.TMP_FontAsset fontAsset, TMPro.TMP_SpriteAsset spriteAsset, UnityEngine.Material material, System.Single padding) [0x0002c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\MaterialReferenceManager.cs:525
    46.   at TMPro.TextMeshProUGUI.SetArraySizes (TMPro.TMP_Text+UnicodeChar[] unicodeChars) [0x000af] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1042
    47.   at TMPro.TMP_Text.ParseInputText () [0x00069] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMP_Text.cs:1902
    48.   at TMPro.TextMeshProUGUI.OnPreRenderCanvas () [0x000c2] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1644
    49.   at TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) [0x0004c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TextMeshProUGUI.cs:216
    50.   at UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () [0x0015f] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:215
    51.   at UnityEngine.Canvas.SendWillRenderCanvases () [0x0000c] in C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96
    52. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    53. UnityEngine.Logger:LogException(Exception, Object)
    54. UnityEngine.Debug:LogException(Exception, Object)
    55. UnityEngine.UI.CanvasUpdateRegistry:performUpdate() (at X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:219)
    56. UnityEngine.Canvas:SendWillRenderCanvases() (at C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96)
    57.  
    58. NullReferenceException: Object reference not set to an instance of an object.
    59.   at TMPro.MaterialReference..ctor (System.Int32 index, TMPro.TMP_FontAsset fontAsset, TMPro.TMP_SpriteAsset spriteAsset, UnityEngine.Material material, System.Single padding) [0x0002c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\MaterialReferenceManager.cs:525
    60.   at TMPro.TextMeshProUGUI.SetArraySizes (TMPro.TMP_Text+UnicodeChar[] unicodeChars) [0x000af] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1042
    61.   at TMPro.TMP_Text.ParseInputText () [0x00069] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMP_Text.cs:1902
    62.   at TMPro.TextMeshProUGUI.OnPreRenderCanvas () [0x000c2] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1644
    63.   at TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) [0x0004c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TextMeshProUGUI.cs:216
    64.   at UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () [0x0015f] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:215
    65.   at UnityEngine.Canvas.SendWillRenderCanvases () [0x0000c] in C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96
    66. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    67. UnityEngine.Logger:LogException(Exception, Object)
    68. UnityEngine.Debug:LogException(Exception, Object)
    69. UnityEngine.UI.CanvasUpdateRegistry:performUpdate() (at X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:219)
    70. UnityEngine.Canvas:SendWillRenderCanvases() (at C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96)
    71.  
    72. NullReferenceException: Object reference not set to an instance of an object.
    73.   at TMPro.MaterialReference..ctor (System.Int32 index, TMPro.TMP_FontAsset fontAsset, TMPro.TMP_SpriteAsset spriteAsset, UnityEngine.Material material, System.Single padding) [0x0002c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\MaterialReferenceManager.cs:525
    74.   at TMPro.TextMeshProUGUI.SetArraySizes (TMPro.TMP_Text+UnicodeChar[] unicodeChars) [0x000af] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1042
    75.   at TMPro.TMP_Text.ParseInputText () [0x00069] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMP_Text.cs:1902
    76.   at TMPro.TextMeshProUGUI.OnPreRenderCanvas () [0x000c2] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1644
    77.   at TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) [0x0004c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TextMeshProUGUI.cs:216
    78.   at UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () [0x0015f] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:215
    79.   at UnityEngine.Canvas.SendWillRenderCanvases () [0x0000c] in C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96
    80. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    81. UnityEngine.Logger:LogException(Exception, Object)
    82. UnityEngine.Debug:LogException(Exception, Object)
    83. UnityEngine.UI.CanvasUpdateRegistry:performUpdate() (at X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:219)
    84. UnityEngine.Canvas:SendWillRenderCanvases() (at C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96)
    85.  
    86. NullReferenceException: Object reference not set to an instance of an object.
    87.   at TMPro.MaterialReference..ctor (System.Int32 index, TMPro.TMP_FontAsset fontAsset, TMPro.TMP_SpriteAsset spriteAsset, UnityEngine.Material material, System.Single padding) [0x0002c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\MaterialReferenceManager.cs:525
    88.   at TMPro.TextMeshProUGUI.SetArraySizes (TMPro.TMP_Text+UnicodeChar[] unicodeChars) [0x000af] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1042
    89.   at TMPro.TMP_Text.ParseInputText () [0x00069] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMP_Text.cs:1902
    90.   at TMPro.TextMeshProUGUI.OnPreRenderCanvas () [0x000c2] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMPro_UGUI_Private.cs:1644
    91.   at TMPro.TextMeshProUGUI.Rebuild (UnityEngine.UI.CanvasUpdate update) [0x0004c] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TextMeshProUGUI.cs:216
    92.   at UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () [0x0015f] in X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:215
    93.   at UnityEngine.Canvas.SendWillRenderCanvases () [0x0000c] in C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96
    94. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    95. UnityEngine.Logger:LogException(Exception, Object)
    96. UnityEngine.Debug:LogException(Exception, Object)
    97. UnityEngine.UI.CanvasUpdateRegistry:performUpdate() (at X:\Projects\Projekty\Age of Aincrad 2020 Universal RP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\CanvasUpdateRegistry.cs:219)
    98. UnityEngine.Canvas:SendWillRenderCanvases() (at C:\buildslave\unity\build\Modules\UI\ScriptBindings\UICanvas.bindings.cs:96)
    99. [/QUOTE]

    At some point after the above, the game crashes. Bottom of the logs have the following:

    Code (CSharp):
    1. Invalid OffsetPtr access! Pointer is NULL
    2. 0x00007ff7a77a0c3d (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007ff7a77a7919 (Unity) StackWalker::ShowCallstack
    4. 0x00007ff7a87148b3 (Unity) GetStacktrace
    5. 0x00007ff7a8da98ad (Unity) DebugStringToFile
    6. 0x00007ff7a8da95d2 (Unity) AssertImplementation
    7. 0x00007ff7a7bd8ec4 (Unity) audio::mixer::ApplyBlendedSnapshots
    8. 0x00007ff7a7bdf85d (Unity) audio::mixer::UpdateAudioMixerMemory
    9. 0x00007ff7a7bdd867 (Unity) audio::mixer::CreateAudioMixerMemory
    10. 0x00007ff7a7bb2eaa (Unity) AudioMixer::EnsureValidRuntime
    11. 0x00007ff7a7bc3723 (Unity) AudioMixer::Update
    12. 0x00007ff7a7bc338a (Unity) AudioManager::Update
    13. 0x00007ff7a7b87ce1 (Unity) AudioModule::Update
    14. 0x00007ff7a7b8774b (Unity) `InitializeAudioManagerCallbacks'::`2'::postLateUpdateUpdateAudioRegistrator::Forward
    15. 0x00007ff7a738437c (Unity) ExecutePlayerLoop
    16. 0x00007ff7a7384453 (Unity) ExecutePlayerLoop
    17. 0x00007ff7a738a099 (Unity) PlayerLoop
    18. 0x00007ff7a82d0d78 (Unity) PlayerLoopController::UpdateScene
    19. 0x00007ff7a82cef5f (Unity) Application::TickTimer
    20. 0x00007ff7a871aa4a (Unity) MainMessageLoop
    21. 0x00007ff7a871f2fb (Unity) WinMain
    22. 0x00007ff7a9a518ee (Unity) __scrt_common_main_seh
    23. 0x00007ffaba867034 (KERNEL32) BaseThreadInitThunk
    24. 0x00007ffabb902651 (ntdll) RtlUserThreadStart
    25.  
    26.  
    27. =================================================================
    28.     Native Crash Reporting
    29. =================================================================
    30. Got a UNKNOWN while executing native code. This usually indicates
    31. a fatal error in the mono runtime or one of the native libraries
    32. used by your application.
    33. =================================================================
    34.  
    35. =================================================================
    36.     Managed Stacktrace:
    37. =================================================================
    38. =================================================================
    39. Received signal SIGSEGV
    40. Obtained 17 stack frames
    41. 0x00007ff7a7bdf85d (Unity) audio::mixer::UpdateAudioMixerMemory
    42. 0x00007ff7a7bdd867 (Unity) audio::mixer::CreateAudioMixerMemory
    43. 0x00007ff7a7bb2eaa (Unity) AudioMixer::EnsureValidRuntime
    44. 0x00007ff7a7bc3723 (Unity) AudioMixer::Update
    45. 0x00007ff7a7bc338a (Unity) AudioManager::Update
    46. 0x00007ff7a7b87ce1 (Unity) AudioModule::Update
    47. 0x00007ff7a7b8774b (Unity) `InitializeAudioManagerCallbacks'::`2'::postLateUpdateUpdateAudioRegistrator::Forward
    48. 0x00007ff7a738437c (Unity) ExecutePlayerLoop
    49. 0x00007ff7a7384453 (Unity) ExecutePlayerLoop
    50. 0x00007ff7a738a099 (Unity) PlayerLoop
    51. 0x00007ff7a82d0d78 (Unity) PlayerLoopController::UpdateScene
    52. 0x00007ff7a82cef5f (Unity) Application::TickTimer
    53. 0x00007ff7a871aa4a (Unity) MainMessageLoop
    54. 0x00007ff7a871f2fb (Unity) WinMain
    55. 0x00007ff7a9a518ee (Unity) __scrt_common_main_seh
    56. 0x00007ffaba867034 (KERNEL32) BaseThreadInitThunk
    57. 0x00007ffabb902651 (ntdll) RtlUserThreadStart

    If anyone could help me trace the issue I'd be eternally grateful.
     
    Last edited: Jun 27, 2022
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    Are you sure the crash is from TMP? The stacktrace seems to imply it's related to audio.
    Something to do with the audio mixer? Maybe take a look at any audio sources you have and see if anything is broken. If you can reproduce the error then a bug report would be great.
     
  3. doganakdag

    doganakdag

    Joined:
    Oct 25, 2019
    Posts:
    14
    I have the same problems in my Android build with 2021.3.9f1. It is about AudioMixer. I was developing my project in 2020.1.17f1 almost a year and I had to upgrade it to use new network features of 2021 and stuck at this problem. Any idea?
     
  4. LymanInBole

    LymanInBole

    Joined:
    Dec 31, 2020
    Posts:
    8
    I have simular problems in my Android build with 2021.3.11f1. It's seem about AudioMixer.
    Will crash in Editor when loading assetbundle for android.
    Also crash in mobile

    audio::mixer::UpdateAudioMixerMemory(audio::mixer::AudioMixerConstant const&, audio::mixer::AudioMixerMemory&, float, FMOD::System*, float)
    ??:?
    audio::mixer::CreateAudioMixerMemory(audio::mixer::AudioMixerConstant const&, FMOD::System*, RuntimeBaseAllocator&, int, bool, char const*)
    ??:?
    AudioMixer::EnsureValidRuntime()
    ??:?
    AudioMixer::Update(float)
    ??:?
    AudioManager::Update()
    ??:?
    AudioModule::Update()
    ??:?
    ExecutePlayerLoop(NativePlayerLoopSystem*)
    ??:?
    ExecutePlayerLoop(NativePlayerLoopSystem*)
    ??:?
    PlayerLoop()
    ??:?
    UnityPlayerLoop()
    ??:?
    nativeRender(_JNIEnv*, _jobject*)
    ??:?
     
    Last edited: Oct 31, 2022
  5. LymanInBole

    LymanInBole

    Joined:
    Dec 31, 2020
    Posts:
    8
    My crash is the same with this.
    https://issuetracker.unity3d.com/is...pdateaudiomixermemory-when-entering-play-mode

    I got many "Invalid OffsetPtr access! Pointer is NULL" in editor log.