Log in or register to post comments

Issue with Image Tracker and Plane Finder in the same application

June 20, 2019 - 12:09pm #1

Hi,

I need to use Image Tracker and Plane Finder in the same application on different scenes. Those scenes can be switched on user demand.

I've implemented both scenes and they are working each on it's own. But when I try to switch scenes ( with SceneManager.LoadScene ), I can do that only one time, then I'm receiving an error:

Could not deinitialize the tracker.<br>
	UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])<br>
	Smb.GlobalVirtual.Log.FileLoggerHandler:LogFormat(LogType, Object, String, Object[]) (at Assets/_Code/Smb.GlobalVirtual/Log/Logger.cs:142)<br>
	UnityEngine.Debug:LogError(Object)<br>
	Vuforia.TrackerManager:DeinitTracker()<br>
	Vuforia.VuforiaARController:OnDestroy()<br>
	System.Delegate:DynamicInvoke(Object[])<br>
	Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])<br>
	Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)<br>
	Vuforia.VuforiaBehaviour:OnDestroy()

and on the next attempt to switch scenes, camera is not working.

What should I do to correctly reinit everything?

Unity 2018.3.13f1

Vuforia 8.1.7

Issue with Image Tracker and Plane Finder in the same application

June 25, 2019 - 11:14am #3

Hello,

Thank you for the suggestion.

Looks like the main reason for the error was either in the prefab containment of the ARCamera and Plane Finder objects or in some wrong data stored in the scene. I recreated the scene (but placed all Vuforia objects without prefabs) and now the error message is gone.

Issue with Image Tracker and Plane Finder in the same application

June 20, 2019 - 2:00pm #2

Hello,

This sounds like a potential issue with Vuforia Engine initialization/deinitialization.

When you enter a scene with an ARCamera, Vuforia Engine is initialized. When you enter a scene without an ARCamera, Vuforia is deinitialized. Are you doing this switching quickly? If so, you may be entering a race condition where one is trying to start before the other is completed.

Thanks,

Vuforia Engine Support

Log in or register to post comments