Log in or register to post comments

"Could not deinitialize the tracker" every time I open another scene

August 29, 2019 - 4:26am #1

Hi, I am getting this error every time I try to open another Scene, from a scene that uses Vuforia:

I was wondering that I was not properly deinitializing Vufori before opening another scene, so I added 

VuforiaBehaviour.Instance.enabled = false;

This throws "Stopping Device Tracker" and "Stop Vuforia Engine" messages, so it is working

After that, I open the scene, but still getting the same error.. any idea?

 

 

AttachmentSize
Image icon Error Message11.57 KB
Image icon Error Message after deinitialization17.04 KB

"Could not deinitialize the tracker" every time I open another scene

September 3, 2019 - 12:11am #5

Hello, 

Vuforia SDK: 8.3.8

Unity: 2019.1.7f1

Unity Lightweight RP: 5.7.2

 

Yes, the behaviour is the same with both manual and auto Vuforia deinitialization.

 

Additionally, I have attached the Android logs that I am getting for these steps:

  1. Launch the app (with delayed Vuforia inicialization)
  2. Open a scene that initializes Vuforia and uses the AR camera (works fine)
  3. Go to Android Home or open the app switcher
  4. Return to the app (Still working fine)
  5. Return to a scene without Vuforia
  6. Open a scene that initializes Vuforia again

 

 

 

"Could not deinitialize the tracker" every time I open another scene

September 2, 2019 - 7:28am #4

Hi,

Could you please confirm me the Vuforia SDK and the Unity version you are using?

Just to clarify, you were receiving the same error before you tried to "manually" deinitialize Vuforia?

Thank you.

Vuforia Engine Support

 

"Could not deinitialize the tracker" every time I open another scene

September 2, 2019 - 1:30am #3

Hi,

I have tried calling:

VuforiaBehaviour.Instance.enabled = false;

Wait 1 second and then:

SceneManager.LoadScene(MenuSceneName);

But the problem remains the same.

 

Also I have been testing on Android, where this error becomes a real problem, the steps to reproduce are:

  1. Launch the app (with delayed Vuforia inicialization)
  2. Open a scene that initializes Vuforia and uses the AR camera (works fine)
  3. Go to Android Home or open the app switcher
  4. Return to the app (Still working fine)
  5. Return to a scene without Vuforia
  6. Open a scene that initializes Vuforia again

On the sixth step, Vuforia cant initialize and starts throwing a lot of console errors, at this moment the screen shows the attached file image (the app is not freezed, you can still return to menu and do things)

Any idea?

 

Thank you in advance.

AttachmentSize
Image icon ok[1].png1.88 MB
Image icon NOOK[1].png356.57 KB

"Could not deinitialize the tracker" every time I open another scene

August 30, 2019 - 3:54am #2

Hi,

You are not required to manually disable Vuforia when switching scenes as switching to non-AR scene will automatically disable Vuforia.

I believe the error you are seeing when using VuforiaBehaviour.Instance.enabled = false is related to the fact that you are switching scenes immediately, not giving Vuforia enough time to properly disable.

Thank you.

Vuforia Engine Support

Log in or register to post comments