Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

Help Wanted AR Foundation Example Throws Null Ref Exception At Start

Discussion in 'Unity Render Streaming' started by RendergonPolygons, Nov 27, 2021.

  1. RendergonPolygons

    RendergonPolygons

    Joined:
    Oct 9, 2019
    Posts:
    77
    Hello all

    The AR Foundation example throws when Xcode starts the app on iPhone. This is my setup:

    - Unity 2020.2.7f1 on macOS Monterey 12.0.1
    - iPhone 6s and 12
    - AR foundation package 4.0
    - The project downloads with ARKit turned off. I tried with ARKit both on and off (Project Settings-XRPlugin Management-ARkit and ARKit required)
    - I didn't change anything in the example other than turning on ARKit
    - I see the ARFoundationbSample gameobject in the scene has a script component ARFoundationSample and its first property "StreamingRender" has nothing assigned to it, not sure if this is the cause. I tried assigning the ARFoundationSample gameobject itself but still threw when built.
    - webserver is running and worked moments earlier with the webbrowserinput example

    Log:
    Code (CSharp):
    1. 2021-11-27 08:53:35.578540+0000 MyAppName[408:12054] Unbalanced calls to begin/end appearance transitions for <UnityViewControllerStoryboard: 0x101351e40>.
    2. UnloadTime: 5.628208 ms
    3. NullReferenceException: Object reference not set to an instance of an object.
    4.   at Unity.RenderStreaming.Samples.ARFoundationSample+<Start>d__17.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
    5.   at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
    6.  
    7. Configuration Descriptor 0x1ed439a70 (rank 2): Rotation and Orientation, Plane Tracking, Light Estimation (Ambient Intensity), Light Estimation (Ambient Color), Raycast
    8. Configuration Descriptor 0x1ed4399a8 (rank 0): World Facing Camera, Rotation and Orientation, Plane Tracking, Image Tracking, Object Tracking, Environment Probes, Collaboration, Auto-Focus, Light Estimation (Ambient Intensity), Light Estimation (Ambient Color), Raycast
    9. Configuration Descriptor 0x1f16cbfa8 (rank 1): World Facing Camera, Rotation Only, Auto-Focus, Light Estimation (Ambient Intensity), Light Estimation (Ambient Color)
    10. Configuration Descriptor 0x1ed439660 (rank 1): World Facing Camera, Rotation Only, Image Tracking, Auto-Focus, Light Estimation (Ambient Intensity), Light Estimation (Ambient Color)
    11. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    12. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    13. UnityEngine.Logger:Log(LogType, Object)
    14. UnityEngine.Debug:Log(Object)
    15. UnityEngine.XR.ARSubsystems.XRSessionSubsystem:DetermineConfiguration(Feature)
    16. UnityEngine.XR.ARSubsystems.XRSessionSubsystem:Update(XRSessionUpdateParams)
    17. UnityEngine.XR.ARFoundation.ARSession:Update()
    18.  
    19. Using session configuration 0x1ed4399a8
    20.     Requested Features: World Facing Camera, Rotation and Orientation, Auto-Focus
    21.     Supported Features: World Facing Camera, Rotation and Orientation, Auto-Focus
    22.     Requested features not satisfied: (None)
    23. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    24. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    25. UnityEngine.Logger:Log(LogType, Object)
    26. UnityEngine.Debug:Log(Object)
    27. UnityEngine.XR.ARSubsystems.XRSessionSubsystem:DebugPrintConfigurationChange(Configuration, Feature)
    28. UnityEngine.XR.ARSubsystems.XRSessionSubsystem:Update(XRSessionUpdateParams)
    29. UnityEngine.XR.ARFoundation.ARSession:Update()
    30.  
    31. 2021-11-27 08:53:37.896328+0000 MyAppName[408:12054] UnityARKit: Updating ARSession configuration with <ARWorldTrackingConfiguration: 0x282181c80 worldAlignment=Gravity lightEstimation=Disabled frameSemantics=None videoFormat=<ARVideoFormat: 0x2837ada90 imageResolution=(1920, 1080) framesPerSecond=(60)> autoFocus=Enabled environmentTexturing=None wantsHDREnvironmentTextures=Enabled planeDetection=None collaboration=Disabled userFaceTracking=Disabled sceneReconstruction=None appClipCodeTracking=Disabled>
    32. 2021-11-27 08:53:37.901898+0000 MyAppName[408:12054] UnityARKit: Updating ARSession configuration with <ARWorldTrackingConfiguration: 0x282181c80 worldAlignment=Gravity lightEstimation=Disabled frameSemantics=None videoFormat=<ARVideoFormat: 0x2837ada90 imageResolution=(1920, 1080) framesPerSecond=(60)> autoFocus=Enabled environmentTexturing=None wantsHDREnvironmentTextures=Enabled planeDetection=None collaboration=Disabled userFaceTracking=Disabled sceneReconstruction=None appClipCodeTracking=Disabled>
    33. 2021-11-27 08:53:37.918921+0000 MyAppName[408:12054] UnityARKit: Updating ARSession configuration with <ARWorldTrackingConfiguration: 0x282182100 worldAlignment=Gravity lightEstimation=Disabled frameSemantics=None videoFormat=<ARVideoFormat: 0x2837ada90 imageResolution=(1920, 1080) framesPerSecond=(60)> autoFocus=Enabled environmentTexturing=None wantsHDREnvironmentTextures=Enabled planeDetection=None collaboration=Disabled userFaceTracking=Disabled sceneReconstruction=None appClipCodeTracking=Disabled>
    34. 2021-11-27 08:53:37.931924+0000 MyAppName[408:12054] UnityARKit: Updating ARSession configuration with <ARWorldTrackingConfiguration: 0x282181980 worldAlignment=Gravity lightEstimation=Disabled frameSemantics=None videoFormat=<ARVideoFormat: 0x2837ada90 imageResolution=(1920, 1080) framesPerSecond=(60)> autoFocus=Enabled environmentTexturing=None wantsHDREnvironmentTextures=Enabled planeDetection=None collaboration=Disabled userFaceTracking=Disabled sceneReconstruction=None appClipCodeTracking=Disabled>
    35. -> applicationWillResignActive()
    36. -> applicationDidBecomeActive()
    37. An input device ARKit with the TrackedDevice characteristic was registered but the ARPoseDriver is already consuming data from ARKit.
    38. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    39. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    40. UnityEngine.Logger:Log(LogType, Object)
    41. UnityEngine.Debug:LogWarning(Object)
    42. UnityEngine.XR.ARFoundation.ARPoseDriver:CheckConnectedDevice(InputDevice, Boolean)
    43. UnityEngine.XR.ARFoundation.ARPoseDriver:OnInputDeviceConnected(InputDevice)
    44. System.Action`1:Invoke(T)
    45. UnityEngine.XR.InputDevices:InvokeConnectionEvent(UInt64, ConnectionChangeType)
    46.  
    47. InvalidOperationException while executing 'canceled' callbacks of 'Quaternion[/ARKit/devicerotation]'
    48. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    49. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    50. UnityEngine.Logger:Log(LogType, Object)
    51. UnityEngine.Debug:LogError(Object)
    52. UnityEngine.InputSystem.Utilities.DelegateHelpers:InvokeCallbacksSafe(InlinedArray`1&, TValue, String, Object)
    53. UnityEngine.InputSystem.InputActionState:CallActionListeners(Int32, InputActionMap, InputActionPhase, InlinedArray`1&, String)
    54. UnityEngine.InputSystem.InputActionState:ChangePhaseOfActionInternal(Int32, TriggerState*, InputActionPhase, TriggerState&)
    55. UnityEngine.InputSystem.InputActionState:ChangePhaseOfAction(InputActionPhase, TriggerState&, InputActionPhase)
    56. UnityEngine.InputSystem.InputActionState:ResetActionState(Int32, InputActionPhase)
    57. UnityEngine.InputSystem.InputActionState:DisableAllActions(InputActionMap)
    58. UnityEngine.InputSystem.InputActionMap:ResolveBindings()
    59. UnityEngine.InputSystem.InputActionMap:LazyResolveBindings()
    60. UnityEngine.InputSystem.InputActionState:OnDeviceChange(InputDevice, InputDeviceChange)
    61. UnityEngine.InputSystem.InputManager:RemoveDevice(InputDevice, Boolean)
    62. UnityEngine.InputSystem.InputManager:RecreateDevice(InputDevice, InternedString)
    63. UnityEngine.InputSystem.InputManager:RecreateDevicesUsingLayout(InternedString, Boolean)
    64. UnityEngine.InputSystem.InputManager:PerformLayoutPostRegistration(InternedString, InlinedArray`1, Boolean, Boolean, Boolean)
    65. UnityEngine.InputSystem.InputManager:RegisterControlLayoutBuilder(Func`1, String, String)
    66. UnityEngine.InputSystem.InputSystem:RegisterLayoutBuilder(Func`1, String, String, Nullable`1)
    67. UnityEngine.InputSystem.XR.XRLayoutBuilder:OnFindLayoutForDevice(InputDeviceDescription&, String, InputDeviceExecuteCommandDelegate)
    68. UnityEngine.InputSystem.Layouts.InputDeviceFindControlLayoutDelegate:Invoke(InputDeviceDescription&, String, InputDeviceExecuteCommandDelegate)
    69. UnityEngine.InputSystem.InputManager:TryFindMatchingControlLayout(InputDeviceDescription&, Int32)
    70. UnityEngine.InputSystem.InputManager:AddDevice(InputDeviceDescription, Boolean, String, Int32, DeviceFlags)
    71. UnityEngine.InputSystem.InputManager:OnNativeDeviceDiscovered(Int32, String)
    72. System.Action`2:Invoke(T1, T2)
    73. UnityEngineInternal.Input.NativeInputSystem:NotifyDeviceDiscovered(Int32, String)
    74.  
    75. InvalidOperationException: Cannot query value of control '/ARKit/devicerotation' before 'ARKit' has been added to system!
    76.   at UnityEngine.InputSystem.InputControl.ResolveDeviceIndex () [0x00000] in <00000000000000000000000000000000>:0
    77.   at UnityEngine.InputSystem.InputControl.get_currentStatePtr () [0x00000] in <00000000000000000000000000000000>:0
    78.   at UnityEngine.InputSystem.InputControl`1[TValue].ReadValue () [0x00000] in <00000000000000000000000000000000>:0
    79.   at Unity.RenderStreaming.Samples.ARFoundationSample.UpdateQuaternion (UnityEngine.InputSystem.InputAction+CallbackContext context) [0x00000] in <00000000000000000000000000000000>:0
    80.   at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0
    81.   at UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.InlinedArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) [0x00000] in <00000000000000000000000000000000>:0
    82.   at UnityEngine.InputSystem.InputActionState.CallActionListeners (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionMap actionMap, UnityEngine.InputSystem.InputActionPhase phase, UnityEngine.InputSystem.Utilities.InlinedArray`1[System.Action`1[UnityEngine.InputSystem.InputAction+CallbackContext]]& listeners, System.String callbackName) [0x00000] in <00000000000000000000000000000000>:0
    83.   at UnityEngine.InputSystem.InputActionState.ChangePhaseOfActionInternal (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionState+TriggerState* actionState, UnityEngine.InputSystem.InputActionPhase newPhase, UnityEngine.InputSystem.InputActionState+TriggerState& trigger) [0x00000] in <00000000000000000000000000000000>:0
    84.   at UnityEngine.InputSystem.InputActionState.ChangePhaseOfAction (UnityEngine.InputSystem.InputActionPhase newPhase, UnityEngine.InputSystem.InputActionState+TriggerState& trigger, UnityEngine.InputSystem.InputActionPhase phaseAfterPerformedOrCanceled) [0x00000] in <00000000000000000000000000000000>:0
    85.   at UnityEngine.InputSystem.InputActionState.ResetActionState (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionPhase toPhase) [0x00000] in <00000000000000000000000000000000>:0
    86.   at UnityEngine.InputSystem.InputActionState.DisableAllActions (UnityEngine.InputSystem.InputActionMap map) [0x00000] in <00000000000000000000000000000000>:0
    87.   at UnityEngine.InputSystem.InputActionMap.ResolveBindings () [0x00000] in <00000000000000000000000000000000>:0
    88.   at UnityEngine.InputSystem.InputActionMap.LazyResolveBindings () [0x00000] in <00000000000000000000000000000000>:0
    89.   at UnityEngine.InputSystem.InputActionState.OnDeviceChange (UnityEngine.InputSystem.InputDevice device, UnityEngine.InputSystem.InputDeviceChange change) [0x00000] in <00000000000000000000000000000000>:0
    90.   at UnityEngine.InputSystem.InputManager.RemoveDevice (UnityEngine.InputSystem.InputDevice device, System.Boolean keepOnListOfAvailableDevices) [0x00000] in <00000000000000000000000000000000>:0
    91.   at UnityEngine.InputSystem.InputManager.RecreateDevice (UnityEngine.InputSystem.InputDevice oldDevice, UnityEngine.InputSystem.Utilities.InternedString newLayout) [0x00000] in <00000000000000000000000000000000>:0
    92.   at UnityEngine.InputSystem.InputManager.RecreateDevicesUsingLayout (UnityEngine.InputSystem.Utilities.InternedString layout, System.Boolean isKnownToBeDeviceLayout) [0x00000] in <00000000000000000000000000000000>:0
    93.   at UnityEngine.InputSystem.InputManager.PerformLayoutPostRegistration (UnityEngine.InputSystem.Utilities.InternedString layoutName, UnityEngine.InputSystem.Utilities.InlinedArray`1[TValue] baseLayouts, System.Boolean isReplacement, System.Boolean isKnownToBeDeviceLayout, System.Boolean isOverride) [0x00000] in <00000000000000000000000000000000>:0
    94.   at UnityEngine.InputSystem.InputManager.RegisterControlLayoutBuilder (System.Func`1[TResult] method, System.String name, System.String baseLayout) [0x00000] in <00000000000000000000000000000000>:0
    95.   at UnityEngine.InputSystem.InputSystem.RegisterLayoutBuilder (System.Func`1[TResult] buildMethod, System.String name, System.String baseLayout, System.Nullable`1[T] matches) [0x00000] in <00000000000000000000000000000000>:0
    96.   at UnityEngine.InputSystem.XR.XRLayoutBuilder.OnFindLayoutForDevice (UnityEngine.InputSystem.Layouts.InputDeviceDescription& description, System.String matchedLayout, UnityEngine.InputSystem.LowLevel.InputDeviceExecuteCommandDelegate executeCommandDelegate) [0x00000] in <00000000000000000000000000000000>:0
    97.   at UnityEngine.InputSystem.Layouts.InputDeviceFindControlLayoutDelegate.Invoke (UnityEngine.InputSystem.Layouts.InputDeviceDescription& description, System.String matchedLayout, UnityEngine.InputSystem.LowLevel.InputDeviceExecuteCommandDelegate executeDeviceCommand) [0x00000] in <00000000000000000000000000000000>:0
    98.   at UnityEngine.InputSystem.InputManager.TryFindMatchingControlLayout (UnityEngine.InputSystem.Layouts.InputDeviceDescription& deviceDescription, System.Int32 deviceId) [0x00000] in <00000000000000000000000000000000>:0
    99.   at UnityEngine.InputSystem.InputManager.AddDevice (UnityEngine.InputSystem.Layouts.InputDeviceDescription description, System.Boolean throwIfNoLayoutFound, System.String deviceName, System.Int32 deviceId, UnityEngine.InputSystem.InputDevice+DeviceFlags deviceFlags) [0x00000] in <00000000000000000000000000000000>:0
    100.   at UnityEngine.InputSystem.InputManager.OnNativeDeviceDiscovered (System.Int32 deviceId, System.String deviceDescriptor) [0x00000] in <00000000000000000000000000000000>:0
    101.   at System.Action`2[T1,T2].Invoke (T1 arg1, T2 arg2) [0x00000] in <00000000000000000000000000000000>:0
    102.   at UnityEngineInternal.Input.NativeInputSystem.NotifyDeviceDiscovered (System.Int32 deviceId, System.String deviceDescriptor) [0x00000] in <00000000000000000000000000000000>:0
    103. UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    104. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    105. UnityEngine.Logger:LogException(Exception, Object)
    106. UnityEngine.Debug:LogException(Exception)
    107. UnityEngine.InputSystem.Utilities.DelegateHelpers:InvokeCallbacksSafe(InlinedArray`1&, TValue, String, Object)
    108. UnityEngine.InputSystem.InputActionState:CallActionListeners(Int32, InputActionMap, InputActionPhase, InlinedArray`1&, String)
    109. UnityEngine.InputSystem.InputActionState:ChangePhaseOfActionInternal(Int32, TriggerState*, InputActionPhase, TriggerState&)
    110. UnityEngine.InputSystem.InputActionState:ChangePhaseOfAction(InputActionPhase, TriggerState&, InputActionPhase)
    111. UnityEngine.InputSystem.InputActionState:ResetActionState(Int32, InputActionPhase)
    112. UnityEngine.InputSystem.InputActionState:DisableAllActions(InputActionMap)
    113. UnityEngine.InputSystem.InputActionMap:ResolveBindings()
    114. UnityEngine.InputSystem.InputActionMap:LazyResolveBindings()
    115. UnityEngine.InputSystem.InputActionState:OnDeviceChange(InputDevice, InputDeviceChange)
    116. UnityEngine.InputSystem.InputManager:RemoveDevice(InputDevice, Boolean)
    117. UnityEngine.InputSystem.InputManager:RecreateDevice(InputDevice, InternedString)
    118. UnityEngine.InputSystem.InputManager:RecreateDevicesUsingLayout(InternedString, Boolean)
    119. UnityEngine.InputSystem.InputManager:PerformLayoutPostRegistration(InternedString, InlinedArray`1, Boolean, Boolean, Boolean)
    120. UnityEngine.InputSystem.InputManager:RegisterControlLayoutBuilder(Func`1, String, String)
    121. UnityEngine.InputSystem.InputSystem:RegisterLayoutBuilder(Func`1, String, String, Nullable`1)
    122. UnityEngine.InputSystem.XR.XRLayoutBuilder:OnFindLayoutForDevice(InputDeviceDescription&, String, InputDeviceExecuteCommandDelegate)
    123. UnityEngine.InputSystem.Layouts.InputDeviceFindControlLayoutDelegate:Invoke(InputDeviceDescription&, String, InputDeviceExecuteCommandDelegate)
    124. UnityEngine.InputSystem.InputManager:TryFindMatchingControlLayout(InputDeviceDescription&, Int32)
    125. UnityEngine.InputSystem.InputManager:AddDevice(InputDeviceDescription, Boolean, String, Int32, DeviceFlags)
    126. UnityEngine.InputSystem.InputManager:OnNativeDeviceDiscovered(Int32, String)
    127. System.Action`2:Invoke(T1, T2)
    128. UnityEngineInternal.Input.NativeInputSystem:NotifyDeviceDiscovered(Int32, String)
    129.  
    130. -> applicationWillResignActive()
    131. -> applicationDidBecomeActive()
    132. An input device ARKit with the TrackedDevice characteristic was registered but the ARPoseDriver is already consuming data from ARKit.
    133. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    134. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    135. UnityEngine.Logger:Log(LogType, Object)
    136. UnityEngine.Debug:LogWarning(Object)
    137. UnityEngine.XR.ARFoundation.ARPoseDriver:CheckConnectedDevice(InputDevice, Boolean)
    138. UnityEngine.XR.ARFoundation.ARPoseDriver:OnInputDeviceConnected(InputDevice)
    139. System.Action`1:Invoke(T)
    140. UnityEngine.XR.InputDevices:InvokeConnectionEvent(UInt64, ConnectionChangeType)
    141.  
    142. InvalidOperationException while executing 'canceled' callbacks of 'Position[/ARKit1/deviceposition,/ARKit/deviceposition]'
    143. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    144. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    145. UnityEngine.Logger:Log(LogType, Object)
    146. UnityEngine.Debug:LogError(Object)
    147. UnityEngine.InputSystem.Utilities.DelegateHelpers:InvokeCallbacksSafe(InlinedArray`1&, TValue, String, Object)
    148. UnityEngine.InputSystem.InputActionState:CallActionListeners(Int32, InputActionMap, InputActionPhase, InlinedArray`1&, String)
    149. UnityEngine.InputSystem.InputActionState:ChangePhaseOfActionInternal(Int32, TriggerState*, InputActionPhase, TriggerState&)
    150. UnityEngine.InputSystem.InputActionState:ChangePhaseOfAction(InputActionPhase, TriggerState&, InputActionPhase)
    151. UnityEngine.InputSystem.InputActionState:ResetActionState(Int32, InputActionPhase)
    152. UnityEngine.InputSystem.InputActionState:DisableAllActions(InputActionMap)
    153. UnityEngine.InputSystem.InputActionMap:ResolveBindings()
    154. UnityEngine.InputSystem.InputActionMap:LazyResolveBindings()
    155. UnityEngine.InputSystem.InputActionState:OnDeviceChange(InputDevice, InputDeviceChange)
    156. UnityEngine.InputSystem.InputManager:RemoveDevice(InputDevice, Boolean)
    157. UnityEngine.InputSystem.InputManager:OnUpdate(InputUpdateType, InputEventBuffer&)
    158. UnityEngine.InputSystem.LowLevel.InputUpdateDelegate:Invoke(InputUpdateType, InputEventBuffer&)
    159. UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    160. UnityEngineInternal.Input.NativeUpdateCallback:Invoke(NativeInputUpdateType, NativeInputEventBuffer*)
    161. UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
    162.  
    163. InvalidOperationException: Cannot query value of control '/ARKit1/deviceposition' before 'ARKit1' has been added to system!
    164.   at UnityEngine.InputSystem.InputControl.ResolveDeviceIndex () [0x00000] in <00000000000000000000000000000000>:0
    165.   at UnityEngine.InputSystem.InputControl.get_currentStatePtr () [0x00000] in <00000000000000000000000000000000>:0
    166.   at UnityEngine.InputSystem.InputControl`1[TValue].ReadValue () [0x00000] in <00000000000000000000000000000000>:0
    167.   at Unity.RenderStreaming.Samples.ARFoundationSample.UpdatePosition (UnityEngine.InputSystem.InputAction+CallbackContext context) [0x00000] in <00000000000000000000000000000000>:0
    168.   at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0
    169.   at UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.InlinedArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) [0x00000] in <00000000000000000000000000000000>:0
    170.   at UnityEngine.InputSystem.InputActionState.CallActionListeners (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionMap actionMap, UnityEngine.InputSystem.InputActionPhase phase, UnityEngine.InputSystem.Utilities.InlinedArray`1[System.Action`1[UnityEngine.InputSystem.InputAction+CallbackContext]]& listeners, System.String callbackName) [0x00000] in <00000000000000000000000000000000>:0
    171.   at UnityEngine.InputSystem.InputActionState.ChangePhaseOfActionInternal (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionState+TriggerState* actionState, UnityEngine.InputSystem.InputActionPhase newPhase, UnityEngine.InputSystem.InputActionState+TriggerState& trigger) [0x00000] in <00000000000000000000000000000000>:0
    172.   at UnityEngine.InputSystem.InputActionState.ChangePhaseOfAction (UnityEngine.InputSystem.InputActionPhase newPhase, UnityEngine.InputSystem.InputActionState+TriggerState& trigger, UnityEngine.InputSystem.InputActionPhase phaseAfterPerformedOrCanceled) [0x00000] in <00000000000000000000000000000000>:0
    173.   at UnityEngine.InputSystem.InputActionState.ResetActionState (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionPhase toPhase) [0x00000] in <00000000000000000000000000000000>:0
    174.   at UnityEngine.InputSystem.InputActionState.DisableAllActions (UnityEngine.InputSystem.InputActionMap map) [0x00000] in <00000000000000000000000000000000>:0
    175.   at UnityEngine.InputSystem.InputActionMap.ResolveBindings () [0x00000] in <00000000000000000000000000000000>:0
    176.   at UnityEngine.InputSystem.InputActionMap.LazyResolveBindings () [0x00000] in <00000000000000000000000000000000>:0
    177.   at UnityEngine.InputSystem.InputActionState.OnDeviceChange (UnityEngine.InputSystem.InputDevice device, UnityEngine.InputSystem.InputDeviceChange change) [0x00000] in <00000000000000000000000000000000>:0
    178.   at UnityEngine.InputSystem.InputManager.RemoveDevice (UnityEngine.InputSystem.InputDevice device, System.Boolean keepOnListOfAvailableDevices) [0x00000] in <00000000000000000000000000000000>:0
    179.   at UnityEngine.InputSystem.InputManager.OnUpdate (UnityEngine.InputSystem.LowLevel.InputUpdateType updateType, UnityEngine.InputSystem.LowLevel.InputEventBuffer& eventBuffer) [0x00000] in <00000000000000000000000000000000>:0
    180.   at UnityEngine.InputSystem.LowLevel.InputUpdateDelegate.Invoke (UnityEngine.InputSystem.LowLevel.InputUpdateType updateType, UnityEngine.InputSystem.LowLevel.InputEventBuffer& eventBuffer) [0x00000] in <00000000000000000000000000000000>:0
    181.   at UnityEngine.InputSystem.LowLevel.NativeInputRuntime+<>c__DisplayClass7_0.<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, UnityEngineInternal.Input.NativeInputEventBuffer* eventBufferPtr) [0x00000] in <00000000000000000000000000000000>:0
    182.   at UnityEngineInternal.Input.NativeUpdateCallback.Invoke (UnityEngineInternal.Input.NativeInputUpdateType updateType, UnityEngineInternal.Input.NativeInputEventBuffer* buffer) [0x00000] in <00000000000000000000000000000000>:0
    183.   at UnityEngineInternal.Input.NativeInputSystem.NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.IntPtr eventBuffer) [0x00000] in <00000000000000000000000000000000>:0
    184. UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    185. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    186. UnityEngine.Logger:LogException(Exception, Object)
    187. UnityEngine.Debug:LogException(Exception)
    188. UnityEngine.InputSystem.Utilities.DelegateHelpers:InvokeCallbacksSafe(InlinedArray`1&, TValue, String, Object)
    189. UnityEngine.InputSystem.InputActionState:CallActionListeners(Int32, InputActionMap, InputActionPhase, InlinedArray`1&, String)
    190. UnityEngine.InputSystem.InputActionState:ChangePhaseOfActionInternal(Int32, TriggerState*, InputActionPhase, TriggerState&)
    191. UnityEngine.InputSystem.InputActionState:ChangePhaseOfAction(InputActionPhase, TriggerState&, InputActionPhase)
    192. UnityEngine.InputSystem.InputActionState:ResetActionState(Int32, InputActionPhase)
    193. UnityEngine.InputSystem.InputActionState:DisableAllActions(InputActionMap)
    194. UnityEngine.InputSystem.InputActionMap:ResolveBindings()
    195. UnityEngine.InputSystem.InputActionMap:LazyResolveBindings()
    196. UnityEngine.InputSystem.InputActionState:OnDeviceChange(InputDevice, InputDeviceChange)
    197. UnityEngine.InputSystem.InputManager:RemoveDevice(InputDevice, Boolean)
    198. UnityEngine.InputSystem.InputManager:OnUpdate(InputUpdateType, InputEventBuffer&)
    199. UnityEngine.InputSystem.LowLevel.InputUpdateDelegate:Invoke(InputUpdateType, InputEventBuffer&)
    200. UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    201. UnityEngineInternal.Input.NativeUpdateCallback:Invoke(NativeInputUpdateType, NativeInputEventBuffer*)
    202. UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
    203.  
    204. InvalidOperationException while executing 'canceled' callbacks of 'Quaternion[/ARKit1/devicerotation,/ARKit/devicerotation]'
    205. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    206. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    207. UnityEngine.Logger:Log(LogType, Object)
    208. UnityEngine.Debug:LogError(Object)
    209. UnityEngine.InputSystem.Utilities.DelegateHelpers:InvokeCallbacksSafe(InlinedArray`1&, TValue, String, Object)
    210. UnityEngine.InputSystem.InputActionState:CallActionListeners(Int32, InputActionMap, InputActionPhase, InlinedArray`1&, String)
    211. UnityEngine.InputSystem.InputActionState:ChangePhaseOfActionInternal(Int32, TriggerState*, InputActionPhase, TriggerState&)
    212. UnityEngine.InputSystem.InputActionState:ChangePhaseOfAction(InputActionPhase, TriggerState&, InputActionPhase)
    213. UnityEngine.InputSystem.InputActionState:ResetActionState(Int32, InputActionPhase)
    214. UnityEngine.InputSystem.InputActionState:DisableAllActions(InputActionMap)
    215. UnityEngine.InputSystem.InputActionMap:ResolveBindings()
    216. UnityEngine.InputSystem.InputActionMap:LazyResolveBindings()
    217. UnityEngine.InputSystem.InputActionState:OnDeviceChange(InputDevice, InputDeviceChange)
    218. UnityEngine.InputSystem.InputManager:RemoveDevice(InputDevice, Boolean)
    219. UnityEngine.InputSystem.InputManager:OnUpdate(InputUpdateType, InputEventBuffer&)
    220. UnityEngine.InputSystem.LowLevel.InputUpdateDelegate:Invoke(InputUpdateType, InputEventBuffer&)
    221. UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    222. UnityEngineInternal.Input.NativeUpdateCallback:Invoke(NativeInputUpdateType, NativeInputEventBuffer*)
    223. UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
    224.  
    225. InvalidOperationException: Cannot query value of control '/ARKit1/devicerotation' before 'ARKit1' has been added to system!
    226.   at UnityEngine.InputSystem.InputControl.ResolveDeviceIndex () [0x00000] in <00000000000000000000000000000000>:0
    227.   at UnityEngine.InputSystem.InputControl.get_currentStatePtr () [0x00000] in <00000000000000000000000000000000>:0
    228.   at UnityEngine.InputSystem.InputControl`1[TValue].ReadValue () [0x00000] in <00000000000000000000000000000000>:0
    229.   at Unity.RenderStreaming.Samples.ARFoundationSample.UpdateQuaternion (UnityEngine.InputSystem.InputAction+CallbackContext context) [0x00000] in <00000000000000000000000000000000>:0
    230.   at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0
    231.   at UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.InlinedArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) [0x00000] in <00000000000000000000000000000000>:0
    232.   at UnityEngine.InputSystem.InputActionState.CallActionListeners (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionMap actionMap, UnityEngine.InputSystem.InputActionPhase phase, UnityEngine.InputSystem.Utilities.InlinedArray`1[System.Action`1[UnityEngine.InputSystem.InputAction+CallbackContext]]& listeners, System.String callbackName) [0x00000] in <00000000000000000000000000000000>:0
    233.   at UnityEngine.InputSystem.InputActionState.ChangePhaseOfActionInternal (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionState+TriggerState* actionState, UnityEngine.InputSystem.InputActionPhase newPhase, UnityEngine.InputSystem.InputActionState+TriggerState& trigger) [0x00000] in <00000000000000000000000000000000>:0
    234.   at UnityEngine.InputSystem.InputActionState.ChangePhaseOfAction (UnityEngine.InputSystem.InputActionPhase newPhase, UnityEngine.InputSystem.InputActionState+TriggerState& trigger, UnityEngine.InputSystem.InputActionPhase phaseAfterPerformedOrCanceled) [0x00000] in <00000000000000000000000000000000>:0
    235.   at UnityEngine.InputSystem.InputActionState.ResetActionState (System.Int32 actionIndex, UnityEngine.InputSystem.InputActionPhase toPhase) [0x00000] in <00000000000000000000000000000000>:0
    236.   at UnityEngine.InputSystem.InputActionState.DisableAllActions (UnityEngine.InputSystem.InputActionMap map) [0x00000] in <00000000000000000000000000000000>:0
    237.   at UnityEngine.InputSystem.InputActionMap.ResolveBindings () [0x00000] in <00000000000000000000000000000000>:0
    238.   at UnityEngine.InputSystem.InputActionMap.LazyResolveBindings () [0x00000] in <00000000000000000000000000000000>:0
    239.   at UnityEngine.InputSystem.InputActionState.OnDeviceChange (UnityEngine.InputSystem.InputDevice device, UnityEngine.InputSystem.InputDeviceChange change) [0x00000] in <00000000000000000000000000000000>:0
    240.   at UnityEngine.InputSystem.InputManager.RemoveDevice (UnityEngine.InputSystem.InputDevice device, System.Boolean keepOnListOfAvailableDevices) [0x00000] in <00000000000000000000000000000000>:0
    241.   at UnityEngine.InputSystem.InputManager.OnUpdate (UnityEngine.InputSystem.LowLevel.InputUpdateType updateType, UnityEngine.InputSystem.LowLevel.InputEventBuffer& eventBuffer) [0x00000] in <00000000000000000000000000000000>:0
    242.   at UnityEngine.InputSystem.LowLevel.InputUpdateDelegate.Invoke (UnityEngine.InputSystem.LowLevel.InputUpdateType updateType, UnityEngine.InputSystem.LowLevel.InputEventBuffer& eventBuffer) [0x00000] in <00000000000000000000000000000000>:0
    243.   at UnityEngine.InputSystem.LowLevel.NativeInputRuntime+<>c__DisplayClass7_0.<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, UnityEngineInternal.Input.NativeInputEventBuffer* eventBufferPtr) [0x00000] in <00000000000000000000000000000000>:0
    244.   at UnityEngineInternal.Input.NativeUpdateCallback.Invoke (UnityEngineInternal.Input.NativeInputUpdateType updateType, UnityEngineInternal.Input.NativeInputEventBuffer* buffer) [0x00000] in <00000000000000000000000000000000>:0
    245.   at UnityEngineInternal.Input.NativeInputSystem.NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.IntPtr eventBuffer) [0x00000] in <00000000000000000000000000000000>:0
    246. UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    247. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    248. UnityEngine.Logger:LogException(Exception, Object)
    249. UnityEngine.Debug:LogException(Exception)
    250. UnityEngine.InputSystem.Utilities.DelegateHelpers:InvokeCallbacksSafe(InlinedArray`1&, TValue, String, Object)
    251. UnityEngine.InputSystem.InputActionState:CallActionListeners(Int32, InputActionMap, InputActionPhase, InlinedArray`1&, String)
    252. UnityEngine.InputSystem.InputActionState:ChangePhaseOfActionInternal(Int32, TriggerState*, InputActionPhase, TriggerState&)
    253. UnityEngine.InputSystem.InputActionState:ChangePhaseOfAction(InputActionPhase, TriggerState&, InputActionPhase)
    254. UnityEngine.InputSystem.InputActionState:ResetActionState(Int32, InputActionPhase)
    255. UnityEngine.InputSystem.InputActionState:DisableAllActions(InputActionMap)
    256. UnityEngine.InputSystem.InputActionMap:ResolveBindings()
    257. UnityEngine.InputSystem.InputActionMap:LazyResolveBindings()
    258. UnityEngine.InputSystem.InputActionState:OnDeviceChange(InputDevice, InputDeviceChange)
    259. UnityEngine.InputSystem.InputManager:RemoveDevice(InputDevice, Boolean)
    260. UnityEngine.InputSystem.InputManager:OnUpdate(InputUpdateType, InputEventBuffer&)
    261. UnityEngine.InputSystem.LowLevel.InputUpdateDelegate:Invoke(InputUpdateType, InputEventBuffer&)
    262. UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    263. UnityEngineInternal.Input.NativeUpdateCallback:Invoke(NativeInputUpdateType, NativeInputEventBuffer*)
    264. UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
    I note other examples work for me, such as I can get to work WebBrowserInput example and with iPhone browser, but tove the camera in Unity by scrolling my finger on an iphone browser or on a mac browser.

    Please help, thank you!
     
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    418
    What version of the package are you testing?
    The latest version is 3.1.0-exp.1.
     
  3. RendergonPolygons

    RendergonPolygons

    Joined:
    Oct 9, 2019
    Posts:
    77
    Hi @kazuki_unity729 thanks for addressing the question, I cracked the screen of my macbook and have sent it for repair, I get it back in 10 days and will answer then, sorry !!
     
  4. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    418
    @RendergonPolygons
    Hi, last week we released the new version of the package.
    Please update the package and try that. Thanks.
     
unityunity