Log in or register to post comments

Xcode - several problems: Dataset not found, could not initialize the tracker. The usual..

July 26, 2012 - 3:09am #1

https://ar.qualcomm.at/content/dataset-file-not-found
https://ar.qualcomm.at/content/wont-recognize-trackable
https://ar.qualcomm.at/content/noob-how-use-my-own-trackables-i-can%C2%B4t-do-it

All of the above topics did not exactly help me with the problem I keep running into. The project I have runs fine in Unity, but when I want to run it on my iPad2 it keeps hanging on the splashscreen.

Xcode keeps saying:

"Data set myDataSet does not exist.
(Filename: /Applications/buildAgent/work/b0bcff80449a48aa/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)
Could not initialize the tracker."

I am btw building with armv7 (if that matters), also in Xcode

Because of the imagesize you can view a screenshot here: http://tweakers.net/ext/f/dh0IKf6VepS1uCckJ8O96CQF/full.png

The problem is that the Dataset DOES exist (just like in the topics posted above). Did try to add the .dat and .xml into Copy Bundle Resources, but that didn't help either.

Specs:
Unity 3.5
XCode 4.3.2
iPad2 iOS 5.1

So if someone can help me that would be more than appreciated. If you need more info, please tell me.

Thanks!

Xcode - several problems: Dataset not found, could not initializ

March 21, 2014 - 3:13am #10

Try and create a new thread and clearly explain your problem.

Tagging to the end of an existing thread mans you have not tried to explain the issue.

 

N

Xcode - several problems: Dataset not found, could not initializ

March 20, 2014 - 12:10pm #9

i have the same problem in xcode, but the links are dead....
has anybody a new link? or explanation how ti works?

Xcode - several problems: Dataset not found,

July 31, 2012 - 8:56pm #8

Good to hear things are working :)

 

Dataset not found, could not initialize the tracker.

July 31, 2012 - 1:30am #7

Problem "solved"..

Grabbed an copy of a backup and built that. Worked like a charm. Don't know what went wrong last time. Guess that will remain a mystery.

Xcode - several problems:

July 26, 2012 - 6:45am #6

If you PM me, maybe with a link to your Unity project that I can download, I can test it (along with any images required)

N

Dataset not found, could not initialize the tracker.

July 26, 2012 - 6:24am #5

you are meant to click "Build and Run"

lol Well, obviously I already did that. Did you looked at my link in my first post? You can see a screenshot of my problem. That happens long after I click Build and Run Wink

And yes the Dataset is showing up just fine. I can select the appropiate Dataset when I select the ARCamera.

By "everything works fine in Unity"  I mean that Unity is not showing any errors (in scripts or something) that might cause a problem when I click Play in the editor.
I am well aware that the SDK is ment for devices. This project aint my first one you know Wink

It's just Xcode is being annoying, I think.. To be honest I just don't know where to search to get my problem fixed. The topics in my first post all mention trying things in Xcode.

Currently I'm completely lost.. Undecided

Xcode - several problems: Dataset not found,

July 26, 2012 - 6:06am #4

The names of the datasets do not show up in the script.

They show up in the Inspector in unity under the place where the script is attached to the camera, and there they are available as a dropdown.

"everything works fine in Unity"

Not sure what you mean here as Vuforia is only supported on devices i.e. you are meant to click "Build and Run"

N

Dataset not found, could not initialize the tracker.

July 26, 2012 - 4:46am #3

Thank you for your reply.

I'm not touching any kind of code since I'm not a programmer. (The guys who made the project are. But unfortunately, they don't work here anymore.)

The Dataset is configured properly in Unity. The right Dataset is loaded by the ARCamera. No need to swap datasets. Both the .xml and .dat files are in the correct folder. As I said; everything works fine in Unity.

I did take a look at the DataSetLoadBehaviour script, but I don't see any names of datasets. Here's what the code looks like. I'm using the vuvoria-ios-1.5.9 sdk btw.

/*==============================================================================
Copyright (c) 2012 QUALCOMM Austria Research Center GmbH.
All Rights Reserved.
Qualcomm Confidential and Proprietary
==============================================================================*/

using System.Collections.Generic;
using UnityEngine;

public class DataSetLoadBehaviour : MonoBehaviour
{
    #region PROPERTIES

    public string DataSetToActivate
    {
        get
        {
            return mDataSetToActivate;
        }

        set
        {
            mDataSetToActivate = value;
        }
    }

    #endregion // PROPERTIES

    #region PRIVATE_MEMBER_VARIABLES

    [SerializeField]
    [HideInInspector]
    private string mDataSetToActivate;

    #endregion // PRIVATE_MEMBER_VARIABLES

    #region PUBLIC_MEMBER_VARIABLES
    [SerializeField]
    [HideInInspector]
    public List<string> mDataSetsToLoad = new List<string>();
    #endregion // PUBLIC_MEMBER_VARIABLES

    #region UNITY_MONOBEHAVIOUR_METHODS

    void Awake()
    {
        if (Application.isEditor)
        {
            return;
        }
       
        if (TrackerManager.Instance.GetTracker(Tracker.Type.IMAGE_TRACKER) == null)
        {
            TrackerManager.Instance.InitTracker(Tracker.Type.IMAGE_TRACKER);
        }

        if (mDataSetsToLoad.Count <= 0)
        {
            Debug.LogWarning("No data sets defined. Not loading any data sets.");
            return;
        }

        foreach (string dataSetName in mDataSetsToLoad)
        {
            if (!DataSet.Exists(dataSetName))
            {
                Debug.LogError("Data set " + dataSetName + " does not exist.");
                continue;
            }

            ImageTracker imageTracker = (ImageTracker)TrackerManager.Instance.GetTracker(Tracker.Type.IMAGE_TRACKER);
            DataSet dataSet = imageTracker.CreateDataSet();

            if (!dataSet.Load(dataSetName))
            {
                Debug.LogError("Failed to load data set " + dataSetName + ".");
                continue;
            }

            // Activate the data set if it is the one specified in the editor.
            if (mDataSetToActivate == dataSetName)
            {
                imageTracker.ActivateDataSet(dataSet);
            }
        }
    }

    void OnDestroy()
    {
        // Note we do not destroy the dataset as this is handled by the
        // QCARBehaviour.
    }

    #endregion // UNITY_MONOBEHAVIOUR_METHODS

}

Xcode - several problems: Dataset not found, could not

July 26, 2012 - 4:12am #2

If you are working in Unity then you should not need to touch XCode at all (which is what the other threads pertained to) - everything should be possible from Unity.

Some of this is explained in the developer guide at https://ar.qualcomm.at/developer_guide

First of all click on the ARCamera in the scene and look under Data Set Load Behaviour Script

This is where it picks up the datasets that have been placed in the StreamingAssets/QCAR directory - this is where you will find the existing StonesAndChips and Tarmac dataset files (XML and dat).  Make sure that you place your dataset files here too.

If these files/datasets are available, then they should be available within the Activate Data Set dropdown.

If you want to do something more advanced, like swap out datasets at run-time then look here

https://ar.qualcomm.at/sdk/ios

..under Unity Extension > Mastering Advanced Topics >Swappable Datasets

HTH

N

Log in or register to post comments