1. Scene starts with Vuforia
2. Once detection of image occurs, we stop Vuforia
CameraDevice.Instance.Stop();
TrackerManager.Instance.GetTracker<ObjectTracker>().Stop();
3. Out of the blue the Application restarts, and so does Vuforia. This causes the application to freeze for several seconds.
-> applicationWillResignActive()
Stop Vuforia Engine
Vuforia.VuforiaARController:StopVuforia()
Vuforia.VuforiaARController:OnApplicationPause(Boolean)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action`1, T)
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)-> applicationDidBecomeActive()
2019-05-21 15:42:09.574118+0200 VisualAgenda[1923:394930] INFO/AR(1923) 2019-05-22 15:42:09: Matched precache profile for Apple, iPhone10,6, iOS 12, 800.1
2019-05-21 15:42:09.808365+0200 VisualAgenda[1923:394930] INFO/AR(1923) 2019-05-22 15:42:09: Vuforia Fusion: Detected and enabled use of ARKit
2019-05-21 15:42:09.808957+0200 VisualAgenda[1923:394930] DEBUG/AR(1923) UIView has CAMetalLayer layer class
2019-05-21 15:42:09.809029+0200 VisualAgenda[1923:394930] DEBUG/AR(1923) UIView does not respond to selector renderFrameVuforia
2019-05-21 15:42:09.809084+0200 VisualAgenda[1923:394930] DEBUG/AR(1923) UIView has CAMetalLayer layer class
2019-05-21 15:42:09.809198+0200 VisualAgenda[1923:394930] DEBUG/AR(1923) UIView does not respond to selector renderFrameVuforia
2019-05-21 15:42:09.809277+0200 VisualAgenda[1923:394930] DEBUG/AR(1923) Could not find a UIView with CAEAGLLayer or CAMetalLayer layer class that responds to selector renderFrameVuforia
Start Vuforia Engine
Vuforia.VuforiaARController:StartVuforia(Boolean)
Vuforia.VuforiaARController:OnApplicationPause(Boolean)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action`1, T)
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)cameraDeviceStartCamera
2019-05-21 15:42:09.815351+0200 VisualAgenda[1923:394930] INFO/AR(1923) 2019-05-22 15:42:09: Starting camera with profile for iPhone10,6, 800.1
Any ideas on how to prevent this unwanted behavior?
Hello,
From the way I read it, it sounds like a chicken-and-egg problem. If the application restarts, then Vuforia will restart as well.
So is it the application that is causing the restart, or Vuforia Engine? The latter seems unlikely unless the SDK is crashing and we'd be very interested in getting a crash dump log.
Thanks,
Vuforia Engine Support