Log in or register to post comments

UnityEngine.MissingReferenceException: The object of type 'BackgroundPlaneBehaviour' has been destroyed but you are still trying

July 16, 2019 - 10:35pm #1

Error:

Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> UnityEngine.MissingReferenceException: The object of type 'BackgroundPlaneBehaviour' has been destroyed but you are still trying to access it.

Your script should either check if it is null or you should not destroy the object.

  at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)

  at UnityEngine.Component.GetComponent[T] () [0x00020] in C:\buildslave\unity\build\Runtime\Export\Scripting\Component.bindings.cs:42

  at Vuforia.VideoBackgroundBehaviour.ResetBackgroundPlane (System.Boolean disable) [0x00000] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.BaseCameraConfiguration.ResetBackgroundPlane (System.Boolean disable) [0x0000e] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.VuforiaARController.ResetBackgroundPlane (System.Boolean disable) [0x00000] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.VuforiaARController.OnDisable () [0x00024] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)

  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <7d97106330684add86d080ecf65bfe69>:0

   --- End of inner exception stack trace ---

  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <7d97106330684add86d080ecf65bfe69>:0

  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <7d97106330684add86d080ecf65bfe69>:0

  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <7d97106330684add86d080ecf65bfe69>:0

  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <7d97106330684add86d080ecf65bfe69>:0

  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <7d97106330684add86d080ecf65bfe69>:0

  at Vuforia.DelegateHelper.InvokeDelegate (System.Delegate action, System.Object[] args) [0x0000f] in <21bfe61d2ac241f6a9131b858645aad9>:0

UnityEngine.Debug:LogError(Object)

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)

Vuforia.VuforiaBehaviour:OnDisable()

May I ask you, why this things happen only after I stop the editor in Unity?

 

Unity: v2019.1.9f1 (64-bit)

Vuforia: v8.3.8

AttachmentSize
Image icon Capture.JPG168.97 KB
Log in or register to post comments