"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Failed to initialize QCAR.

Hey,

From time to time i randomly encounter this error:

InitQCARTask::onPostExecute: Failed to initialize QCAR. Exiting.

following msg box that shut download the activity

right after restart everything works!!

anyone can tell me why this is hapenning ? and how can the randomly be explained ?

 

Thanks

AlessandroB

Mon, 10/29/2012 - 12:11

Hi, do you observe this behaviour in one of the Vuforia samples ? or is it your own application?

Could you also provide a bit more details on the scenario that (sometimes) triggers this error (like if you launch other activities, etc); that would help!

I tryed to gather some more information on when it happens.

 

I'm using my own application which is like MainActivity->ImageTargets

from ImageTargets you can press the back key to get back to MainActivity

AlessandroB

Mon, 11/05/2012 - 08:33

I looks like due to the fast switch back and forth, the second time you try to initialize QCAR while a previous deinitialization has not yet completed.

yes, that what i thought.

will try to do it.

seems like the most dirty but simple solution is to just make a 1-2 second timer when resuming the MainActivity

if user will try to move again to ImageTargets and the timer didn't finish the task will just wait for the timer