Reproduction steps:
1. Open the attached project “VivoxCrash“
2. Open the “VrScene“ Scene
3. Enter Play Mode
4. Wait until the “Player 0 Turn Started“ Log appears in the Console
5. Exit Play Mode
6. Observe the crash
Reproducible with: 15.1.190000-pre.1 (2022.2.9f1), 15.1.190200-pre.2 (2022.2.9f1), 15.1.190400-pre.1 (2022.2.9f1, 2023.1.0b7, 2023.2.0a6)
Could not test with: 15.1.190400-pre.1 (2020.3.45f1, 2021.3.20f1) (Invalid dependencies)
Reproduced on: macOS 13.0.1 (Intel), Windows 11 (User reported)
First few lines of the stack trace:
#0 0x000001699963c0 in CSharp_vx_req_sessiongroup_remove_session_t_session_handle_set
#1 0x000002b20080a8 in (wrapper managed-to-native) VivoxCoreInstancePINVOKE:vx_req_sessiongroup_remove_session_t_session_handle_set (System.Runtime.InteropServices.HandleRef,string) [
{0x7fbc2a909c08}
+ 0xb8] (0x2b2007ff0 0x2b2008170) [0x16bd82a80 - Unity Child Domain]
#2 0x00000172d6bfbc in mono_jit_runtime_invoke
#3 0x00000172f220a3 in do_runtime_invoke
#4 0x00000172f21fe0 in mono_runtime_invoke
#5 0x0000010d221d27 in scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
Note - These lines cause the crash (located in VivoxTest.cs):
channelSession.Disconnect();
loginSession.DeleteChannelSession(channelSession.Channel);
loginSession.Logout();