Log in or register to post comments

cloud recognition error

March 21, 2020 - 4:10am #1

Hello, I am getting below error while building cloud recognition app for android platform.

Setting the size of cloud reco targets is currently not supported.

UnityEngine.Debug:LogError(Object)

Vuforia.CloudRecoImageTargetImpl:SetSize(Vector3)

Vuforia.ScalableDataSetTrackableBehaviour:SetScaleFromWidth(Single, Single)

Vuforia.ImageTargetBehaviour:SetWidth(Single)

Vuforia.ImageTargetBehaviour:OnValidate()

Vuforia.ImageTargetBehaviour:CorrectScaleImpl()

Vuforia.ScalableDataSetTrackableBehaviour:CorrectScale()

Vuforia.ImageTargetBehaviour:InitializeTarget(Trackable, Boolean)

Vuforia.StateManager:FindOrCreateImageTargetBehaviourForTrackable(ImageTarget, GameObject, DataSet)

Vuforia.StateManager:FindOrCreateImageTargetBehaviourForTrackable(ImageTarget, GameObject)

Vuforia.ImageTargetFinder:CreateObjectTarget(String, TargetFinderObjectTargetData, GameObject)

Vuforia.TargetFinder:EnableTracking(TargetSearchResult, GameObject)

CloudRecoEventHandler:OnNewSearchResult(TargetSearchResult) (at Assets/Common/Scripts/CloudRecoEventHandler.cs:184)

System.Delegate:DynamicInvoke(Object[])

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action`1, TargetSearchResult)

Vuforia.<>c__DisplayClass39_1:<Update>b__1(Action`1)

Vuforia.IEnumerableExtensionMethods:ForEach(IEnumerable`1, Action`1)

Vuforia.ObjectRecoBehaviour:Update()

What is the solution for this error? Cloud Reco event handler script is same as given in vuforia core samples latest version. 

 

cloud recognition error

June 12, 2020 - 6:58am #7

Hi ,

I tried running the Cloud Reco Sample with Vuforia version 9.1.7 and Unity version 2019.3.12f ,

I can confirm recognition was successful because I check the logcat and I did get the flags that I set had raised but the problem faced in my situation is that the child game objects are not being rendered at all, though the the game object being enabled as per the default cloud reco event handler for the cloud reco image target in the Vuforia Engine 9.1.7.

thanks in advance

cloud recognition error

April 28, 2020 - 10:18pm #6

Hi Marius,

I tried to run the CloudReco scene of Core Samples and it doesnt work properly. The error "Setting the size of cloud reco targets is currently not supported" is thrown.

I am using Unity 3D 2019.3.9f1 and Vuforia Engine 9.0.12.

Any idea what's going wrong?

 

 

 

cloud recognition error

April 6, 2020 - 3:54am #5

Hello.

Is this error will be fixed?

I got 9 version, and it stil remains

cloud recognition error

March 27, 2020 - 3:17am #4

Hi,

I will raise a ticket with the dev team, regarding the error.

Although I was able to reproduce the error, Cloud Reco's functionality doesn't seem to be impacted by it.

I've tested with the Core Samples and it worked as expected.

Thank you.

Vuforia Engine Support

cloud recognition error

March 26, 2020 - 5:16am #3

Hi,

This issue persists when I build and run app on android device. 

Pls find below the portion of cloud reco event handler script where this error is pointing when double clicked on it.(check underlined code)

public void OnNewSearchResult(TargetFinder.TargetSearchResult targetSearchResult)

    {

        Debug.Log("new target search result found");

        Debug.Log("<color=blue>OnNewSearchResult(): </color>" + targetSearchResult.TargetName);

        TargetFinder.CloudRecoSearchResult cloudRecoResult = (TargetFinder.CloudRecoSearchResult)targetSearchResult;

           

        // Check if the metadata isn't null

            if (cloudRecoResult.MetaData == null)

            {

                Debug.Log("Target metadata not available.");

            }

            else

            {

                modelPath = cloudRecoResult.MetaData;

                Debug.Log("MetaData: " + cloudRecoResult.MetaData);

            }

        m_TargetFinder.ClearTrackables(false);

        m_TargetFinder.EnableTracking(cloudRecoResult,"ImageTarget");   //the statement where error:'Setting the size of cloud reco targets is currently not supported'  is pointing.

        m_ImageTargetBehaviour.gameObject.SendMessage("TargetCreated", cloudRecoResult,

                                                     SendMessageOptions.DontRequireReceiver);

      

        downloadAugmentAssetBundle(modelPath);

        // stop the target finder (i.e. stop scanning the cloud)

        m_CloudRecoBehaviour.CloudRecoEnabled = false;

    }

public IEnumerator downloadAugmentAssetBundle(string url)

   {    

       using (UnityWebRequest uwr = UnityWebRequestAssetBundle.GetAssetBundle(url))

       {

            yield return uwr.SendWebRequest();  

           Debug.Log("sending webrequest");

            if (uwr.isNetworkError || uwr.isHttpError)

             {

                Debug.Log(uwr.error);

            }

            else

            {

                m_bundle = DownloadHandlerAssetBundle.GetContent(uwr);  

                Debug.Log("Assetbundle Loaded");

                var prefab = Instantiate(m_bundle.LoadAsset("cube"), m_ImageTargetBehaviour.gameObject.transform);

              

            }

       }

   }

cloud recognition error

March 24, 2020 - 6:42am #2

Hi,

Here is an article how to implement Cloud Reco in Unity: https://library.vuforia.com/content/vuforia-library/en/articles/Solution/How-To-Implement-Cloud-Reco.html#unity

I checked the the core sample apps and noticed that I can also reproduce the mentioned error.

However I was *able* to build without issues on the device.

Could you please check and confirm that the issue issue is occurring when you build?

Thank you.

Vuforia Engine Support

Log in or register to post comments