HeadphoneMotion icon indicating copy to clipboard operation
HeadphoneMotion copied to clipboard

Application crash after loading a new scene with Airpods connected

Open AldenBraverman opened this issue 2 years ago • 2 comments

I am having an issue with a crashing iOS application after loading a new scene with Airpods connected. Upon loading a new scene, without connecting Airpods, the application runs properly. However, as soon as Airpods are connected the application crashes. I am using Unity 2020.3.0f1, running iOS 14.6 on an iPhone 12 Pro. Below is the log collected from Xcode with the application crashing:

2021-08-23 19:09:26.697980-0400 airpods-plugin-debugging[10247:3918284] Built from '2020.3/staging' branch, Version '2020.3.0f1 (c7b5465681fb)', Build type 'Release', Scripting Backend 'il2cpp'
2021-08-23 19:09:26.702616-0400 airpods-plugin-debugging[10247:3918284] MemoryManager: Using 'Default' Allocator.
-> applicationDidFinishLaunching()
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A14 GPU
Initialize engine version: 2020.3.0f1 (c7b5465681fb)
2021-08-23 19:09:27.611487-0400 airpods-plugin-debugging[10247:3918284] Unbalanced calls to begin/end appearance transitions for <UnityViewControllerStoryboard: 0x13d307e50>.
UnloadTime: 3.378333 ms
2021-08-23 19:09:29.407236-0400 airpods-plugin-debugging[10247:3918284] HeadphoneMotion init complete
2021-08-23 19:09:29.407428-0400 airpods-plugin-debugging[10247:3918284] Set the headphone connection delegate
2021-08-23 19:09:29.407501-0400 airpods-plugin-debugging[10247:3918284] Set the rotation delegate
2021-08-23 19:09:29.407622-0400 airpods-plugin-debugging[10247:3918284] Motion is available. Started tracking motion
2021-08-23 19:09:29.531496-0400 airpods-plugin-debugging[10247:3918284] Headphones connected
2021-08-23 19:09:36.017451-0400 airpods-plugin-debugging[10247:3918284] Stopped tracking motion
2021-08-23 19:09:36.017978-0400 airpods-plugin-debugging[10247:3918284] Headphones disconnected
2021-08-23 19:09:37.220800-0400 airpods-plugin-debugging[10247:3918284] Motion is available. Started tracking motion
2021-08-23 19:09:37.242229-0400 airpods-plugin-debugging[10247:3918284] Headphones connected
-> applicationWillResignActive()
-> applicationDidBecomeActive()
-> applicationWillResignActive()
-> applicationDidBecomeActive()
Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 6.361625 ms
2021-08-23 19:09:49.988894-0400 airpods-plugin-debugging[10247:3918284] Set the headphone connection delegate
2021-08-23 19:09:49.989204-0400 airpods-plugin-debugging[10247:3918284] Set the rotation delegate
Headphone Motion Initialized!
HearXR.airpodsTracking:Start()

Checking if Headphone Motion is available...
HearXR.airpodsTracking:Start()

Headphone Motion Available!
HearXR.airpodsTracking:Start()

Headphone Motion Started Tracking!
HearXR.airpodsTracking:Start()

libc++abi: terminating with uncaught exception of type Il2CppExceptionWrapper
terminating with uncaught exception of type Il2CppExceptionWrapper
(lldb) 

AldenBraverman avatar Aug 23 '21 23:08 AldenBraverman

@AldenBraverman do you have a simple project which shows this issue that I could test out?

anastasiadevana avatar Sep 29 '21 17:09 anastasiadevana

The Unity Version of this project file is also 2020.3.0f1: https://www.dropbox.com/sh/o591zxr0424xceh/AAADAe_k2yg3XfXPQj19OBv0a?dl=0

AldenBraverman avatar Oct 04 '21 22:10 AldenBraverman