google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
354 stars 96 forks source link

Geospatial Samples in ARCore Extensions is force-quit as soon as it is launched on iPhone 12 Pro. #98

Closed tokufxug closed 2 years ago

tokufxug commented 2 years ago

Development environment

Devices used in the test

2022-10-20 17:27:35.594562+0900 GeospatialSample[44121:8812689] Built from '2020.3/staging' branch, Version '2020.3.28f1 (f5400f52e03f)', Build type 'Release', Scripting Backend 'il2cpp' 2022-10-20 17:27:35.596329+0900 GeospatialSample[44121:8812689] MemoryManager: Using 'Default' Allocator. -> applicationDidFinishLaunching() 2022-10-20 17:27:36.402983+0900 GeospatialSample[44121:8812689] fopen failed for data file: errno = 2 (No such file or directory) 2022-10-20 17:27:36.403123+0900 GeospatialSample[44121:8812689] Errors found! Invalidating cache... -> applicationDidBecomeActive() [Subsystems] Discovering subsystems at path /private/var/containers/Bundle/Application/B097C7ED-1765-4FB5-90C9-1A0C7E99418D/GeospatialSample.app/Data/UnitySubsystems [Subsystems] No descriptors matched for examples in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json. [Subsystems] 1 'inputs' descriptors matched in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json [Subsystems] No descriptors matched for displays in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json. [Subsystems] 1 'meshings' descriptors matched in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json GfxDevice: creating device client; threaded=1 Initializing Metal device caps: Apple A14 GPU Initialize engine version: 2020.3.28f1 (f5400f52e03f) The referenced script (Unknown) on this Behaviour is missing! The referenced script on this Behaviour (Game Object '') is missing! A scripted object (probably UnityEngine.XR.MagicLeap.MagicLeapSettings?) has a different serialization layout when loading. (Read 52 bytes but expected 76 bytes) Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts? XRGeneral Settings awakening... UnityEngine.XR.Management.XRGeneralSettings:Awake()

2022-10-20 17:27:38.554157+0900 GeospatialSample[44121:8812689] // 2D joint skeleton enum JointIndices { Invalid = -1, Head = 0, // parent: Neck1 [1] Neck1 = 1, // parent: Root [16] RightShoulder1 = 2, // parent: Neck1 [1] RightForearm = 3, // parent: RightShoulder1 [2] RightHand = 4, // parent: RightForearm [3] LeftShoulder1 = 5, // parent: Neck1 [1] LeftForearm = 6, // parent: LeftShoulder1 [5] LeftHand = 7, // parent: LeftForearm [6] RightUpLeg = 8, // parent: Root [16] RightLeg = 9, // parent: RightUpLeg [8] RightFoot = 10, // parent: RightLeg [9] LeftUpLeg = 11, // parent: Root [16] LeftLeg = 12, // parent: LeftUpLeg [11] LeftFoot = 13, // parent: LeftLeg [12] RightEye = 14, // parent: Head [0] LeftEye = 15, // parent: Head [0] Root = 16, // parent: [-1] } 2022-10-20 17:27:38.556578+0900 GeospatialSample[44121:8812689] // 3D joint skeleton enum JointIndices { Invalid = -1, Root = 0, // parent: [-1] Hips = 1, // parent: Root [0] LeftUpLeg = 2, // parent: Hips [1] LeftLeg = 3, // parent: LeftUpLeg [2] LeftFoot = 4, // parent: LeftLeg [3] LeftToes = 5, // parent: LeftFoot [4] LeftToesEnd = 6, // parent: LeftToes [5] RightUpLeg = 7, // parent: Hips [1] RightLeg = 8, // parent: RightUpLeg [7] RightFoot = 9, // parent: RightLeg [8] RightToes = 10, // parent: RightFoot [9] RightToesEnd = 11, // parent: RightToes [10] Spine1 = 12, // parent: Hips [1] Spine2 = 13, // parent: Spine1 [12] Spine3 = 14, // parent: Spine2 [13] Spine4 = 15, // parent: Spine3 [14] Spine5 = 16, // parent: Spine4 [15] Spine6 = 17, // parent: Spine5 [16] Spine7 = 18, // parent: Spine6 [17] LeftShoulder1 = 19, // parent: Spine7 [18] LeftArm = 20, // parent: LeftShoulder1 [19] LeftForearm = 21, // parent: LeftArm [20] LeftHand = 22, // parent: LeftForearm [21] LeftHandIndexStart = 23, // parent: LeftHand [22] LeftHandIndex1 = 24, // parent: LeftHandIndexStart [23] LeftHandIndex2 = 25, // parent: LeftHandIndex1 [24] LeftHandIndex3 = 26, // parent: LeftHandIndex2 [25] LeftHandIndexEnd = 27, // parent: LeftHandIndex3 [26] LeftHandMidStart = 28, // parent: LeftHand [22] LeftHandMid1 = 29, // parent: LeftHandMidStart [28] LeftHandMid2 = 30, // parent: LeftHandMid1 [29] LeftHandMid3 = 31, // parent: LeftHandMid2 [30] LeftHandMidEnd = 32, // parent: LeftHandMid3 [31] LeftHandPinkyStart = 33, // parent: LeftHand [22] LeftHandPinky1 = 34, // parent: LeftHandPinkyStart [33] LeftHandPinky2 = 35, // parent: LeftHandPinky1 [34] LeftHandPinky3 = 36, // parent: LeftHandPinky2 [35] LeftHandPinkyEnd = 37, // parent: LeftHandPinky3 [36] LeftHandRingStart = 38, // parent: LeftHand [22] LeftHandRing1 = 39, // parent: LeftHandRingStart [38] LeftHandRing2 = 40, // parent: LeftHandRing1 [39] LeftHandRing3 = 41, // parent: LeftHandRing2 [40] LeftHandRingEnd = 42, // parent: LeftHandRing3 [41] LeftHandThumbStart = 43, // parent: LeftHand [22] LeftHandThumb1 = 44, // parent: LeftHandThumbStart [43] LeftHandThumb2 = 45, // parent: LeftHandThumb1 [44] LeftHandThumbEnd = 46, // parent: LeftHandThumb2 [45] Neck1 = 47, // parent: Spine7 [18] Neck2 = 48, // parent: Neck1 [47] Neck3 = 49, // parent: Neck2 [48] Neck4 = 50, // parent: Neck3 [49] Head = 51, // parent: Neck4 [50] Jaw = 52, // parent: Head [51] Chin = 53, // parent: Jaw [52] LeftEye = 54, // parent: Head [51] LeftEyeLowerLid = 55, // parent: LeftEye [54] LeftEyeUpperLid = 56, // parent: LeftEye [54] LeftEyeball = 57, // parent: LeftEye [54] Nose = 58, // parent: Head [51] RightEye = 59, // parent: Head [51] RightEyeLowerLid = 60, // parent: RightEye [59] RightEyeUpperLid = 61, // parent: RightEye [59] RightEyeball = 62, // parent: RightEye [59] RightShoulder1 = 63, // parent: Spine7 [18] RightArm = 64, // parent: RightShoulder1 [63] RightForearm = 65, // parent: RightArm [64] RightHand = 66, // parent: RightForearm [65] RightHandIndexStart = 67, // parent: RightHand [66] RightHandIndex1 = 68, // parent: RightHandIndexStart [67] RightHandIndex2 = 69, // parent: RightHandIndex1 [68] RightHandIndex3 = 70, // parent: RightHandIndex2 [69] RightHandIndexEnd = 71, // parent: RightHandIndex3 [70] RightHandMidStart = 72, // parent: RightHand [66] RightHandMid1 = 73, // parent: RightHandMidStart [72] RightHandMid2 = 74, // parent: RightHandMid1 [73] RightHandMid3 = 75, // parent: RightHandMid2 [74] RightHandMidEnd = 76, // parent: RightHandMid3 [75] RightHandPinkyStart = 77, // parent: RightHand [66] RightHandPinky1 = 78, // parent: RightHandPinkyStart [77] RightHandPinky2 = 79, // parent: RightHandPinky1 [78] RightHandPinky3 = 80, // parent: RightHandPinky2 [79] RightHandPinkyEnd = 81, // parent: RightHandPinky3 [80] RightHandRingStart = 82, // parent: RightHand [66] RightHandRing1 = 83, // parent: RightHandRingStart [82] RightHandRing2 = 84, // parent: RightHandRing1 [83] RightHandRing3 = 85, // parent: RightHandRing2 [84] RightHandRingEnd = 86, // parent: RightHandRing3 [85] RightHandThumbStart = 87, // parent: RightHand [66] RightHandThumb1 = 88, // parent: RightHandThumbStart [87] RightHandThumb2 = 89, // parent: RightHandThumb1 [88] RightHandThumbEnd = 90, // parent: RightHandThumb2 [89] } [Subsystems] Loading plugin UnityARKit for subsystem ARKit-Input... [Subsystems] UnityARKit successfully registered Provider for ARKit-Input [Subsystems] UnityARKit successfully registered Provider for ARKit-Input [Subsystems] UnityARKit successfully registered Provider for ARKit-Meshing [Subsystems] Loading plugin UnityARKit for subsystem ARKit-Meshing... 2022-10-20 17:27:38.562220+0900 GeospatialSample[44121:8813277] fopen failed for data file: errno = 2 (No such file or directory) 2022-10-20 17:27:38.562250+0900 GeospatialSample[44121:8813277] Errors found! Invalidating cache... 2022-10-20 17:27:38.921473+0900 GeospatialSample[44121:8812689] Unbalanced calls to begin/end appearance transitions for <UnityDefaultViewController: 0x100906420>. 2022-10-20 17:27:38.922992+0900 GeospatialSample[44121:8812689] Unbalanced calls to begin/end appearance transitions for <UnityDefaultViewController: 0x100905490>. UnloadTime: 4.378667 ms Start location service. Google.XR.ARCoreExtensions.Samples.Geospatial.d__62:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) Google.XR.ARCoreExtensions.Samples.Geospatial.GeospatialController:OnEnable()

-> applicationWillResignActive() -> applicationDidBecomeActive() Creating a cross platform ARCore session with IOS Cloud Services API Key:API keys created in Google Cloud Google.XR.ARCoreExtensions.Internal.IOSSupportManager:CreateARCoreSession() Google.XR.ARCoreExtensions.Internal.IOSSupportManager:get_Instance() Google.XR.ARCoreExtensions.ARCoreExtensions:OnEnable() Google.XR.ARCoreExtensions.Samples.Geospatial.GeospatialController:SwitchToARView(Boolean) UnityEngine.Events.UnityAction:Invoke() UnityEngine.Events.UnityEvent:Invoke() UnityEngine.EventSystems.EventFunction1:Invoke(T1, BaseEventData) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction1) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents() UnityEngine.EventSystems.StandaloneInputModule:Process()

When I tried to start it again, it was immediately force-quit. 2022-10-20 17:29:59.768139+0900 GeospatialSample[44140:8814301] 9.6.0 - [FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. Add FirebaseApp.configure() to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)(or the@main` struct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8. 2022-10-20 17:29:59.769702+0900 GeospatialSample[44140:8814081] +[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x106593648 2022-10-20 17:29:59.770990+0900 GeospatialSample[44140:8814081] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x106593648' First throw call stack: (0x198dc1288 0x1b1af0744 0x198e9eef0 0x198d55e98 0x198d54f70 0x1052deea8 0x1052deaac 0x1052de6a8 0x1052e045c 0x105fa8e68 0x105fa8c88 0x105fa2fc0 0x105fa339c 0x1052176d4 0x105d455cc 0x105687b8c 0x105693188 0x1056a2ea8 0x1056a28f8 0x1056e5060 0x1056e4f20 0x105495348 0x1056f9968 0x105d9db30 0x1052176d4 0x105d455cc 0x105687b8c 0x105693188 0x1056a2ea8 0x1056a28f8 0x1056e4db8 0x1056e4bb4 0x1056e4b08 0x1055cd36c 0x1055cd658 0x1055ccf70 0x1055cd044 0x1055ccc50 0x1055cdef4 0x1055ce7e8 0x1059055a8 0x1051d3bb8 0x1051d3b20 0x19ca7a840 0x19cbd6834 0x19b97ed5c 0x19c005edc 0x19c0056a4 0x198de3414 0x198df41a0 0x198d2d694 0x198d3305c 0x198d46bc8 0x1b4eb1374 0x19b6bab58 0x19b43c090 0x1051d35e0 0x100a13e1c 0x100b5dda4) 2022-10-20 17:29:59.786087+0900 GeospatialSample[44140:8814081] Uncaught exception: NSInvalidArgumentException: +[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x106593648 ( 0 CoreFoundation 0x0000000198dc129c 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 627356 1 libobjc.A.dylib 0x00000001b1af0744 objc_exception_throw + 60 2 CoreFoundation 0x0000000198e9eef0 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 1535728 3 CoreFoundation 0x0000000198d55e98 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 188056 4 CoreFoundation 0x0000000198d54f70 _CF_forwarding_prep_0 + 96 5 UnityFramework 0x00000001052deea8 -[GARSession setupWithHal:cloudAnchorManager:logger:configurationManager:apiKey:bundleIdentifier:sessionManagerCreator:options:] + 736 6 UnityFramework 0x00000001052deaac -[GARSession initWithAPIKey:bundleIdentifier:hal:logger:configurationManager:cloudAnchorManager:sessionManagerCreator:options:error:] + 268 7 UnityFramework 0x00000001052de6a8 +[GARSession sessionWithAPIKey:bundleIdentifier:error:] + 152 8 UnityFramework 0x00000001052e045c ArSession_create + 188 9 UnityFramework 0x0000000105fa8e68 ExternApi_ArSession_create_m85E751BF65099288C9AE0B74882A953831053B08 + 60 10 UnityFramework 0x0000000105fa8c88 IOSSupportManager_CreateARCoreSession_mB3DD42A2692FD658B8CDA039ED3872592712D52E + 356 11 UnityFramework 0x0000000105fa2fc0 IOSSupportManager_get_Instance_mF74A18977B4C34F0B31914E3168CE0A579AC56C3 + 112 12 UnityFramework 0x0000000105fa339c ARCoreExtensions_OnEnable_m184B3D9FF04AE6A9722B654DA85F02873CCF5C53 + 48 13 UnityFramework 0x00000001052176d4 _Z65RuntimeInvoker_TrueVoidt700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5PFvvEPK10MethodInfoPvPS4 + 20 14 UnityFramework 0x0000000105d455cc _ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException + 116 15 UnityFramework 0x0000000105687b8c _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb + 124 16 UnityFramework 0x0000000105693188 _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb + 120 17 UnityFramework 0x00000001056a2ea8 _ZN13MonoBehaviour12AddToManagerEv + 448 18 UnityFramework 0x00000001056a28f8 _ZN13MonoBehaviour13AwakeFromLoadE17AwakeFromLoadMode + 668 19 UnityFramework 0x00000001056e5060 _ZN18AwakeFromLoadQueue19InvokeAwakeFromLoadEPNS_4ItemEj17AwakeFromLoadMode + 164 20 UnityFramework 0x00000001056e4f20 _ZN18AwakeFromLoadQueue22AwakeFromLoadAllQueuesE17AwakeFromLoadModeb + 108 21 UnityFramework 0x0000000105495348 _ZN10GameObject24ActivateAwakeRecursivelyE19DeactivateOperation + 80 22 UnityFramework 0x00000001056f9968 _Z27GameObject_CUSTOM_SetActiveP37ScriptingBackendNativeObjectPtrOpaqueh + 96 23 UnityFramework 0x0000000105d9db30 GeospatialController_SwitchToARView_mB6B856087CA02DDE3DC4CA815D897EC68CD54D0A + 120 24 UnityFramework 0x00000001052176d4 _Z65RuntimeInvoker_TrueVoidt700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5PFvvEPK10MethodInfoPvPS4 + 20 25 UnityFramework 0x0000000105d455cc _ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException + 116 26 UnityFramework 0x0000000105687b8c _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb + 124 27 UnityFramework 0x0000000105693188 _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb + 120 28 UnityFramework 0x00000001056a2ea8 _ZN13MonoBehaviour12AddToManagerEv + 448 29 UnityFramework 0x00000001056a28f8 _ZN13MonoBehaviour13AwakeFromLoadE17AwakeFromLoadMode + 668 30 UnityFramework 0x00000001056e4db8 _ZN18AwakeFromLoadQueue28InvokePersistentManagerAwakeEPNS_4ItemEj17AwakeFromLoadModeb + 340 31 UnityFramework 0x00000001056e4bb4 _ZN18AwakeFromLoadQueue30PersistentManagerAwakeFromLoadEi17AwakeFromLoadModeb + 148 32 UnityFramework 0x00000001056e4b08 _ZN18AwakeFromLoadQueue30PersistentManagerAwakeFromLoadEP24ErrorsAndWarningsCaptureb + 40 33 UnityFramework 0x00000001055cd36c _ZN18LoadSceneOperation21CompleteAwakeSequenceEv + 144 34 UnityFramework 0x00000001055cd658 _ZN18LoadSceneOperation31CompletePreloadManagerLoadSceneEv + 36 35 UnityFramework 0x00000001055ccf70 _ZN18LoadSceneOperation25PlayerLoadSceneFromThreadEv + 588 36 UnityFramework 0x00000001055cd044 _ZN18LoadSceneOperation22CompleteLoadFirstSceneEv + 12 37 UnityFramework 0x00000001055ccc50 _ZN18LoadSceneOperation19IntegrateMainThreadEv + 132 38 UnityFramework 0x00000001055cdef4 _ZN14PreloadManager26UpdatePreloadingSingleStepENS_21UpdatePreloadingFlagsEi + 224 39 UnityFramework 0x00000001055ce7e8 _ZN14PreloadManager16UpdatePreloadingEv + 276 40 UnityFramework 0x00000001059055a8 _ZL19UnityPlayerLoopImplb + 280 41 UnityFramework 0x00000001051d3bb8 -[UnityAppController(Rendering) repaint] + 108 42 UnityFramework 0x00000001051d3b20 -[UnityAppController(Rendering) repaintDisplayLink] + 108 43 QuartzCore 0x000000019ca7a840 DF21293E-9DBF-37A5-8506-D0C7F3D8646C + 67648 44 QuartzCore 0x000000019cbd6834 DF21293E-9DBF-37A5-8506-D0C7F3D8646C + 1493044 45 UIKitCore 0x000000019b97ed5c 137A95AA-DA6D-332C-BC01-E13BB9B6E317 + 8228188 46 UIKitCore 0x000000019c005edc 137A95AA-DA6D-332C-BC01-E13BB9B6E317 + 15072988 47 UIKitCore 0x000000019c0056a4 137A95AA-DA6D-332C-BC01-E13BB9B6E317 + 15070884 48 CoreFoundation 0x0000000198de3414 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 766996 49 CoreFoundation 0x0000000198df41a0 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 836000 50 CoreFoundation 0x0000000198d2d694 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 22164 51 CoreFoundation 0x0000000198d3305c 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 45148 52 CoreFoundation 0x0000000198d46bc8 CFRunLoopRunSpecific + 600 53 GraphicsServices 0x00000001b4eb1374 GSEventRunModal + 164 54 UIKitCore 0x000000019b6bab58 137A95AA-DA6D-332C-BC01-E13BB9B6E317 + 5327704 55 UIKitCore 0x000000019b43c090 UIApplicationMain + 364 56 UnityFramework 0x00000001051d35e0 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 108 57 GeospatialSample 0x0000000100a13e1c main + 68 58 dyld 0x0000000100b5dda4 start + 520 ) libc++abi: terminating with uncaught exception of type NSException warning: could not find Objective-C class data in the process. This may reduce the quality of type information available. dyld4 config: DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x106593648' (lldb)

Any suggestions on how to resolve the error would be appreciated. Thanks.

jrullman commented 2 years ago

Please try with Xcode 14 - ARCore requires at least Xcode 13 for now, which will soon move to 14. 12.4 is too old.

If that doesn't fix the issue, check your "Other linker flags" - you should see a flag "-ObjC", which is always added automatically by CocoaPods.

tokufxug commented 2 years ago

@jrullman XCode has been updated to 14.0.1. Added "-ObjC" to "Other linker flags". However, I get the same problem.

スクリーンショット 2022-10-21 20 26 58

2022-10-21 20:23:02.714640+0900 GeospatialSample[49621:9147192] 9.6.0 - [FirebaseRemoteConfig][I-RCN000072] New config database created. Resetting user defaults. 2022-10-21 20:23:02.718396+0900 GeospatialSample[49621:9147192] 9.6.0 - [FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. Add FirebaseApp.configure() to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)(or the@main` struct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8. 2022-10-21 20:23:02.719310+0900 GeospatialSample[49621:9146732] +[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x106184598 2022-10-21 20:23:02.721931+0900 GeospatialSample[49621:9146732] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x106184598' First throw call stack: (0x198dc1288 0x1b1af0744 0x198e9eef0 0x198d55e98 0x198d54f70 0x104ed9688 0x104ed928c 0x104ed8e88 0x104edac3c 0x105b9d654 0x105b9d474 0x105b977e4 0x105b97bc0 0x104e122a0 0x10593fd1c 0x10528230c 0x10528d908 0x10529d628 0x10529d078 0x1052df7e0 0x1052df6a0 0x10508fac8 0x1052f40e8 0x1059981e0 0x105c4849c 0x105c48b6c 0x105b1ea9c 0x1059f77f4 0x105ca5778 0x105ca4d6c 0x105ca4a90 0x104e122a0 0x10593fd1c 0x10528230c 0x10528d908 0x10529b228 0x10511f608 0x1051bc4cc 0x1051bc50c 0x1051bc7d8 0x1054ffc50 0x104dcfa10 0x104dcf9a0 0x19ca7a840 0x19cbd6834 0x19b97ed5c 0x19c005edc 0x19c0056a4 0x198de3414 0x198df41a0 0x198d2d694 0x198d3305c 0x198d46bc8 0x1b4eb1374 0x19b6bab58 0x19b43c090 0x104dcf544 0x10222046c 0x102831da4) 2022-10-21 20:23:02.746531+0900 GeospatialSample[49621:9146732] Uncaught exception: NSInvalidArgumentException: +[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x106184598 ( 0 CoreFoundation 0x0000000198dc129c 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 627356 1 libobjc.A.dylib 0x00000001b1af0744 objc_exception_throw + 60 2 CoreFoundation 0x0000000198e9eef0 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 1535728 3 CoreFoundation 0x0000000198d55e98 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 188056 4 CoreFoundation 0x0000000198d54f70 _CF_forwarding_prep_0 + 96 5 UnityFramework 0x0000000104ed9688 -[GARSession setupWithHal:cloudAnchorManager:logger:configurationManager:apiKey:bundleIdentifier:sessionManagerCreator:options:] + 736 6 UnityFramework 0x0000000104ed928c -[GARSession initWithAPIKey:bundleIdentifier:hal:logger:configurationManager:cloudAnchorManager:sessionManagerCreator:options:error:] + 268 7 UnityFramework 0x0000000104ed8e88 +[GARSession sessionWithAPIKey:bundleIdentifier:error:] + 152 8 UnityFramework 0x0000000104edac3c ArSession_create + 188 9 UnityFramework 0x0000000105b9d654 ExternApi_ArSession_create_m85E751BF65099288C9AE0B74882A953831053B08 + 60 10 UnityFramework 0x0000000105b9d474 IOSSupportManager_CreateARCoreSession_mB3DD42A2692FD658B8CDA039ED3872592712D52E + 356 11 UnityFramework 0x0000000105b977e4 IOSSupportManager_get_Instance_mF74A18977B4C34F0B31914E3168CE0A579AC56C3 + 112 12 UnityFramework 0x0000000105b97bc0 ARCoreExtensions_OnEnable_m184B3D9FF04AE6A9722B654DA85F02873CCF5C53 + 48 13 UnityFramework 0x0000000104e122a0 _Z65RuntimeInvoker_TrueVoidt700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5PFvvEPK10MethodInfoPvPS4 + 20 14 UnityFramework 0x000000010593fd1c _ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException + 116 15 UnityFramework 0x000000010528230c _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb + 124 16 UnityFramework 0x000000010528d908 _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb + 120 17 UnityFramework 0x000000010529d628 _ZN13MonoBehaviour12AddToManagerEv + 448 18 UnityFramework 0x000000010529d078 _ZN13MonoBehaviour13AwakeFromLoadE17AwakeFromLoadMode + 668 19 UnityFramework 0x00000001052df7e0 _ZN18AwakeFromLoadQueue19InvokeAwakeFromLoadEPNS_4ItemEj17AwakeFromLoadMode + 164 20 UnityFramework 0x00000001052df6a0 _ZN18AwakeFromLoadQueue22AwakeFromLoadAllQueuesE17AwakeFromLoadModeb + 108 21 UnityFramework 0x000000010508fac8 _ZN10GameObject24ActivateAwakeRecursivelyE19DeactivateOperation + 80 22 UnityFramework 0x00000001052f40e8 _Z27GameObject_CUSTOM_SetActiveP37ScriptingBackendNativeObjectPtrOpaqueh + 96 23 UnityFramework 0x00000001059981e0 GeospatialController_SwitchToARView_mB6B856087CA02DDE3DC4CA815D897EC68CD54D0A + 120 24 UnityFramework 0x0000000105c4849c UnityAction_Invoke_mFFF1FFE59D8285F8A81350E6D5C4D791F44F6AC9 + 276 25 UnityFramework 0x0000000105c48b6c UnityEvent_Invoke_mDA46AA9786AD4C34211C6C6ADFB0963DFF430AF5 + 384 26 UnityFramework 0x0000000105b1ea9c EventFunction_1_Invoke_mABDD3477D1119860783D5F9F20AB8E9996113F2D_gshared + 424 27 UnityFramework 0x00000001059f77f4 ExecuteEvents_Execute_TisRuntimeObject_m20F4B1FD39A6BA916CF0A469A0D71DE4DC727B26_gshared + 356 28 UnityFramework 0x0000000105ca5778 StandaloneInputModule_ProcessTouchPress_m1ACFC2288CC51BD8C85C6894994923B1762B0B49 + 1280 29 UnityFramework 0x0000000105ca4d6c StandaloneInputModule_ProcessTouchEvents_m2C06F4FED9D3F300031E889330180C5004034DBA + 252 30 UnityFramework 0x0000000105ca4a90 StandaloneInputModule_Process_mEA8D89C754B958916467AEB75592670B15519D98 + 48 31 UnityFramework 0x0000000104e122a0 _Z65RuntimeInvoker_TrueVoidt700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5PFvvEPK10MethodInfoPvPS4 + 20 32 UnityFramework 0x000000010593fd1c _ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException + 116 33 UnityFramework 0x000000010528230c _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb + 124 34 UnityFramework 0x000000010528d908 _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb + 120 35 UnityFramework 0x000000010529b228 _ZN13MonoBehaviour16CallUpdateMethodEi + 272 36 UnityFramework 0x000000010511f608 _ZN20BaseBehaviourManager12CommonUpdateI16BehaviourManagerEEvv + 228 37 UnityFramework 0x00000001051bc4cc _Z17ExecutePlayerLoopP22NativePlayerLoopSystem + 100 38 UnityFramework 0x00000001051bc50c _Z17ExecutePlayerLoopP22NativePlayerLoopSystem + 164 39 UnityFramework 0x00000001051bc7d8 _Z10PlayerLoopv + 272 40 UnityFramework 0x00000001054ffc50 _ZL19UnityPlayerLoopImplb + 112 41 UnityFramework 0x0000000104dcfa10 -[UnityAppController(Rendering) repaint] + 84 42 UnityFramework 0x0000000104dcf9a0 -[UnityAppController(Rendering) repaintDisplayLink] + 76 43 QuartzCore 0x000000019ca7a840 DF21293E-9DBF-37A5-8506-D0C7F3D8646C + 67648 44 QuartzCore 0x000000019cbd6834 DF21293E-9DBF-37A5-8506-D0C7F3D8646C + 1493044 45 UIKitCore 0x000000019b97ed5c 137A95AA-DA6D-332C-BC01-E13BB9B6E317 + 8228188 46 UIKitCore 0x000000019c005edc 137A95AA-DA6D-332C-BC01-E13BB9B6E317 + 15072988 47 UIKitCore 0x000000019c0056a4 137A95AA-DA6D-332C-BC01-E13BB9B6E317 + 15070884 48 CoreFoundation 0x0000000198de3414 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 766996 49 CoreFoundation 0x0000000198df41a0 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 836000 50 CoreFoundation 0x0000000198d2d694 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 22164 51 CoreFoundation 0x0000000198d3305c 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 45148 52 CoreFoundation 0x0000000198d46bc8 CFRunLoopRunSpecific + 600 53 GraphicsServices 0x00000001b4eb1374 GSEventRunModal + 164 54 UIKitCore 0x000000019b6bab58 137A95AA-DA6D-332C-BC01-E13BB9B6E317 + 5327704 55 UIKitCore 0x000000019b43c090 UIApplicationMain + 364 56 UnityFramework 0x0000000104dcf544 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 92 57 GeospatialSample 0x000000010222046c main + 60 58 dyld 0x0000000102831da4 start + 520 ) libc++abi: terminating with uncaught exception of type NSException dyld4 config: DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x106184598'

jrullman commented 2 years ago

How did you install the SDK? Did you open the project file or the workspace file? What is your Cocoapods version? (pod --version)

tokufxug commented 2 years ago

@jrullman

How did you install the SDK? Did you open the project file or the workspace file?

From the Unity Editor's Package Manager, go to Add package from git URL... and imported it by specifying https://github.com/google-ar/arcore-unity-extensions.git. I then imported a Sample of Geospatial from ARCore Extensions.

What is your Cocoapods version? (pod --version)

1.10.1

tokufxug commented 2 years ago

@jrullman I have upgraded Cocoapods to version 1.11.3 and built. The app is working without force close, but the camera frame rate is quite slow I'm uploading it to YouTube. (Video below). https://www.youtube.com/shorts/D8MtxcAl_y0

jrullman commented 2 years ago

Are you running it on a phone with the Debug build configuration? I would recommend using Release so that optimizations are applied; they can make a big difference with AR.

tokufxug commented 2 years ago

@jrullman The YouTube video we shared yesterday is the application that performed the Release build.

スクリーンショット 2022-10-25 16 28 47
jrullman commented 2 years ago

This seems to be an AR Foundation issue; see "Known issues" here: https://github.com/google-ar/arcore-unity-extensions/releases/tag/v1.34.0

tokufxug commented 2 years ago

@jrullman Thanks for the info. My iPhone 12 Pro had iOS 15.6 and I had the problem listed under "Known issues". I changed the AR Foundation, ARCore XR Plugin and ARKit XR Plugin versions to 4.2.2 and it worked fine. Camera frame rate is also stable. Thank you very much!