By bedrocks
on Mon, 05/28/2018 - 09:46
Vuforia SDK Version: 7.1.34 -
Description with steps to reproduce: I changed my iOS Build Settings from `Behaviour in Background: Suspend` to `Behaviour in Background: Exit` because i can't figure out how to reload trackables (https://developer.vuforia.com/forum/vuforia-api/reload-trackables-onapplicationfocus-onapplicationpause)
Doing this results in app crashes when moving the app into background and `almost` immediately opening it by pushing the app icon again.
With `almost` immediately i mean waiting ~ 1 second before pushing the app icon again.
Observations:
- Waiting less then ~1 seconds crashs the app with following output:
```
2018-05-28 11:22:27.328209+0200 baff[8806:1181667] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
2018-05-28 11:22:27.331748+0200 baff[8806:1181667] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
-> applicationWillResignActive()
StopVuforia
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: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)
2018-05-28 11:22:31.402862+0200 baff[8806:1181668] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
-> applicationDidEnterBackground()
-> applicationWillTerminate()
2018-05-28 11:22:31.501301+0200 baff[8806:1181669] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
2018-05-28 11:22:31.526746+0200 baff[8806:1181511] WARNING/AR(8806) 2018-05-29 11:22:31: ObjectTracker: ObjectTracker is shut down but 1 datasets have not been destroyed.
Setting up 1 worker threads for Enlighten.
Thread -> id: 1703ef000 -> priority: 1
StopVuforia
Vuforia.VuforiaARController:StopVuforia()
Vuforia.VuforiaARController:OnDisable()
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)
Could not deactivate dataset.
Vuforia.ObjectTracker:DeactivateDataSet(DataSet)
Vuforia.ObjectTracker:DestroyAllDataSets(Boolean)
Vuforia.VuforiaARController:OnDestroy()
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.VuforiaBehaviour:OnDestroy()
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)
Could not destroy dataset.
Vuforia.ObjectTracker:DestroyDataSet(DataSet, Boolean)
Vuforia.ObjectTracker:DestroyAllDataSets(Boolean)
Vuforia.VuforiaARController:OnDestroy()
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.VuforiaBehaviour:OnDestroy()
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)
2018-05-28 11:22:31.546272+0200 baff[8806:1181511] ERROR/AR(8806) 2018-05-29 11:22:31: Could not deinit an unknown or abstract Vuforia tracker type: 0x1104
Could not deinitialize the tracker.
Vuforia.TrackerManager:DeinitTracker()
Vuforia.VuforiaARController:OnDestroy()
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.VuforiaBehaviour:OnDestroy()
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)
2018-05-28 11:22:31.551723+0200 baff[8806:1181670] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
2018-05-28 11:22:31.552664+0200 baff[8806:1181671] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
2018-05-28 11:22:31.551723+0200 baff[8806:1181669] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
2018-05-28 11:22:34.278220+0200 baff[8806:1181511] [avas] AVAudioSession.mm:1142:-[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.
```
Interesting are following debug messages directly from Vuforia:
```
Could not deactivate dataset.
Could not destroy dataset.
Could not deinit an unknown or abstract Vuforia tracker type: 0x1104
Could not deinitialize the tracker.
```
Other observations:
- Waiting less then ~1 second seems to restore the last session.
- Waiting longer than ~3 seconds almost always works (which means the app starts as expected) -
Development OS (Mac OS X, Windows, Linux): Mac OS -
Mobile OS and Version: iOS 11.3 (15E216) -
Mobile Device Manufacturer and Model name: iPhone 6s MKQP2ZD/A -
Do the Vuforia Sample Applications show the same behavior?: