Log in or register to post comments

E/AR﹕ Cannot reset extended tracking while tracking.

June 24, 2014 - 7:43pm #1

Hi,

I follow the instruction here for my UDT application on Unity.
It worked perfectly with Vuforia 2.8.

After I upgrade to Vuforia 3.0.6, I found a problem about reset entended tracking.
I understood the new SDK require to stop tracking before reset entended tracking.
However in this case I'm not sure how to add the code to meet the requirement.

As you can see on the log, the error message kept printing after Tracking status becomes NOT_FOUND for 3 secs.
If NOT_FOUND changes back to TRACKED soon, the error message won't print.

06-25 10:00:34.087    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: EXTENDED_TRACKED -> TRACKED
06-25 10:00:34.267    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: TRACKED -> EXTENDED_TRACKED
06-25 10:00:34.847    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: EXTENDED_TRACKED -> NOT_FOUND
06-25 10:00:34.847    6782-6958/com.invisibi.poc.ocr W/Unity﹕ -- NOT_FOUND Detected
06-25 10:00:34.947    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: NOT_FOUND -> EXTENDED_TRACKED
06-25 10:00:35.827    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: EXTENDED_TRACKED -> TRACKED
06-25 10:00:35.977    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: TRACKED -> EXTENDED_TRACKED
06-25 10:00:37.217    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: EXTENDED_TRACKED -> TRACKED
06-25 10:00:39.607    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: TRACKED -> EXTENDED_TRACKED
06-25 10:00:40.007    6782-6958/com.invisibi.poc.ocr I/Unity﹕ OnTrackableStateChanged: EXTENDED_TRACKED -> NOT_FOUND
06-25 10:00:40.007    6782-6958/com.invisibi.poc.ocr W/Unity﹕ -- NOT_FOUND Detected
06-25 10:00:42.917    6782-6782/com.invisibi.poc.ocr E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-25 10:00:42.937    6782-6782/com.invisibi.poc.ocr E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-25 10:00:42.977    6782-6782/com.invisibi.poc.ocr E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-25 10:00:43.007    6782-6782/com.invisibi.poc.ocr E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-25 10:00:43.037    6782-6782/com.invisibi.poc.ocr E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-25 10:00:43.077    6782-6782/com.invisibi.poc.ocr E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-25 10:00:43.107    6782-6782/com.invisibi.poc.ocr E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-25 10:00:43.137    6782-6782/com.invisibi.poc.ocr E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-25 10:00:43.167    6782-6782/com.invisibi.poc.ocr E

Code

public class MyTrackableEventHandler : MonoBehaviour,
ITrackableEventHandler
{
	#region PRIVATE_MEMBER_VARIABLES
	
	private TrackableBehaviour mTrackableBehaviour;
	
	#endregion // PRIVATE_MEMBER_VARIABLES
	
	
	#region UNTIY_MONOBEHAVIOUR_METHODS
	
	void Start()
	{
		mTrackableBehaviour = GetComponent<TrackableBehaviour>();
		if (mTrackableBehaviour)
		{
			mTrackableBehaviour.RegisterTrackableEventHandler(this);
		}
	}
	
	#endregion // UNTIY_MONOBEHAVIOUR_METHODS
	
	
	#region PUBLIC_METHODS
	
	/// <summary>
	/// Implementation of the ITrackableEventHandler function called when the
	/// tracking state changes.
	/// </summary>
	public void OnTrackableStateChanged(
		TrackableBehaviour.Status previousStatus,
		TrackableBehaviour.Status newStatus)
	{
		Debug.Log("OnTrackableStateChanged: " + previousStatus + " -> " + newStatus);
		if (newStatus == TrackableBehaviour.Status.NOT_FOUND &&
		    (previousStatus == TrackableBehaviour.Status.TRACKED || 
		    previousStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)) {
			Debug.LogWarning("  -- NOT_FOUND Detected");
		}

		if (newStatus == TrackableBehaviour.Status.DETECTED ||
		    newStatus == TrackableBehaviour.Status.TRACKED ||
		    newStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)
		{
			OnTrackingFound();
		}
		else
		{
			OnTrackingLost();
		}
	}
    ...
}

Please have some suggestion.

Thanks
Jack
 

E/AR﹕ Cannot reset extended tracking while tracking.

August 5, 2014 - 4:12am #11

Hi,

I have checked v3.0.9.
The issue is resolved.

Thanks
Jack

E/AR﹕ Cannot reset extended tracking while tracking.

July 23, 2014 - 12:06pm #10

Update:

iOS SDK v3.0.9 is now also available for download here:

https://developer.vuforia.com/resources/sdk/ios

 

 

 

E/AR﹕ Cannot reset extended tracking while tracking.

July 23, 2014 - 11:08am #9

Let me check with the Vuforia team and I will get back on this....

 

E/AR﹕ Cannot reset extended tracking while tracking.

July 23, 2014 - 7:59am #8

I hope this will also make its way into a new iOS SDK version because we are having the same (wrong) error message all the time on iOS.

E/AR﹕ Cannot reset extended tracking while tracking.

July 23, 2014 - 12:06am #7

UPDATE:

Vuforia 3.0.9 is now available for download. This version fixes the issue below.

 

E/AR﹕ Cannot reset extended tracking while tracking.

July 15, 2014 - 8:02am #6

Yes, we have identified the issue with this; the error message is produced by the SDK (even if you are not explicitly calling resetExtendedTracking()).

The fix for this will be included in the next release of Vuforia, which is expected very very soon (will keep you posted).

 

E/AR﹕ Cannot reset extended tracking while tracking.

July 15, 2014 - 7:28am #5

We are facing the same issue after we migrated to the 3.0.5 SDK (c++ and iOS).

ISSUE: After the image tracker loses a target the system reports to the console:

ERROR/AR(19235): Cannot reset extended tracking while tracking. Please call stop() before

Note that we NEVER call resetExtendedTracking in our code.

E/AR﹕ Cannot reset extended tracking while tracking.

July 7, 2014 - 12:40am #4

Hi, concerning your original question about how to handle the reset of extended tracking, in Unity you can Stop, Reset extended trackign and then Restart the tracker using some code like this:

ImageTracker tracker = TrackerManager.Instance.GetTracker<ImageTracker>();
tracker.Stop();
tracker.ResetExtendedTracking();
tracker.Start(); // Restart the tracker

See also:

https://developer.vuforia.com/resources/api/unity/class_image_tracker

 

Concerning the issue you have reproduced with the sample APK, let me check it and I will get back to you. 

 

E/AR﹕ Cannot reset extended tracking while tracking.

July 6, 2014 - 8:05pm #3

Hi,

Let you know that the same problem happens with the Android sample app.
Could you confirm this problem at your side?

Thanks
Jack

E/AR﹕ Cannot reset extended tracking while tracking.

June 25, 2014 - 11:38pm #2

Hi,

Let you know that the same problem happens with the Android sample app.
(The Apk downloaded here https://developer.vuforia.com/resources/sample-apps/features)

  1. Choose "User Defined Target"
  2. Press "Start"
  3. Get the side menu out, Turn on "Extended Tracking"
  4. Shoot any image/object with good features.
  5. Move the scene of the camera from the just defined target. Wait for 3 secs.
06-26 14:31:12.818  12790-12790/com.qualcomm.vuforia.samples.VuforiaSamples E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-26 14:31:12.848  12790-12790/com.qualcomm.vuforia.samples.VuforiaSamples E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-26 14:31:12.888  12790-12790/com.qualcomm.vuforia.samples.VuforiaSamples E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-26 14:31:12.918  12790-12790/com.qualcomm.vuforia.samples.VuforiaSamples E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
06-26 14:31:12.938  12790-12790/com.qualcomm.vuforia.samples.VuforiaSamples E/AR﹕ Cannot reset extended tracking while tracking. Please call stop() before
...

The possibility is 100%

Jack

Log in or register to post comments