Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Assets/Scenes/SampleScene.unity“ scene
3. Enter Play Mode
4. Close the Editor
5. Observe the crash
Reproducible with: 2021.3.32f1, 2022.3.14f1, 2023.2.1f1, 2023.3.0a15
Reproduced on: Windows 10
Not reproducible on: No other environment tested
Notes:
1. When entering Play Mode, the application begins scanning for Bluetooth devices, which involves activating several threads
2. As a workaround, you can abort all active Bluetooth-related threads before shutting down these activities
First few lines of the stack trace:
0x0000022A2FA34E09 (Mono JIT Code) (wrapper managed-to-native) MovellaDotPcSdk.movelladot_pc_sdkPINVOKE:XsPortInfoArrayImpl_size (System.Runtime.InteropServices.HandleRef)
0x0000022A2FA34C53 (Mono JIT Code) MovellaDotPcSdk.XsPortInfoArrayImpl:size ()
0x0000022A2F9C73CB (Mono JIT Code) Movella.XdpcHandler:scanForDots (System.Action)
0x0000022A2F9C6CEB (Mono JIT Code) SensorsRecordingScript:<Awake>b__16_0 ()
0x00000229A0D9F372 (Mono JIT Code) System.Threading.ThreadHelper:ThreadStart_Context (object)