Skip to content

Empty input action result in NRE in InputActionsRecorderModule #19

@ahmed-shariff

Description

@ahmed-shariff

With the XR HMD and input system configured, I was getting the following error:

NullReferenceException: Object reference not set to an instance of an object
PLUME.Base.Module.Unity.Input.InputActionsRecorderModule.OnActionPerformed (UnityEngine.InputSystem.InputAction+CallbackContext context) (at ./Packages/PLUME-Recorder/Runtime/Base/Module/Unity/Input/InputActionsRecorderModule.cs:58)
UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.CallbackArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) (at ./Library/PackageCache/com.unity.inputsystem@be6c4fd0abf5/InputSystem/Utilities/DelegateHelpers.cs:46)
UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)

and

NullReferenceException while executing 'performed' callbacks of 'Main Camera (XR) - TPD - Position[/HeadTrackingOpenXR/centereyeposition]'
UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c__DisplayClass7_0:<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Seems to be happening with the following actions:

  • Main Camera (XR) - TPD - Tracking State[/HeadTrackingOpenXR/trackingstate]
  • Main Camera (XR) - TPD - Position[/HeadTrackingOpenXR/centereyeposition]
  • Main Camera (XR) - TPD - Rotation[/HeadTrackingOpenXR/centereyerotation]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions