Search Unity

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

Weird Errors

Discussion in 'Input System' started by UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396, Apr 23, 2020.

  1. UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    Joined:
    Jan 9, 2017
    Posts:
    151
    I'm having a couple of weirds errors. I'm on preview.6
    The weird thing is that my game is functioning normally without any issues. But these errors still pops up.
    Code (csharp):
    1. MissingReferenceException while executing 'performed' callbacks of 'Player/Fire[/Keyboard/f,/Keyboard1/f]'
    2. UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    3. UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
    Code (csharp):
    1. MissingReferenceException: The object of type 'PlayerAbilitySkill_BasicAttack_Photon' has been destroyed but you are still trying to access it.
    2. Your script should either check if it is null or you should not destroy the object.
    3. UnityEngine.Component.GetComponent[T] () (at <05f2ac9c8847426992765a22ef6d94ca>:0)
    4. Photon.Pun.PhotonView.Get (UnityEngine.Component component) (at Assets/Settings/Asset Store Packages/Photon/PhotonUnityNetworking/Code/PhotonView.cs:489)
    5. Photon.Pun.MonoBehaviourPun.get_photonView () (at Assets/Settings/Asset Store Packages/Photon/PhotonUnityNetworking/Code/PunClasses.cs:197)
    6. PlayerAbilitySkill_BasicAttack_Photon.ShootHandle (System.Boolean value) (at Assets/Scripts/Photon Networking/PlayerAbilitySkill_BasicAttack_Photon.cs:61)
    7. PlayerAbilitySkill_BasicAttack_Photon.Fire_performed (UnityEngine.InputSystem.InputAction+CallbackContext obj) (at Assets/Scripts/Photon Networking/PlayerAbilitySkill_BasicAttack_Photon.cs:110)
    8. UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.InlinedArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) (at Library/PackageCache/com.unity.inputsystem@1.0.0-preview.6/InputSystem/Utilities/DelegateHelpers.cs:51)
    9. UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    10. UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
    11.  
     
    youri_ssk likes this.
  2. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    It looks like PhotonView has a reference to a missing MonoBehaviour script called PlayerAbilitySkill_BasicAttack_Photon. Unfortunately, I don't know much of anything about Photon so can't really offer any more insight as to what that might mean.
     
  3. timchen214

    timchen214

    Joined:
    Dec 22, 2015
    Posts:
    6
    this happen to me as well "MissingReferenceException"
    My solution is create a new Input Action Asset and copy past all actions to the new one
    but only works a couple runs, after that it will happen again
    I believe it have nothing to do with photon