Question by
alexandergovoni · Jan 16, 2021 at 09:11 PM ·
vuforiaaugmented reality
Vuforia cloud recognition scene takes ages to load
Hi,
I'm having loading time issues with my cloud recognition scene in Unity that only starts after 30 seconds of black screen and spinning wheel of death. Same problem when I build it to my iPhone (minus the wheel :). It worked fine before and I don't recall changing any Vuforia settings.
Console gives me this error:
Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object at SimpleCloudRecoEventHandler.OnStateChanged (System.Boolean scanning) [0x0000a] in /Users/.........................../Assets/SimpleCloudRecoEventHandler.cs:120 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 :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 :0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0 at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in :0 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in :0 at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in :0 at Vuforia.DelegateHelper.InvokeDelegate (System.Delegate action, System.Object[] args) [0x0000f] in <92e5b9c3f8724f90af5164cb6456b57a>:0 UnityEngine.Debug:LogError(Object) Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[]) Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action`1, Boolean) Vuforia.<>c:b__21_0(Action`1) Vuforia.IEnumerableExtensionMethods:ForEach(IEnumerable`1, Action`1) Vuforia.ObjectRecoBehaviour:StartReco() Vuforia.ObjectRecoBehaviour:set_RecoEnabled(Boolean) Vuforia.CloudRecoBehaviour:set_CloudRecoEnabled(Boolean) SimpleCloudRecoEventHandler:delete_replacement() (at Assets/SimpleCloudRecoEventHandler.cs:249) UnityEngine.Events.UnityEvent:Invoke() DefaultTrackableEventHandler:OnTrackingLost() (at Library/PackageCache/com.ptc.vuforia.engine@9.4.6/Vuforia/Scripts/DefaultTrackableEventHandler.cs:179) DefaultTrackableEventHandler:HandleTrackableStatusChanged() (at Library/PackageCache/com.ptc.vuforia.engine@9.4.6/Vuforia/Scripts/DefaultTrackableEventHandler.cs:93) DefaultTrackableEventHandler:OnTrackableStatusChanged(StatusChangeResult) (at Library/PackageCache/com.ptc.vuforia.engine@9.4.6/Vuforia/Scripts/DefaultTrackableEventHandler.cs:72) Vuforia.TrackableBehaviour:RegisterOnTrackableStatusChanged(Action`1) DefaultTrackableEventHandler:Start() (at Library/PackageCache/com.ptc.vuforia.engine@9.4.6/Vuforia/Scripts/DefaultTrackableEventHandler.cs:50)
I don't really know what to do with this information. The exact same SimpleCloudRecoEventHandler.cs script works fine in an earlier backup of my project.
Any help with this is appreciated!
Comment
Your answer
Follow this Question
Related Questions
Google Cardboard + Vuforia - Camera size is small 3 Answers
Navmeshing in AR 3 Answers
Hands over 3D object - Vuforia AR - Unity 2 Answers
Corrupted build on Android AR app 0 Answers
No PostProcessing in Vuforia AR 0 Answers