"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

Huge amount of logging when initializing Vuforia

Hello everyone:

I noticed an excesive amount of logging message ( 1000 msgs per second aprox ) when developing vuforia application for android. At first, I thought it could be caused by a problem in my code, but after some debugging and testing with the official unaltered vuforia samples, realised it happens also in those. Googling around I found this thread discussing similar problem on several devices including Galaxy Note 3 (one I am using for testing):

https://code.google.com/p/android/issues/detail?id=60058&cnum=500&cstart=521

 

It happens within method startAR from class SampleApplicationSession , when  CameraDevice.getInstance().start() is called, at line:

  if (!CameraDevice.getInstance().start())    // Starts logging like crazy here, Too many msgs. High CPU usage after this.        {            error = "Unable to start camera device: " + camera;            Log.e(LOGTAG, error);            throw new SampleApplicationException(                SampleApplicationException.CAMERA_INITIALIZATION_FAILURE, error);        } Does anyone know how to avoid this? Can I use my own camera control class and still keep using vuforia features like ImageTargets etc?Thanks in advance.Kapeas.

Attached to this message there is a LogCat dump with the messages I am talking about, note the short amount of time between them. It makes impossible to keep track of other log messages, flooding them away in a matter of seconds.

AlessandroB

Mon, 04/07/2014 - 14:59

Hi, based on the related google thread that you refer to, it appears to be an issue with some devices when an application accesses the camera (s, it also affects Vuforia apps as Vuforia tried to access the camera ).